UCF (5-3, 3-2 Conference USA) scored twice in the final 8 minutes to overcome a 20-7 deficit and beat Marshall (5-4, 3-2) for the fifth straight time.
Brynn Harvey scored on a 2-yard burst with 7:51 left to cut it to 20-14. The Knights turned the ball over on downs on their next possession, but got a break when Marshall quarterback Brian Anderson fumbled on his own 30 with 2:12 left.
Josh Robinson recovered the fumble to give UCF one more opportunity. Hodges had to convert a fourth-and-1 play from the 20, then found Ross uncovered in the end zone.
"These kids have a lot of fight in them," UCF coach George O'Leary said. "They don't worry about mistakes, they worry about making the next play and that's what we did. When we needed a play, somebody stepped up and made it."
Anderson and Marshall had dominated the game to that point. The Marshall quarterback completed 13 of 28 passes for 238 yards and a touchdown.
Thundering Herd running back Darius Marshall, the second-leading rusher in the nation coming into the game, was held to 80 yards on 28 carries and scored once.
"That's one of the wackiest games I've seen in my career," Marshall coach Mark Snyder said. "I thought we dominated the whole game, we played our hearts out, but we had some mistakes at the end that cost us the game."
Anderson and tight end Cody Slate carried the Thundering Herd to a 17-7 halftime advantage. Anderson was 9 of 19 for 164 yards and one touchdown in the first two periods. Slate caught five of those passes for 80 yards, including a 4-yard scoring play that finished off a 91-yard drive that made it 7-0.
UCF tied it on Hodges' 4-yard pass to Aiken on fourth-and-1. UCF converted five of six fourth-down plays in the game.
Marshall kicker Craig Ratanamorn, who is 11-for-11 on field goals this season, made a 30-yarder to make it 10-7.
Cattoi lined up a 48-yard attempt to tie it with just over 2 minutes left in the half, but hit it low and it bounced off the back of one of his lineman. Marshall safety Ashton Hall returned the ball 68 yards to the UCF 28.