Kim Bo-Kyung headed a stoppage-time equaliser as Cardiff claimed a deserved 2-2 Premier League draw against Manchester United.
After Wayne Rooney had petulantly kicked out at Cardiff midfielder Jordon Mutch after eight minutes, an offence referee Neil Swarbrick deemed worthy of a yellow card when red might have been more appropriate, the England striker duly gave United a 15th-minute lead.
Fraizer Campbell, who struck the crossbar after half-time, levelled matters before David Moyes' men led again as Patrice Evra glanced home Rooney's 45th-minute corner.
But substitute Kim darted in front of the France full-back to produce a similar finish from Peter Whittingham's free-kick in injury time - the midfielder's deliveries having caused United problems all afternoon.
A rapturous Cardiff City Stadium held its breath and then rejoiced as Rooney wasted a late chance to steal the points as Moyes' men finished a frantic weekend of Premier League action in sixth position, seven points behind leaders Arsenal.
Mutch was preferred in the Cardiff midfield to Aron Gunnarsson, with Campbell leading the line against his former club.
Robin van Persie's absence due to a groin injury meant that Javier Hernandez partnered Rooney in attack for United.
Rooney had an effort blocked and Mutch saw his header saved before the two came together in the first-half's early flashpoint.
And the England striker was then, somewhat inevitably, the beneficiary when an error from Cardiff defender Ben Turner resulted in the champions taking a 15th-minute lead.
Turner's loose pass was collected by a rampaging Antonio Valencia and the Ecuador winger's cross was touched on by Hernandez for Rooney to check back and find the net, via a deflection off Gary Medel.
Marouane Fellaini drew a superb save from David Marshall when he headed Adnan Januzaj’s 20th-minute free-kick goalwards, but the young playmaker then erred near his own area, leading to Peter Odemwingie lashing the ball over the crossbar.
Cardiff equalised in the 33rd minute when Whittingham and Mutch combined in midfield and the latter released Campbell for a composed finish.
Campbell, Don Cowie and Whittingham all fired over for the hosts as United laboured in defence of set-pieces, although they demonstrated no such problems attacking them when Evra glanced home Rooney’s left-wing corner on the stroke of the interval.
Rooney's dead-ball deliveries continued to torment Cardiff upon the resumption and Marshall was at full stretch to deny Fellaini before beating away a header from Chris Smalling.
Malky Mackay's team responded once more and Campbell sent an audacious lob against De Gea's crossbar after Tom Cleverley had given away possession, with the rebound narrowly evading Mutch.
United might have earned some breathing space when Rooney headed Valencia’s 59th-minute cross over, while Whittingham sent a first-time effort just wide from distance six minutes later and Cleverley almost diverted a free-kick from the same player into his own net.
Danny Welbeck thrashed wastefully beyond the crossbar 10 minutes from time and the United substitute was made to rue his profligacy when Kim stole in to snatch a share of the spoils, as Cardiff edged three points clear of the relegation zone.
Rooney could still have won it when he latched on to a ball over the top, but his touch was poor.
|28||K. Théophile Catherine||90+3'|
|Coach: M. Mackay|
for P. Odemwingie 65'
for J. Mutch 77'
for F. Campbell 83'
|Malaga presidents wants Isco return|
|Griezmann must think before he speaks - Saul|
|Rooney: I decided to take corners instead of Kane at Euros|
|Benteke: My time at Liverpool was not a failure|
|Asensio: I had the chance to join Barca|
|Morata: I had five or six phone calls every day|
|Costa: I wanted to return to Atletico|
|Mascherano: It would have been ´a sin´ for Messi to stay in international retirement|
|Guardiola: No one plays better than Barcelona|
|Sigthorsson seals Galatasaray loan move|
|Griezmann urges France to forget Euro 2016|
|Konoplyanka joins Schalke on loan|
|Mustafi finalises Arsenal move|
|Chambers loaned to Middlesbrough by Arsenal|
|Ajax snap up Ziyech from Twente|
|Kenedy joins Watford on loan from Chelsea|
|Cuca backs ´golden boy´ Gabriel Jesus to take off at Man City|
|Aguero´s brother joins Cadiz on loan|
|Leicester made €30m bid for Adrien Silva, father reveals|
|Schweinsteiger feels ´deep gratitude´ for Germany career|
|Swansea complete deal for Barnsley defender Mawson|
|Perez delight at Arsenal signing|
|Inter complete Gabriel capture|
|Mariappa returns to Watford|
|Aguero charged over Reid elbow|
|Hart pictured with Torino shirt ahead of loan switch|
|Albrighton pens fresh Leicester deal|
|Hull seal club-record Mason swoop|
|Pjanic confident Juve debut is on the horizon|
|Lucescu confirms Juventus interest in Witsel after Everton snub|
|Messi trains ahead of Argentina return|
|Villa sign Kodjia in a deal worth up to £15m|
|Marshall leaves Cardiff and heads to Hull|
|Rosicky returns to Sparta Prague|
|Gnabry close to Werder Bremen switch|
|Arsenal complete Perez deal|
|Celtic sign Gamboa from West Brom|
|Remy joins Palace on season-long loan|
|Kante like a rat - Hazard|
|Rooney proud to break England outfield caps record|
|Rooney to quit international football after World Cup|
|Barcelona sign €30m Valencia striker Alcacer|
|Koke and Vazquez welcome Laporte to Spain fold|
|Schweinsteiger has no ´personal problems´ with Mourinho|
|Alcacer, Hart, Wilshere and the deadline-beating deals still to come|
|Antonio thought first England call-up was banter|
|Premier League a completely different market - Heidel|
|Lens completes Fenerbahce loan move|
|Pescara awarded points after Sassuolo field ineligible player|
|Lyon calm Lacazette injury fears|
|Bamford joins Burnley on loan|
|Van Basten to leave Netherlands´ backroom staff for FIFA role|
|Ventura perfect for Italy - Verratti|
|Martial needs to be more consistent - Deschamps|
|Verratti not happy at PSG - Ventura|
|Ventura: I´ll probably manage Chelsea when Conte leaves|
|Bartomeu: Barca discussing new contract with Messi|
|Bauza: No doubts over Messi motivation|
|Schmeichel targets quick return after surgery|
|Giovinco to help aid earthquake victims in Italy|
|Ancelotti backs Madrid for LaLiga and Ronaldo to be top goalscorer|
|Gomes: Portugal can deal with Ronaldo absence|
|Sterling reveals Guardiola impact|
|Fiorentina deny approach for Chelsea target Alonso|
|Allardyce confirms Rooney retains England captaincy|
|Hart to join Torino – agent|
|Sanches withdrawn from Portugal squad|
|Sporting CP issue Adrien Silva clarification amid Leicester links|
|Watford confirm Okaka signing|
|Manchester City outcast Zuculini seals Rayo Vallecano loan switch|
|Dembele offers something different - Deschamps|
|Sunderland would just love to get rid of me - Lens|
|No Casillas in Spain squad represents a ´new era´, says Ramos|
|Zenit defender Criscito could return to Italy, claims agent|
|Barcelona reveal Messi hamstring injury|
|Modric named new Croatia captain|
|Napoli announce Rog signing|
|De Boer is building something at Inter - Morratti|
|Keane eyes coaching career after international retirement|
|Bravo left out of Chile squad for family reasons|
|West Brom announce Chadli signing|
|Former Dodgers owner set for Marseille purchase|
|Ferdinand: I reached out to Wenger|
|Holgate has big quality for a young player - Koeman|
|Manchester United want to keep Rojo, says agent|
|Low not concerned by captaincy as Germany bid farewell to greats|
|Aguero pulls out of Argentina squad|
|Howedes: Germany must prove themselves all over again|
|Ventura close to tears on first day of Italy training|
|Torino interested in City outcast Hart|
|Adrien Silva hoping to seal ´exceptional´ Leicester switch|
|Boufal joins Southampton from Lille for club-record fee|
|Villa outcast Lescott joins AEK Athens|
|Milner: I´m learning left-back role as fast as I can|
|Allardyce ready for Hart transfer disruption|
|´Door always open´ for Barkley - Allardyce|
|Xhaka like Petit, claims Wenger|
|Coric: I was a medical away from joining Liverpool|
|Pasalic keen to put injury troubles behind him at Milan|
|Guardiola delighted with Sterling form|
|Rooney should retire from England duty - Shearer|
|Hazard can ´decide´ the title - Ivanovic|
|Allardyce hails ´outstanding´ Antonio|
|Belgium can make history - Henry|
|Nice president: Call Balotelli and tell him we need a striker|
|Modric would like to see out career in Madrid|
|Geromel replaces Caio in Brazil squad|
|Mustafi: Ozil convinced me to join Arsenal|
|Pardew confirms ´one or two´ more signings|
|MLS Review: Kaka brace denies NYC top spot, Timbers beat Sounders|
|Mihajlovic: I won´t waste anymore breath on Maksimovic|
|Okon named Central Coast Mariners coach|
|´Special´ Rashford will get chance - Rooney|
|Injury forces Schurrle out of Germany squad|
|Burke snubs Premier League interest to join RB Leipzig|
|Guardiola: Nasri has a future at City, if he wants it|
|Klopp confident ´all will be good´ with Sturridge|
|Emery confident PSG will bounce back|
|Athletic may strengthen squad - Valverde|