The 28-year-old man, who has been identified only by his initials DT, was also fined 6,000 Dirhams and ordered to pay the same amount to the passengers he stole from.
The flight attendant stole from one passenger in business class who handed him his coat.
"The next morning I received text messages that my credit cards had been used so I checked my wallet and the cards were gone," said the passenger, who called his bank and cancelled the cards.
He confessed to taking two cards belonging to the passenger after finding them in a cabinet on the plane.
The attendant used the cards to buy a BlackBerry, a Samsung Galaxy S3, and an iPad worth 6,449 Dirhams.
The Criminal Court convicted the attendant on a charge of embezzlement. He will be deported after completing his jail term.