RustSec logo

History ⋅ Edit ⋅ JSON (OSV)

RUSTSEC-2026-0611

Tolerant ASCII armor parsing can select a different block than a strict parser

Reported
Issued
Package
sequoia-openpgp (crates.io)
Type
Vulnerability
Aliases
References
CVSS Score
3.7 LOW
CVSS Details
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality Impact
None
Integrity Impact
Low
Availability Impact
None
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Patched
  • >=2.5.0

Description

The ASCII armor parser has a new mode, ReaderMode::Strict, which only considers compliant ASCII-armor blocks. This should be used when it is essential that a message be understood in the same way by different implementations. For instance, an attacker could leverage the current tolerant mode to create a message that is interpreted one way by Sequoia and another way by a different implementation. Imagine a file that contains an out-of-spec ASCII-armor block that only Sequoia understands followed by a fully valid ASCII-armor block. Sequoia will parse the first block and the other implementation will parse the second one. This can lead to two people who have the message assuming that the same thing has been parsed, when in fact they got different things.

To prevent this attack, users must explicitly select ReaderMode::Strict.

Advisory available under CC0-1.0 license.