The dollar saw a modest increase on Wednesday, buoyed by escalating concerns over a Middle East conflict that bolstered demand for the U.S. currency. Simultaneously, U.S. consumer prices showed a moderate rise in February.

Investors remain vigilant as the Middle East conflict poses a threat to global energy trade and could trigger a price shock. Iran's military command warned of potential oil prices reaching $200 a barrel, with reports of further ship attacks in the Gulf.

Oil prices rebounded as markets questioned the efficacy of the International Energy Agency's plan to release oil reserves against potential supply disruptions. Analysts cited the war in Iran and its impact on energy prices as a primary focus for currency markets. Fading optimism for a swift end to the conflict, coupled with Iranian actions near the Strait of Hormuz, intensified market anxieties.

The U.S. military reported neutralizing 16 Iranian mine-laying vessels near the Strait of Hormuz, following President Donald Trump's demand for the immediate removal of any mines. The dollar's ascent against the euro and yen reflects this heightened geopolitical risk.

Data indicated that U.S. consumer prices rose moderately in February, driven by stable rent increases and higher costs for gasoline and groceries. However, this inflation report is overshadowed by the U.S.-Israeli conflict with Iran, which has significantly increased crude oil prices and sparked broader inflation worries.

Market participants are now contemplating the potential global spillover effects of sustained elevated energy prices on core and headline inflation. In other markets, the Australian dollar saw gains, supported by expectations of an interest rate hike from the Reserve Bank of Australia. The British pound also edged higher despite fears of an oil supply shock, with estimates suggesting significant inflation increases if shipping through the Strait of Hormuz is disrupted.