CVE-2024-58261 Low severity (DoS) vulnerability in sequoia-openpgp
Attackers can cause a denial of service via infinite loop in the sequoia-openpgp Rust library when parsing unsupported primary key types.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-58261?
CVE-2024-58261 is a low-severity denial of service vulnerability in sequoia-pgp sequoia, published on 27 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
The sequoia-openpgp crate 1.13.0 before 1.21.0 for Rust allows an infinite loop of "Reading a cert: Invalid operation: Not a Key packet" messages for RawCertParser operations that encounter an unsupported primary key type.
Weakness: CWE-835
Which versions are affected by CVE-2024-58261?
3 open source packages ship an affected version, including sequoia-openpgp. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
sequoia-openpgp crates.io | From 1.13.0 | 1.21.0 |
sequoia-openpgp crates.io | From 1.13.0 | 1.21.0 |
sequoia-openpgp crates.io | From 1.13.0 | 1.21.0 |
Products include Sequoia-Pgp Sequoia-Openpgp.
How do I fix CVE-2024-58261?
Upgrade sequoia-openpgp to 1.21.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-2024-58261 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-58261 exists.
Other vulnerabilities in sequoia-pgp sequoia
Sources
Also known as DEBIAN-CVE-2024-58261, GHSA-9344-p847-qm5c, RUSTSEC-2024-0345, UBUNTU-CVE-2024-58261.