On 15 June 2012, Shvedova and her partner, Sania Mirza, made a shock first-round exit from the Aegon Classic; they lost to Iveta Benešová/Alla Kudryavtseva in two sets. At the Wimbledon Championships, Shvedova received a wildcard into the main draw. There, she defeated Chanelle Scheepers and Kiki Bertens to reach the third round where she faced tenth seed Sara Errani and won the fourth "Golden Set" in the history of tennis. She won all 24 points in the fifteen-minute-long first set, blasting 14 winners and making no unforced errors before losing the first point of the second set to break the sequence. She went on to win the match in straight sets 6–0, 6–4 reaching the second week of Wimbledon for the first time. In the fourth round, she was defeated by sixth seed and eventual champion Serena Williams.