Pablo Sarabia opened the scoring for the home side with an emphatic finish but saw his strike cancelled out just six minutes later through a bit of bad luck.
James Rodriguez, who had just been brought on to replace an injured Arturo Vidal, cheekily played through a rushing Ribery in the left-side of the box.
The Frenchman went to cross the ball across the face of goal but it took a decisive deflection off Navas which wrong-footed the Sevilla goalkeeper David Soria, who couldn't stop it from rolling into the back of the net.
It means Bayern will have, at the minimum, an important away goal to take back to Munich in the return leg a week later.
Check out the goal for yourself:
April 3, 2018