Oil prices have rallied so far this year, as OPEC-led efforts have helped erase a big global surplus. Now, the market may soon face a shortage of crude supplies that would support further price gains.

Stockpiles of the commodity among the industrialized nations that make up the Organization for Economic Cooperation and Development stood at...