CVE-2026-115836 in sequoia-openpgp
Summary
by MITRE • 11/27/2026
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.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/28/2026
The vulnerability identified within sequoia-openpgp represents a significant deviation from expected cryptographic parsing behavior, specifically concerning the handling of ASCII-armored OpenPGP messages. ASCII armor is a standard encoding method used to represent binary OpenPGP data as text, facilitating transmission over systems that may not handle raw binary well or allowing for easy copy-pasting in email clients and other text-based interfaces. The core issue lies in the default parser's excessive tolerance when interpreting the framing characters of these armored messages. Specifically, the parser accepts Unicode dash characters instead of only standard ASCII hyphens (U+002D) within the armor headers and footers, such as those found in BEGIN PGP MESSAGE or END PGP MESSAGE markers. Furthermore, it ignores leading quote characters that are not part of the specified format for checksums or other metadata fields. This leniency creates a scenario where the parsing logic becomes ambiguous regarding what constitutes valid message boundaries.
This technical flaw leads to a critical desynchronization between different parsers and security contexts. A crafted byte stream can be constructed such that it is interpreted as one specific OpenPGP message by sequoia-openpgp in its default tolerant mode, while being parsed as an entirely different message or rejected outright by strict ASCII-armor implementations like GnuPG when operating in standard modes. This discrepancy arises because the attacker can embed Unicode variants of dashes and leading quotes that alter how the payload is segmented or interpreted. For instance, a malicious actor could craft a packet where the armor framing includes these non-standard characters to trick the vulnerable parser into accepting a message that contains hidden commands, forged signatures, or unintended data structures that would otherwise be invalid under strict compliance with RFC 4880 and related standards.
The operational impact of this vulnerability is substantial, particularly in environments relying on sequoia-openpgp for verifying digital signatures or decrypting sensitive communications. An attacker could exploit this desynchronization to perform signature forgery attacks or cause confusion in message verification processes. If a system relies on the output of sequoia-openpgp to determine trustworthiness based on valid armor framing, an attacker might present a malicious payload that appears legitimate to the vulnerable parser but would be flagged as malformed by stricter validators used for auditing or secondary checks. This undermines the integrity guarantees provided by OpenPGP, potentially allowing unauthorized access, data injection, or bypassing of security controls that depend on accurate parsing of message boundaries and content types.
From a classification perspective, this flaw aligns with CWE-20 Improper Input Validation, as the application fails to restrict input characters to those strictly defined for ASCII armor framing. It also relates to CWE-758 Reliance on Undefined, Unspecified, or External Components if the behavior depends on external parser implementations that do not share the same tolerance levels. In terms of MITRE ATT&CK tactics, this vulnerability facilitates Initial Access and Defense Evasion techniques by allowing an attacker to bypass input validation mechanisms through obfuscation using Unicode characters. The use of non-standard characters serves as a form of evasion against signature-based detection or strict parsing rules that do not account for these specific edge cases in character encoding.
Mitigation strategies must focus on enforcing stricter adherence to the OpenPGP specification regarding ASCII armor formatting. Developers should update sequoia-openpgp configurations to prioritize strict mode, which rejects inputs containing non-ASCII dashes and unexpected leading quotes unless explicitly required by the standard checksum format. Additionally, input validation layers at network or application boundaries should normalize Unicode dash characters to their ASCII equivalents before processing, ensuring consistent behavior across different parser implementations. Security teams should also audit integrations of sequoia-openpgp to ensure that downstream systems are not relying on its default tolerant parsing for critical security decisions without independent verification using a strict-compliant library like GnuPG or Libgcrypt. Regular updates to the underlying cryptographic libraries and adherence to updated RFC standards will help close this gap between permissive and strict interpretation of armored data streams.