You just fly through Toronto or Mexico. It's not technically "legal" but you won't get in trouble (note I am not a lawyer or agent of the US government that can guarantee that) the biggest issue is that the US wouldn't provide you any help if you get in trouble in Cuba.