A corneal ulcer is an open sore on your cornea. Treatment may include medicine to treat the infection, as well as medicine to ease pain and swelling.