I might be remembering wrong, but I thought un-flagged ships in international waters are considered pirates and can be acted upon in a hostile manner by flagged ships.
Theoretically possible because an un-flagged ship has not the protection of a recognized state. You could do it, but it would be mighty risky and you would have almost zero legal recourse against a bad actor.