An attack on a vessel near the Strait of Hormuz and a rebound in oil prices on Tuesday underscored doubts that the US-Iran conflict was nearing a resolution, as the two sides made opposing claims about whether they were holding talks.

Oil prices rose nearly 3 percent after a steep sell-off in the previous session as investors reassessed optimism over diplomacy, while a cargo vessel reported being struck by an unidentified projectile near the Strait of Hormuz off Oman's coast, according to the UKMTO maritime security agency.

The cargo ship reported being "hit by an unknown projectile" at 2 am while it was 37 kilometers northeast of Al Khasab in Oman, the United Kingdom Maritime Trade Operations said.

The UKMTO did not provide further information on the ship, including what flag the vessel was sailing under or whether it was carrying cargo.

The ship suffered damage, according to British maritime security firm Ambrey, which did not elaborate.