CVE-2025-67897 Sequoia PGP has Subtraction Overflow when aes_key_unwrap function is provided ciphertext that is too short

Medium 5.3 Published Updated

A remote attacker can crash applications using the Sequoia PGP library by sending crafted encrypted messages with short ciphertexts.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-67897?

CVE-2025-67897 is a medium-severity denial of service vulnerability in sequoia-pgp sequoia, published on 14 Dec 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

In Sequoia before 2.1.0, aes_key_unwrap panics if passed a ciphertext that is too short. A remote attacker can take advantage of this issue to crash an application by sending a victim an encrypted message with a crafted PKESK or SKESK packet.

Weakness: CWE-195

Which versions are affected by CVE-2025-67897?

3 open source packages ship an affected version, including sequoia-openpgp.

PackageAffectedFixed in
sequoia-openpgp crates.ioAll versions2.1.0
sequoia-openpgp crates.ioAll versions2.1.0
sequoia-openpgp crates.ioFrom 0.0.0-02.1.0

How do I fix CVE-2025-67897?

Upgrade sequoia-openpgp to 2.1.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-67897 being exploited?

There is no known exploitation of CVE-2025-67897 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2025-67897, GHSA-v6x3-9r38-r27q, RUSTSEC-2025-0136, UBUNTU-CVE-2025-67897.

Is CVE-2025-67897 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free