Oil prices fell to a three-week low on Wednesday on news that Libyan output was recovering from an oilfield technical issue, fuelling concerns that Opec-led output cuts to reduce global inventories were being undermined by producers outside the deal.

Benchmark Brent oil was down $1.63, or 3.1%, at $50.21 a barrel by 1:41pm GMT, after earlier touching $50.12 a barrel, the weakest since 10 May. US light crude traded at $48.31, down $1.35, or 2.7%.

Both contracts were on track for their third straight monthly loss.

"Unless some bullish news stops this, prices will fall further in particular now with Brent trading below the post-Opec low and approaching $50 a barrel," said Carsten Fritsch, commodity analyst at Commerzbank.

Opec and other producers, including Russia, agreed last week to extend a deal to cut production by about 1.8 million barrels per day until the end of March 2018.

"Traders covered short positions ahead of Opec and some of these have now been re-established," said Ole Hansen, head of commodities strategy at Saxo Bank.

Opec members Libya and Nigeria are exempt from the cuts, while US shale oil producers are not part of the agreement and have been ramping up production.

Libya's oil production has risen to 827,000 bpd, climbing above a three-year peak of 800,000 bpd reached earlier in May, the National Oil Corporation said, after a technical issue that hit Sharara oilfield was resolved.

Shipping data on Thomson Reuters Eikon shows that, excluding pipeline exports, Libya shipped an average of 500,000 bpd of oil so far this year, compared with 300,000 bpd average for 2016.

Official government data showing weekly US crude inventories will be published on Thursday. Analysts polled by Reuters expected US stocks to have fallen by 2.8 million barrels last week, their eighth straight weekly decline.

"Attention will be on US inventory stocks tomorrow, with expectations of a further draw this week, following initial indications of strong demand for gasoline after the AAA said that driving mileage over the holiday weekend was the highest since 2005," said analysts at Cenkos Securities.

Compliance by those signed up to the Opec-led deal remained high among Opec members and industry sources said Russian figures for May showed output in line with its pledge.

Saudi Arabia and Russia said on Wednesday that co-operation between Opec and non-Opec producers was seen lasting beyond March. "We want to institutionalise co-operation between Opec and non-Opec producers," Saudi Energy Minister Khalid al-Falih said.