Two goals in the last three minutes kept Arsenal top of the Premier League and condemned Cardiff to defeat in front of Ole Gunnar Solskjaer, who is tipped to take over as their new boss.
Nicklas Bendtner fired in the opener from close range before immediately going off with an ankle injury.
And in the 90th minute Theo Walcott - who had earlier hit the post - converted Jack Wilshere's sublime pass.
Cardiff are set to name Solskjaer as successor to Malky Mackay.
And the former Manchester United striker was sitting alongside Bluebirds' owner Vincent Tan in the Emirates Stadium directors' box after holding talks to take over as manager.
Two goals in the last three minutes kept Arsenal top of the Premier League and condemned Cardiff to defeat in front of Ole Gunnar Solskjaer, who is tipped to take over as their new boss.
Nicklas Bendtner fired in the opener from close range before immediately going off with an ankle injury.
And in the 90th minute Theo Walcott - who had earlier hit the post - converted Jack Wilshere's sublime pass.
Cardiff are set to name Solskjaer as successor to Malky Mackay.
And the former Manchester United striker was sitting alongside Bluebirds' owner Vincent Tan in the Emirates Stadium directors' box after holding talks to take over as manager.
The Norwegian would have been encouraged with what he saw as the well-organised visitors held Arsenal until the dying minutes when goals from substitute Bendtner and Walcott left Cardiff only two points above the drop zone.
For a long time it looked as though Arsene Wenger's men, who started the day top before briefly being displaced when Manchester City won the early kick-off game, would be left frustrated as they enjoyed plenty of the ball without being able to break Cardiff down.
The hosts were restricted to half chances for the majority of the first half, with Walcott side-footing the best chance over the bar.
A lot of the main striker responsibilities at Arsenal have fallen to Olivier Giroud this season but, with the Frenchman missing with an ankle injury, Lukas Podolski made his first start since August.
Arsenal have not been prolific at home so far this season, going into the match with only 16 league goals from nine matches.
And the Gunners' lack of striking options will inevitably lead to more questions being directed at Wenger about potential targets this transfer window, with the first half display doing little to convince they have a suitable replacement for Giroud.
Cardiff, going into the game with only one league win in nine matches, defended deep but looked dangerous on the break as Fraizer Campbell worked tirelessly in attack.
The few Arsenal chances that did arrive mostly fell to Walcott, who shot into the side-netting while stretching from a Wilshere cross early on before just failing to get on the end of a Mikel Arteta through ball.
Wilshere had a penalty appeal turned down late in the half after going down under the challenge of Gary Medel, who looked to have made contact with the Arsenal man and not the ball.
An injury-hit Gunners side, who were also missing Aaron Ramsey, Mesut Ozil, Kieran Gibbs and Tomas Rosicky, continued to struggle to create chances in the opening stages of the second half, although they were enjoying the majority of the possession.
England midfielder Wilshere was attempting to spark his side into life, but it was Cardiff who had a penalty shout turned down when Craig Noone's cross hit Nacho Monreal in the arm.
With Bendtner on in place of Podolski the Gunners finally upped the tempo and almost took the lead when Wilshere cut inside before striking a shot against the post.
Per Mertesacker then headed wide twice when unmarked before the deadlock was broken as Bendtner was quickest to react when David Marshall saved Bacary Sagna's header, the Dane firing home with just two minutes remaining before immediately going off injured.
The victory was sealed as Walcott calmly chipped over Marshall after latching on to Wilshere's flicked through ball.
Arsenal boss Arsene Wenger:
"We needed to be patient against a very good Cardiff side. They did work absolutely hard, their new manager was in the stands. They deserve credit and were a bit unfortunate to lose in the end.
"I think we were mature, intelligent and resilient. I felt in the first half it took us a while to get in our stride and our pace was a bit slow. We did all right in the second half but didn't take our chances and they defended very well.
"We know we have to play 10 home games and we want to make this place a fortress and take the points no matter what the others do.
"If we can manage to do that we will be in a very strong position."
Cardiff city caretaker manager David Kerslake:
"The players have given their all and I thought they had done enough to get a draw. We knew we would be good enough to soak the pressure, not a lot of teams can do that."
On Ole Gunnar Solskjaer being in stands: "I'm not even sure how much the players knew. They are very professional boys and gave it their best.
"If I was a gambling man I would say yes, it will be my last game in charge. I am contracted to the club and until the owners and chairman say so that is the case.
"I have 100% belief this squad are good enough to stay in the Premier League."
Latest Stories
-
Miner jailed, fined for stealing motorbike worth GH¢13,500
14 mins -
Dozens killed in Pakistan sectarian violence
14 mins -
Police place GH₵20K bounty on group over election violence threats
15 mins -
From classrooms to conservation: 280 students embrace sustainability at Joy FM/Safari Valley’s Second Eco Tour
2 hours -
Jordan Ayew’s late goal not enough as Leicester lose at home to Chelsea
2 hours -
Global Crimea Conference 2024: Participants reject Russian claims to Soviet legacy
2 hours -
Jospong Group, Uasin Gishu County sign MoU to boost sanitation services in Kenya
2 hours -
Thomas Partey stunner helps Arsenal overcome Nottingham Forest
2 hours -
Over half of cyber attacks in Ghana, rest of Africa target government and finance, says Positive Technologies
2 hours -
Academic City unveils plastic recycling machine to address plastic pollution
2 hours -
Maddison scores twice as Tottenham inflict a fifth successive defeat on Man City
3 hours -
German-based Kanzlsperger makes medical donation to WAFA
4 hours -
It could take over 100 years for Ghana and other African countries to become ‘developed’ – Report
4 hours -
AEC 2024 renews momentum to lift Africa out of poverty despite global shocks
4 hours -
Can RFK Jr make America’s diet healthy again?
4 hours