CVE-2026-115835: Sequoia-openpgp: sequoia-openpgp: ascii armor parsing buffers a line without a length limit
A flaw was found in sequoia-openpgp. The ASCII-armor reader buffers each input line with readto(newline) and does not enforce a maximum line length. An attacker-supplied armored message whose line length is comparable to the process memory limit can exhaust memory in the parsing process. Resident memory follows the input size, with a small constant factor from the growable buffer. This is not a classic amplification flaw. The issue is present in sequoia-openpgp 2.4.2. The unreleased fix enforces a 4096-byte line limit.
Other sources
A flaw was found in sequoia-openpgp. The ASCII-armor reader does not limit the length of a line. Parsing an armored message with a very long line can exhaust memory in the process. Memory use follows the input size, with a small constant factor, and is not a classic amplification.
— MITRE
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications that use cargo/sequoia-openpgp to parse ASCII-armored OpenPGP messages are exposed if they accept attacker-controlled armored input. The issue affects the process performing the parsing.
What must an attacker do to trigger the memory exhaustion?
An attacker needs to cause the application to parse an ASCII-armored message containing a very long line. No privileges are required, but the supplied vector indicates user interaction is required.
Is this a high-amplification memory exhaustion issue?
No. Memory consumption follows the input size with a small constant factor, rather than producing classic amplification. An attacker still may exhaust available process memory by providing sufficiently large input.
How can I determine whether an application may be affected?
Identify whether the application depends on cargo/sequoia-openpgp and parses ASCII-armored OpenPGP data. Review whether that data can come from untrusted users or external sources and whether input line lengths are constrained before parsing.