GENEVA — A Swiss shipping company says 12 crew members of a bulk carrier who were taken hostage more than five weeks ago off the Nigerian coast have been released.

Massoel Shipping says the seven Filipinos, a Slovenian, a Ukrainian, a Romanian, a Croatian and a Bosnian were freed late Saturday in Port Harcourt, Nigeria, and were in Switzerland on Monday before returning home.

The Geneva-based company said it would not provide details of the release “as to do so would only encourage further criminal acts of this kind.”

Massoel said the ship carrying wheat was attacked Sept. 22 as it sailed from Lagos to Port Harcourt. The attackers apparently boarded using long ladders and cut razor wire on the deck to reach the bridge. Seven crew members were not captured.