Cuba has trade with all of the rest of Latin America. A ship just needs to deliver goods to any other country in the region - which they'd presumably do in the normal course of international trade - then someone takes whatever to Cuba.
It's a minor inconvenience that's trivially worked around.