A mouth ulcer, also known as a canker sore, is a small, shallow lesion that develops on the soft tissues in the mouth or at the base of the gums. Unlike cold sores, mouth ulcers don’t occur on the surface of your lips and aren’t contagious. They can be painful and can make eating, drinking, and talking uncomfortable.