Bayern Munich 5-4 Heidenheim: German champions survive serious scare at home to second division side as late Robert Lewandowski penalty wins German Cup thriller Bayern Munich have survived a huge scare in the German Cup quarter-finals Leon Goretzka gave Bayern the lead but a Niklas Sule red card changed the game Robert Glatzel equalised before Marc Schnatterer gave Heidenheim the lead Bayern responded immediately after the half-time break through Thomas Muller Robert Lewandowski then put the home side and Serge Gnabry added a fourth But Heidenheim hit back AGAIN as Glatzel scored two in two minutes to level Glatzel's hat-trick was in vain as Bayern were handed a late penalty reprieve By Peter Rutzler For Mailonline Published: 19:33 BST, 3 April 2019 | Updated: 19:51 BST, 3 April 2019 Viewcomments Bayern Munich survived a serious scare at home to second division side Heidenheim in the quarter finals of the German Cup thanks to a late Robert Lewandowski penalty. Robert Glatzel scored a stunning hat-trick for the visitors who were aided by a 15th minute red card to Bayern defender Niklas Sule. The second division side led the match in the first half and recovered from two goals down in the second - yet still came up short. Niko Kovac's Bayern Munich have survived a huge scare in the German Cup quarter-finals Robert Lewandowski netted a late penalty to spare Bayern's blushes in extraordinary match The Poland international came off the bench after the German champions trailed at half time Heidenheim went over to their away supporters after nearly pulling off a sensational result Bayern Munich's defender Mats Hummels consoles Heidenheim's midfielder Robert Andrich Leon Goretzka opened the scoring for Bayern in the tenth minute after a bright start But the match was turned on its head when Niklas Sule was shown a straight red card Robert Glatzel then scored the first of a superb hat trick to pull the second division side level Bayern took the lead early in the first half through Leon Goretzka but Sule's red card just five minutes later turned the match on its head. They would play with ten men for 75 minutes and it looked like a shock was on the cards when Heidenheim hit back through Robert Glatzel. The visitors then stunned the Allianz Arena when Marc Schnatterer chipped the ball home five minutes before the break. Marc Schnatterer then chipped the ball home to give the visitors a shock 2-1 half-time lead Bayern made a double change at half time with James Rodriguez and Rafinha both replaced Niko Kovac got a response from his players who quickly established a two-goal lead Thomas Muller leveled the scoreline to 2-2 with an excellent volley on the turn on 53 minutes Substitute Lewandowski then latched onto a Muller cross to put Bayern back in front The game appeared to be heading in only one direction as momentum swung with the hosts With apathy in the stands, coach Niko Kovac needed a response from his players at half time and he got it - albeit temporarily. Bayern scored three goals in the first 20 minutes of the second period, with Thomas Muller leveling proceedings on 53 minutes. Half-time substitute Robert Lewandowski then restored the home side's lead two minutes later before Serge Gnabry added a fourth to secure the win. Serge Gnabry scored Bayern's fourth to open up what looked to be a comfortable lead Glatzel was the star of the show for the visitors and gave them hope of victory with three goals Bayern held a 4-2 lead but Robert Glatzel scored twice to complete a remarkable hat-trick Mats Hummels clumsily fouled Maurice Multhaup when Bayern were 4-3 down with 15 to go Heidenheim pulled off the unthinkable and recovered from two-goals down to level the game Glatzel completed his hat-trick from the spot but that still wasn't enough to stop Bayern But Heidhenheim weren't beaten yet and Glatzel nabbed a hat-trick with a two-minute double salvo - the second coming from the spot after a Mats Hummels foul on Maurice Multhaup. With the scores tied at 4-4, Lewandowski was given the chance to win the match after a costly handball. He scored the penalty and Bayern clung on to reach the semi-finals. Share or comment on this article: All rights reserved for this news site dailymail and under his responsibility