A gastric ulcer is an open sore that develops in the lining of the stomach. It may cause pain, nausea, or digestive issues.