Pakistan handed Australia their first defeat of the triangular one-day series on Sunday with a three-wicket win at the WACA ground in Perth.
Yousuf Youhana top scored with 72 while all rounder Abdul Razzaq finished on 63 not out after taking four wickets in Australia's innings as Pakistan scored 268 for seven from 47.2 overs.
Michael Clarke smashed an unbeaten 75 off 75 balls and Adam Gilchrist belted 47 to help Australia to 265 from their 50 overs.
Pakistan play West Indies in Perth on Tuesday in the final group match of the tournament with the winner joining Australia in next week's best-of-three finals.
"We're very excited. It's been a long time since we've beaten Australia," Razzaq said. "We really needed that and so now we're ready to hopefully make the final."
Australia captain Ricky Ponting said his team did not deserve to win.
"The batting was disappointing," he said.
"Most of the batsmen got starts, but no one with the exception of Clarkey really put their hand up and made sure we got through.
"Whenever we got a bit of a partnership going, somebody got out and it really took the momentum away."
Clarke, 23, struck five fours and a six to help the world champions reach a formidable total after a slow start.
Opener Gilchrist made 47 after being dropped twice and Ponting (29), Damien Martyn (24) and Andrew Symonds (23) all made starts before Australia slipped to 113 for four in the 23rd over
The tourists might have had Australia in deeper trouble had they fielded better but they dropped several catches, including Clark on 44, misfielded a number of balls and conceded overthrows.
Australia were 192 for seven in the 39th over when Clarke was joined at the crease by Brett Lee. They added 54 runs for the ninth wicket with Lee making a valuable 22.
Pakistan made a shaky start to their reply when they lost Salman Butt, Yasir Hameed and Younis Khan before the total had reached 50.
However, Youhana put them back in control with a fine innings off 90 deliveries including seven fours and a six. Pakistan skipper Inzamam-ul-Haq chipped in with a valuable 29 before man-of-the-match Razzaq steered them to victory with his unbeaten half-century.
A.Gilchrist b Abdul Razzaq 47
M.Hayden c Shahid Afridi b Naved-ul-Hasan 6
R.Ponting b Abdul Razzaq 29
D.Martyn c Shoaib Malik b Shahid Afridi 24
A.Symonds c Shoaib Malik b Shahid Afridi 23
M.Clarke not out 75
S.Katich c Younis Khan b Mohammad Khalil 0
B.Hogg c Younis Khan b Mohammad Khalil 10
B.Lee c Mohammad Khalil b Abdul Razzaq 22
J.Gillespie c Younis Khan b Abdul Razzaq 4
G.McGrath b Naved-ul-Hasan 0
Extras (b-1 lb-5 w-16 nb-3) 25
Total (all out, 50 overs) 265
Fall of wickets: 1-30 2-63 3-111 4-113 5-164 6-167 7-192 8-246 9-251
Bowling: Naved-ul-Hasan 10-0-49-2, Iftikhar Anjum 10-0-57-0, Abdul Razzaq 10-0-53-4, Mohammad Khalil 10-0-55-2, Shahid Afridi 10-0-45-2
Salman Butt c Gillespie b McGrath 20
Yasir Hameed c Symonds b Lee 12
Younis Khan c Martyn b McGrath 6
Yousuf Youhana c Katich b Symonds 72
Inzamam-ul-Haq lbw b Hogg 29
Shoaib Malik run out (Symonds) 1
Abdul Razzaq not out 63
Shahid Afridi c Lee b Symonds 30
Naved-ul-Hasan not out 20
Extras (lb-7 w-6 nb-2) 15
Total (for 7 wickets, 47.2 overs) 268
Did not bat: Iftikhar Anjum, Mohammad Khalil
Fall of wickets: 1-27 2-41 3-49 4-123 5-125 6-170 7-223
Bowling: Lee 9.2-0-63-1, McGrath 9-2-27-2, Gillespie 10-1-35-0, Hogg 10-0-71-1, Symonds 9-0-65-2
Result: Pakistan won by three wickets
Man of the match: Abdul Razzaq (Pakistan)
Next match: Feb 1 - Pakistan v West Indiies, Perth