Crosby skated in from his own blue line on a breakaway and won it with a snap shot from the slot, his ninth goal of the season.
The Penguins captain tied it 2-2 with a power-play goal at 7:37 of the third after redirecting a shot from Evgeni Malkin near the right post. It was his second straight game with a goal following an 11-game drought.
Malkin and Erik Karlsson each had two assists, and Rutger McGroarty scored for the Penguins (11-17-2), who had lost two of three, including a 7-4 defeat to the New Jersey Devils on Saturday. Sergei Murashov made 29 saves.
Macklin Celebrini had two assists, and Will Smith and Ivar Stenberg scored for the Sharks (13-17-3), who have lost four of five (1-3-1) and six of eight (2-5-1). Yaroslav Askarov made 30 saves.
Celebrini had his NHL-career long goal streak end at five games (five goals).
McGroarty put Pittsburgh ahead 1-0 at 11:59 of the first period. Ben Kindel drove to the net for a shot off the crossbar and McGroarty held off San Jose defenseman Luca Cagnoni to tap in the loose puck in the crease.
Smith tied it 1-1 at 19:07. Celebrini stickhandled around Penguins defenseman Kaedan Korczak near the blue line before passing to Smith, who tapped it in backdoor.
Malkin jammed in a puck at the right post at 8:58, but the potential tying goal was waved off when it was determined Rickard Rakell interfered with Askarov. The call stood following a Penguins coach’s challenge.
Stenberg’s power-play goal then gave the Sharks a 2-1 lead at 10:55 of the second period by tapping in Alexander Wennberg's pass through the crease for the 10th goal of his rookie season.
Sharks forward Mason Marchment was a late scratch with a lower-body injury after participating in pregame warmups.