Rust advisories / sequoia-openpgp
Vulnerability LowRUSTSEC-2024-0345 · sequoia-openpgp
RUSTSEC-2024-0345: Low severity (DoS) vulnerability in sequoia-openpgp
Short answerA security vulnerability in the sequoia-openpgp crate: Low severity (DoS) vulnerability in sequoia-openpgp. GitHub rates it Low. Fixed in 1.21.0: update to a fixed version.
| Crate | sequoia-openpgp |
|---|---|
| Type | Vulnerability (denial-of-service) |
| Affected versions | From 1.13.0 before 1.21.0. |
| Fixed in | 1.21.0 |
| Severity | Low (GitHub rating) |
| Published | 2024-06-26 |
| Last changed | 2025-10-28 |
| Also known as | CVE-2024-58261, GHSA-9344-p847-qm5c |
| Affected functions | sequoia_openpgp::cert::raw::RawCertParser |
What to do
- See which version you have:
cargo tree -i sequoia-openpgp(it also shows which of your dependencies pulls it in). - 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 examplesequoia-openpgp = "1.21.0") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
There is a denial-of-service vulnerability in sequoia-openpgp, our crate providing a low-level interface to our OpenPGP implementation. When triggered, the process will enter an infinite loop.
Many thanks to Andrew Gallagher for disclosing the issue to us.
Impact
Any software directly or indirectly using the interface sequoia_openpgp::cert::raw::RawCertParser. Notably, this includes all software using the sequoia_cert_store crate.
Details
The RawCertParser does not advance the input stream when encountering unsupported cert (primary key) versions, resulting in an infinite loop.
The fix introduces a new raw-cert-specific cert::raw::Error::UnuspportedCert.
Affected software
- sequoia-openpgp 1.13.0
- sequoia-openpgp 1.14.0
- sequoia-openpgp 1.15.0
- sequoia-openpgp 1.16.0
- sequoia-openpgp 1.17.0
- sequoia-openpgp 1.18.0
- sequoia-openpgp 1.19.0
- sequoia-openpgp 1.20.0
- Any software built against a vulnerable version of sequoia-openpgp which is directly or indirectly using the interface
sequoia_openpgp::cert::raw::RawCertParser. Notably, this includes all software using thesequoia_cert_storecrate.
References
- Package: crates.io/crates/sequoia-openpgp
- Advisory: rustsec.org/advisories/RUSTSEC-2024-0345.html
- Report: gitlab.com/sequoia-pgp/sequoia/-/issues/1106
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
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?