CVE-2026-115836: Sequoia-openpgp: sequoia-openpgp: tolerant ascii armor parsing can select a different block than a strict parser
A flaw was found in sequoia-openpgp. The default ASCII-armor parser accepts Unicode dash characters in armor framing and ignores leading quote characters. A crafted byte stream can be parsed as one message by this tolerant parser and as a different message by a strict ASCII-armor parser. The strict mode is opt-in; the default parser remains tolerant.
Other sources
A flaw was found in sequoia-openpgp. The default ASCII-armor ReaderMode is Tolerant. Header detection treats Unicode dash punctuation, including en dash and em dash, as armor framing dashes, and the header search ignores leading quote characters such as greater-than. A byte stream can therefore contain an out-of-specification armor region that this reader accepts and a later specification-compliant region that a strict reader accepts. The two readers then yield different data. sequoia-openpgp 2.4.2 has no ReaderMode::Strict. The unreleased fix adds that mode as an opt-in. The default remains tolerant.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Opt in to strict ASCII-armor parsing; ReaderMode::Strict is unavailable in sequoia-openpgp 2.4.2.
sequoia-openpgp ASCII-armor parser ReaderMode = Strict
Event History
Frequently Asked Questions
Are applications using the default parser affected?
Yes. The default ASCII-armor parser remains tolerant; strict parsing is opt-in.
What must an attacker provide to exploit this behavior?
An attacker needs to supply a crafted byte stream using Unicode dash characters in armor framing and/or leading quote characters. This can cause the tolerant parser to select one message while a strict ASCII-armor parser selects a different one.
What can be done if changing the dependency is not immediately possible?
Use the opt-in strict ASCII-armor parsing mode where possible. This avoids the default tolerant handling described for Unicode dash characters and leading quote characters.