Somali pirates and owners of a Ukrainian ship carrying 33 tanks and other military hardware have reached a deal to release the vessel, a Kenyan maritime official said
Andrew Mwangura of the East African Seafarers' Assistance Programme said a deal had been reached but there were ongoing discussions in relation to the release of the ship, crew and cargo.
He said he did not know whether any ransom had been paid.
Gunmen captured the MV Faina on 24 September and demanded $20m (€15.52m) in ransom.
The ship was carrying 33 T-72 tanks, grenade launchers and ammunition destined for Kenya's Mombasa port.
A piracy wave in the Gulf of Aden has increased shipping insurance costs, sent foreign warships rushing to the area, and left about a dozen vessels with more than 200 hostages still in hijackers' hands.