Brent crude oil rose by more than $1 a barrel on Wednesday after an explosion on a Tel Aviv bus intensified concerns that the clashes between Gaza and Israel could lead to a wider regional conflict that would disrupt oil flows.
Brent crude futures were up $1.29 at $111.12 a barrel by 1230 GMT, off an earlier session-high of $111.18. U.S. crude rose 88 cents to $87.63.
An explosion hit a bus in the heart of Tel Aviv on Wednesday, wounding at least 10 people in what officials said was a terrorist attack.
This dented mounting hopes that a ceasefire may be brokered in coming days.
"It's the main reason why oil prices are up today against the trend of falling commodities prices," said Carsten Fritsch of Commerzbank in Frankfurt.
Copper was down more than 1 per cent.
"Supply risks are back in focus as is the pricing in of the risk premium," Fritsch added.
Israeli air strikes shook the Gaza Strip and Palestinian rockets struck across the border as U.S. Secretary of State Hillary Clinton held talks in Jerusalem in the early hours of Wednesday.
Although little oil is produced in Israel or neighbouring Egypt, concern that major hydrocarbon producing Arab nations could become involved in the conflict have aroused fears that supplies from the Gulf can be disrupted.
Prices are likely to move fairly rapidly as the course of the Gaza conflict unfolds, said Jeremy Friesen, commodity strategist at Societe Generale in Hong Kong.
"We're going to see some crazy volatility in the market with rising geopolitics and rising economic uncertainty. The Middle East tensions could continue to give prices some life in the near term but we suspect that bearish economic factors will be dominant."
Adding to geopolitical risks, the United States on Tuesday blocked a U.N. Security Council statement condemning the escalating conflict between Israel and Palestinians.
This was seen as setting the scene for a possible showdown between Washington and Russia on the issue.
But oil price gains were capped as worries for the demand outlook returned to the fore after euro zone finance ministers ended a meeting in Brussels on Wednesday without agreement on the next tranche of loans to Greece.
Concerns on the U.S economy also weighed on prices, as Federal Reserve Chairman Ben Bernanke warned that failure to resolve a budget crisis could lead to recession in the world's biggest oil consumer.
Investors will watch U.S. inventory data from the Energy Information Administration at 1530 GMT for more clues on the outlook for supply.
Crude oil and gasoline inventories were forecast to have increased last week while distillate stockpiles were seen down on higher heating oil demand.
U.S. crude oil inventories tumbled last week due to a drop in imports, data from the American Petroleum Institute released on Tuesday showed.
Total U.S. crude stocks fell by more than 1.9 million barrels in the week to Nov. 16, after analysts polled by Reuters had forecast a build of 900,000 barrels.