Oil prices rose on Thursday, supported by optimism that potential U.S. interest rate cuts will boost economic activity and fuel consumption though concerns over slower global demand curbed gains.

Brent crude futures rose 19 cents, or 0.24%, to $79.95 a barrel by 0625 GMT, recovering some of the previous day's losses. U.S. West Texas Intermediate crude futures increased by 23 cents, or 0.3%, to $77.21 per barrel.

Both benchmarks fell more than 1% on Wednesday after U.S. crude inventories rose unexpectedly and on easing worries about a wider Middle East conflict.

U.S. consumer prices rose moderately in July and the annual increase in inflation slowed to below 3% for the first time in nearly 3-1/2 years, reinforcing expectations the Federal Reserve will cut interest rates next month.

"We saw a correction in Asia trade as the oil market was oversold on Wednesday," said Yuki Takashima, economist at Nomura Securities, adding that investors are betting the Fed could start cutting rates next month.

Investor worries over Iran's potential response to the killing of the leader of the Palestinian Islamist group Hamas last month supported prices. Three senior Iranian officials have said that only a ceasefire deal in Gaza would hold Iran back from direct retaliation against Israel for the assassination.

"Geopolitical risk continues to hang over the oil market. It is still unclear how and if Iran will retaliate against Israel ... This uncertainty has led to increased options trading activity with market participants wanting to protect themselves from significant upside," ING analysts said in a client note.

However, oil inventory gains raised concerns of weaker demand, analysts at ANZ said in a client note. U.S. crude oil stockpiles rose by 1.4 million barrels in the week ended Aug. 9, compared with estimates for a 2.2 million barrel draw, building for the first time since late June.

China's factory output growth slowed in July while refinery output fell for a fourth month, underscoring the country's spotty economic recovery, also limiting the market's upside.

The market's focus will be on July's U.S. retail sales growth after the mixed data from China, said OANDA senior market analyst Kelvin Wong in an email, adding that a disappointing figure may trigger a short-term bearish price move.

Overall, analysts have mixed views on the market's forward price trajectory.

Nomura's Takashima sees oil prices remaining under pressure as concerns persist that global demand, especially in China, will be sluggish, and predicts WTI will head towards the $72 mark hit in August.

However, independent market analyst Tina Teng said prices may go higher in the third quarter, despite China's slowdown, due to conflict in the Middle East, rate cuts by central banks and a softening U.S. dollar. She sees Brent prices rising to $90 per barrel.

(Reporting by Yuka Obayashi in Tokyo and Trixie Yap in Singapore; Editing by Jacqueline Wong and Sonali Paul)