CVE-2026-115835 in sequoia-openpgp
Summary
by MITRE • 11/27/2026
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.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified within sequoia-openpgp represents a significant resource exhaustion risk stemming from improper handling of ASCII-armored data structures. Specifically, the flaw resides in the ASCII-armor reader component, which fails to enforce any upper bound on the length of individual lines during parsing operations. In OpenPGP implementations, messages are often encoded using ASCII armor to facilitate transmission over text-based protocols such as email or HTTP. This encoding process breaks binary data into fixed-length lines for readability and integrity checking. However, when a malicious actor crafts an armored message containing exceptionally long lines that deviate from standard formatting expectations, the parser attempts to allocate memory proportional to the size of these unbounded inputs without adequate safeguards.
This lack of input validation leads directly to excessive memory consumption within the processing application. As described in the technical analysis, memory usage scales linearly with the input size, albeit with a small constant factor. This behavior distinguishes it from classic amplification attacks where output is significantly larger than input; instead, this is a direct resource exhaustion scenario driven by untrusted data volume. If an attacker supplies sufficiently large malformed inputs, they can trigger out-of-memory conditions that may cause the application to crash or become unresponsive. In environments where sequoia-openpgp is used for automated processing of incoming messages, such as mail servers or document management systems, this could result in a denial of service affecting not only the specific process but potentially impacting system stability if memory limits are shared across critical services.
From a classification perspective, this vulnerability aligns with CWE-400: Uncontrolled Resource Consumption and more specifically CWE-789: Memory Allocation with Excessive Size Value or Integer Overflow in terms of its root cause mechanism where the allocation logic does not account for realistic bounds on input dimensions. The operational impact is primarily focused on availability rather than confidentiality or integrity, as the primary consequence is system instability due to resource depletion. Attackers can exploit this by sending specially crafted OpenPGP messages that trigger the memory exhaustion condition remotely if the service processes untrusted inputs without prior sanitization.
To mitigate this risk, developers and administrators should prioritize updating sequoia-openpgp to versions where line length limits are strictly enforced during parsing. Implementing strict input validation policies is essential; parsers must reject or truncate lines exceeding a reasonable maximum length defined by OpenPGP standards rather than attempting to process arbitrarily large segments. Additionally, deploying resource monitoring tools that can detect abnormal memory spikes associated with specific processes can help in identifying and isolating such attacks before they cause widespread disruption. For organizations relying on this library for secure communication infrastructure, ensuring that the underlying cryptographic libraries are patched against known parsing flaws is critical to maintaining robust security postures against automated exploitation attempts targeting input handling logic.