If Cuba is attacked they are by international law allowed to strike military targets inside the US.
The US isn't magically off limits.