Oil prices surged to more than 2½-year highs Tuesday on reports of a pipeline explosion in Libya.