Defensive end Hubbard raced clear for the longest go-ahead TD in NFL postseason history as the Ravens pressed for the lead on a third-and-goal on Tyler Huntley's QB sneak, as he leapt up to break the plane of the goalline, only for Logan Wilson to knock it out.
Hubbard's go-ahead touchdown, scored with 11:39 remaining in the fourth quarter, was also the longest fumble return TD in NFL playoff history.
Baltimore had been mounting the pressure with scores locked 17-17 with Huntley's 35-yard run, the longest of his career, pushing them to the goalline, but the Bengals' defense held up, before the fumble return TD ignited Paul Brown Stadium.
Huntley threw a final-second pass on fourth-and-20, which James Proche got a hand on, but could not hold. The Ravens QB, starting in the absence of injured former MVP Lamar Jackson, kept his side in the game on 17-of-29 passing for 226 yards with two TD passes and one interception, adding 54 rushing yards.
Bengals quarterback Joe Burrow completed 23-of-32 passes for 209 yards with one passing touchdown and one rushing touchdown, but was sacked four times. Ja'Marr Chase had nine receptions for 84 yards.
It was a seesawing encounter with the Bengals dominating the first quarter led by Chase, before Burrow connected with the wide receiver to cap a six-minute, 10-play drive.
The Ravens hit back in the second to lead 10-9 at halftime, with Huntley finding J.K. Dobbins to score, while Burrow was sacked three times in the first half.
The two sides traded touchdowns in the third, with Burrow slithering across after Hayden Hurst thought he had scored yet fell half a yard short, before Huntley threw a 41-yard TD pass to Demarcus Robinson.