{"id":"RUSTSEC-2026-0614","summary":"User IDs and notation data are displayed without escaping control characters","details":"Users of the library often display attacker-controlled user IDs and notation\ndata.  If these contain control characters, this can cause problems.  For\ninstance, if a user ID contains an embedded NUL character, libraries that use C\nstrings may display a truncated version.  If the data is displayed in a\nterminal, an attacker can inject newlines to perform a sigspoof-style attack, or\nthey can control the user's terminal by injecting ANSI escape sequences.\n\nUnfortunately, it is easy to forgot to sanitize these values.  To mitigate this\nrisk, the display and debug implementations of UserID and NotationData now\nescape control characters.  The display of these values does not change for\nlegitimate users, who do use control characters for user IDs or notations.\n\nGoing forward, users who used `String::from_utf8_lossy(userid.value())` to\ndisplay a user ID should just display `userid` directly.","aliases":["CVE-2026-115834"],"modified":"2026-11-29T16:00:03.880761038Z","published":"2026-11-27T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/sequoia-openpgp"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0614.html"},{"type":"WEB","url":"https://gitlab.com/sequoia-pgp/sequoia/-/blob/openpgp/v2.5.0/openpgp/NEWS"}],"affected":[{"package":{"name":"sequoia-openpgp","ecosystem":"crates.io","purl":"pkg:cargo/sequoia-openpgp"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"2.5.0"}]}],"ecosystem_specific":{"affects":{"arch":[],"os":[],"functions":[]},"affected_functions":null},"database_specific":{"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0614.json","informational":null,"categories":["format-injection"],"cvss":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N"}]}