RustSec logo

History ⋅ Edit ⋅ JSON (OSV)

RUSTSEC-2026-0610

ASCII armor parsing buffers a line without a length limit

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

Description

The ASCII-armor reader did not limit the length of a line, parsing an armored message with a very long line could exhaust memory in the process. Memory use follows the input size, with a small constant factor, and is not a classic amplification.

A 4096 byte line length of ASCII-armor input is now enforced to prevent a potentially unbounded memory allocation.

Advisory available under CC0-1.0 license.