South Africa avoided their lowest ever score in a one-day international but were still bowled out for a meagre 106 in the first ODI against Afghanistan in Sharjah on Wednesday.
With Tenda Bavuma out sick, stand-in captain Aiden Markram elected to bat first after winning the toss.
Reeza Hendricks and Tony de Zorbi added 17 for the first wicket before left-arm quick Fazhalhaq Farooqi bowled Hendricks for 9 to spark a dramatic collapse as South Africa slumped to 36-7.
Farooqi, who finished with 4-35, added the wickets of Markram (2) and de Zorzi (11) to his tally while fellow opening bowler AM Ghazanfar (3-20) accounted for Tristan Stubbs and Jason Smith, making his ODI debut, for ducks and Kyle Verreynne for 10.
As if South Africa did not already have enough problems, Andile Phehlukwayo went walkabout as Ghazanfar was appealing for leg before, leaving Mohammad Nabi to run him out.
With only 10 of the 50 overs bowled, it looked as though South Africa's record lowest ODI score of 69, made against Australia in Sydney in 1993, would be in danger.
An eighth-wicket partnership of 39 between Wiaan Mulder and Bjorn Fortuin, however, saw them past the danger and threatened to rebuild the innings.
Fortuin was bowled by Rashid Khan, playing his first ODI since last year's World Cup, but Mulder dragged them past the hundred mark, going on to reach his first ODI fifty.
He fell shortly afterwards to Farooqi, his 52 coming from 84 balls with five fours and a six.
Rashid wrapped up the innings in 33.3 overs when he had Lungi Ngidi leg before to finish with 2-30.