The stranded pair were brought to safety by fire crews from North Yorkshire Fire and Rescue Service, a spokesman said.
Crews were called to the St Oswald's Road area at 4.20am from stations at York, Acomb and Selby, and were able to pull the boat to the riverside using water rescue gear and ropes.