Ophthalmology

A patient presented with painful ophthalmoplegia. On CT scan, there was enlargement of the cavernous sinus on one side. The most likely diagnosis is: