Advisory

RUSTSEC-2025-0136

Also known as: CVE-2025-67897, GHSA-v6x3-9r38-r27q

Summary

Underflow in aes_key_unwrap function

Details

The aes_key_unwrap function would panic if passed a ciphertext
that was too short. In a debug build, it would panic due to a
subtraction underflow. In a release build, it would use the
small negative quantity to allocate a vector. Since the
allocator expects an unsigned quantity, the negative value would
be interpreted as a huge allocation. The allocator would then
fail to allocate the memory and panic.

An attacker could trigger this panic by sending a victim an
encrypted message whose PKESK or SKESK packet has been specially
modified. When the victim decrypts the message, the program
would crash.

Severity

Medium Basis: CVSS v3 score 4.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Dates

Published
2025-11-07 12:00 UTC
Modified
2025-12-17 06:16 UTC

Affected packages and fixes

sequoia-openpgp

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 2.1.0 (semver)

Fixed versions

2.1.0

Fix

  • Fixed version 2.1.0
    cargo update -p sequoia-openpgp --precise 2.1.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences