The condition of being affected by an ulcer.