This does come up in salvage cases. It is free for the taking if it has been truely abandoned, but not if someone is still actively looking for it. Also, property of states (ie the lunar rover) are not ever abandoned. So warships are generally never up for grabs so long as thier government still exists. Ancient roman vessels can be taken, but not british empire ships as britain still exists.
What if it’s not actively used but I’m not looking for it because I know where it is? If I anchor my ship to a rock in the ocean and leave it, I didn’t really abandon it and anyone can take it, right?
NASA still knows where their rover is and I don’t think it would be free to use just because they didn’t visit and use it for some time, even if it were private property.