CVE-2026-115834: sequoia-openpgp: User IDs and notation data are displayed without escaping control characters
A flaw was found in sequoia-openpgp. Display and Debug formatting of User IDs and notation data does not escape control characters. When an application prints those values, a crafted User ID or notation can misrender the identity or alter terminal output.
Other sources
A flaw was found in sequoia-openpgp. The Display and Debug implementations for UserID and NotationData passed attacker-controlled packet bytes through with only UTF-8 lossy conversion and did not escape control characters, newlines, or terminal control sequences. An application that prints those values can misrender the identity or alter terminal output. Signature verification of ordinary keys is not changed. Fixed in sequoia-openpgp 2.5.0.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
sequoia-openpgpto a version that resolves this vulnerability.Fixed in 2.5.0
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using sequoia-openpgp that print UserID or NotationData values through their Display or Debug implementations are exposed. The impact is limited to how attacker-controlled packet data is rendered, including potentially in terminal output.
What does an attacker need to do to trigger the issue?
An attacker needs to provide OpenPGP packet data containing a User ID or notation data with control characters, newlines, or terminal control sequences, and cause an application to print that value. User interaction is required according to the supplied severity vector.
Does this affect signature verification or the validity of ordinary keys?
No. Signature verification of ordinary keys is not changed by this flaw.
What version fixes the issue?
The issue is fixed in sequoia-openpgp 2.5.0.