Email me

Rust advisories / sequoia-openpgp

Vulnerability MediumRUSTSEC-2025-0136 · sequoia-openpgp

RUSTSEC-2025-0136: Underflow in aes_key_unwrap function

Short answerA security vulnerability in the sequoia-openpgp crate: Underflow in aes_key_unwrap function. Medium severity (CVSS 4.3). Fixed in 2.1.0: update to a fixed version.

Cratesequoia-openpgp
TypeVulnerability (denial-of-service)
Affected versionsBefore 2.1.0.
Fixed in2.1.0
SeverityMedium, CVSS 4.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Published2025-11-07
Last changed2025-12-17
Also known asCVE-2025-67897, GHSA-v6x3-9r38-r27q
Affected functionssequoia_openpgp::crypto::ecdh::aes_key_unwrap

What to do

  1. See which version you have: cargo tree -i sequoia-openpgp (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p sequoia-openpgp. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example sequoia-openpgp = "2.1.0") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for sequoia-openpgp

Full security history of sequoia-openpgp

Up next

Same cratesequoia-openpgp: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ