Crypt::Age versions before 0.004 for Perl allow CPU exhaustion via an unbounded number of recipient stanzas, each costing an X25519 scalar multiplication in unwrap_file_key
Crypt::Age versions before 0.004 for Perl allow CPU exhaustion via an unbounded number of recipient stanzas, each costing an X25519 scalar multiplication in unwrap_file_key. The header parser accepts any number of recipient stanzas, and unwrap_file_key tries every identity against every X25519 stanza. Each attempt runs a scalar multiplication, an HKDF and a ChaCha20-Poly1305 open. The header MAC cannot be checked first, because its key comes from the file key, which only a successful unwrap produces. Each stanza is 98 bytes of attacker-chosen header and buys one scalar multiplication per identity held, and the file is rejected only after every one of them has run. A caller reaches this through decrypt, decrypt_file or decrypt_filehandle whenever it decrypts a file it did not write.
CVE-2026-85783
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-85783
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://github.com/Getty/p5-crypt-age",
"modules": [
"Crypt::Age"
],
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "0.004",
"versionType": "custom"
}
],
"packageURL": "pkg:cpan/Crypt-Age",
"packageName": "Crypt-Age",
"programFiles": [
"lib/Crypt/Age/Header.pm"
],
"collectionURL": "https://cpan.org/modules",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "Crypt::Age::Header::parse_from_fh"
},
{
"name": "Crypt::Age::Header::unwrap_file_key"
}
]
}
]- Related CVEs
- CVE-2026-85783
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #44988 · Revision 1
- Added to Heist Feed
- Publisher date