CVE-2026-115834 in sequoia-openpgpinfo

Summary

by MITRE • 11/27/2026

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.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 11/28/2026

The vulnerability identified within the sequoia-openpgp library represents a significant input validation and output encoding flaw affecting how User IDs and Notation Data are processed for display or debugging purposes. This issue stems from an insufficient sanitization mechanism where attacker-controlled packet bytes are passed through with only lossy UTF-8 conversion, failing to properly escape control characters, newlines, or terminal control sequences. In the context of OpenPGP implementations, User IDs typically contain human-readable identifiers such as names and email addresses, while Notation Data allows for arbitrary key-value pairs attached to signatures. When these fields are rendered in a console or terminal environment without proper escaping, they can be exploited to manipulate the visual output of an application. This is not merely a cosmetic issue but a potential vector for interactive injection attacks where malicious actors can alter how information is presented to users or system administrators.

From a technical perspective, this flaw aligns with CWE-16, which covers Notation in Configuration Files and Data, specifically regarding the failure to properly sanitize special characters that have meaning within the target environment. Furthermore, it relates closely to CWE-79, Improper Neutralization of Input During Web Page Generation, if the output is rendered in a web context, or more broadly to injection vulnerabilities where untrusted data influences command execution or display logic. The specific failure to escape control characters and terminal sequences means that an attacker could inject ANSI escape codes or other terminal manipulation commands into these fields. If an application utilizes sequoia-openpgp to print key details for verification purposes, a crafted User ID containing malicious escape sequences could hijack the terminal session, potentially leading to screen scraping, phishing by altering displayed trust indicators, or even executing arbitrary commands if the terminal emulator is vulnerable to such injection techniques.

The operational impact of this vulnerability depends heavily on how the consuming application utilizes the sequoia-openpgp library for displaying cryptographic identities. While signature verification logic remains unaffected and the core cryptographic integrity checks are not compromised, the presentation layer becomes a point of failure. An attacker who can inject data into an OpenPGP key or signature could cause misrendering of identity information, leading to social engineering attacks where users might be deceived about the true owner of a key due to altered display text. In more severe scenarios involving interactive terminal sessions, this could allow for session hijacking or unauthorized command execution if the application does not isolate output rendering from input processing. This is particularly dangerous in security-sensitive applications that rely on accurate visual confirmation of user identities during authentication or signing processes.

Mitigation strategies primarily involve upgrading to sequoia-openpgp version 2.5.0, where this issue has been addressed through improved sanitization and escaping mechanisms for display contexts. For organizations unable to immediately upgrade, defensive coding practices should be implemented within the consuming applications. This includes ensuring that any data retrieved from OpenPGP structures intended for terminal output is strictly validated against a whitelist of allowed characters or passed through a robust HTML or terminal escape sequence sanitizer before rendering. Developers must also adhere to the principle of least privilege by avoiding direct printing of untrusted cryptographic metadata in interactive shells without proper encoding. Regular security audits focusing on input validation and output encoding, particularly regarding CWE-79 and related injection flaws, are recommended to prevent similar issues across other components that handle user-supplied data from external sources.

Responsible

Redhat

Reservation

10/23/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00330

KEV

no

Activities

very low

Sources

Do you know our Splunk app?

Download it now for free!