Walcott scored a deflected winner five minutes from time after the Championship side had twice equalized, as Olivier Giroud scores twice for the GunnersArsenal into the FA Cup fifth round with a dramatic late winner in a 3-2 victory against Brighton at the AMEX Stadium.
The Arsenal forward was rested by manager Arsene Wenger but saved the Gunners' blushes five minutes from time with a deflected strike.
Olivier Giroud had twice given Arsenal the lead but the Premier League side was pegged back on both occasions by its Championship opponent through goals from Ashley Barnes and debutant Leonardo Ulloa.
The result was harsh on Brighton, which knocked out Newcastle in the third round, but Arsenal showed fighting spirit of its own as the north London club seeks its first trophy in eight years.
Brighton had the first real opportunity of the match in the 15th minute when David Lopez lifted a ball over the top to Ashley Barnes, who was played onside by the Arsenal defense but saw his shot brilliantly saved by Wojciech Szczesny.
Less than a minute later, Arsenal was ahead. The visitors broke rapidly from the resulting corner and when Giroud took the ball from Lukas Podolski on the edge of the penalty area, the Frenchman worked half a yard of space and launched an unstoppable left-footed strike into the top corner.
Brighton's equalizer arrived in the simplest of circumstances in the 33rd minute. David Lopez swung in a cross from the right and Barnes was allowed to rise unmarked to head home from inside the six-yard box as Gunners goalkeeper Wojciech Szczesny flapped at thin air.
Arsenal began the second-half with more purpose, Podolski rattling the crossbar with a thumping effort before Giroud restored the lead in the 56th minute with his second goal of the game.
Abou Diaby played a lovely long ball over the Brighton back four, which Giroud plucked out of the air with a gorgeous first touch and then steered his finish past Casper Ankergren on the stretch.
Giroud forced Ankergren into a sharp save as he sought a hat trick after running on to Tomas Rosicky’s long pass, but Brighton continued to threaten in wide areas.
In the 62nd minute, it was level again. Barnes turned provider this time, whipping in a superb cross from the right, where Santos was again AWOL, for Ulloa to score a debut goal with a diving header.
Wenger responded by introducing Walcott and Wilshere from the bench - and in the 85th minute the striker made the difference with the winning goal.
Brighton failed to properly clear an Arsenal corner and the ball fell to Walcott on the edge of the area, whose shot took a huge deflection off Adam El Abd before nestling in the corner.