Lateral wall, from superior to inferior, lie CN 3, CN 4, CN 5 (1st division), CN 5 (2nd division). Medial to CN 5 (1st division) is CN 6. More medial is the internal carotid artery. The internal carotid artery doubles back above the cavernous sinus and runs in between its roof and the ipsilateral optic nerve.