The ship's hull was damaged in the attack, MOL said in a statement. The vessel accelerated and took evasive action, and after about 40 minutes the pirates gave up the chase.
No one was injured in the attack, and no oil leaked from the hull. Bullets also damaged some windows in the wheelhouse, but MOL said Jasmine Ace continues under her own power, and is heading toward safer waters.
Jasmine Ace loaded cars at the port of Sharjah in the United Arab Emirates on Tuesday and was sailing for Mombasa in the East African country of Kenya.