{"id":"CVE-2024-58261","aliases":["CVE-2024-58261","GHSA-9344-p847-qm5c","RUSTSEC-2024-0345"],"related":[],"kind":"vulnerability","state":"published","title":"Low severity (DoS) vulnerability in sequoia-openpgp","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nMany thanks to Andrew Gallagher for disclosing the issue to us.\n\n## Impact\n\nAny software directly or indirectly using the interface `sequoia_openpgp::cert::raw::RawCertParser`.  Notably, this includes all\nsoftware using the `sequoia_cert_store` crate.\n\n## Details\n\nThe `RawCertParser` does not advance the input stream when encountering unsupported cert (primary key) versions, resulting in an infinite loop.\n\nThe fix introduces a new raw-cert-specific `cert::raw::Error::UnuspportedCert`.\n\n## Affected software\n\n- sequoia-openpgp 1.13.0\n- sequoia-openpgp 1.14.0\n- sequoia-openpgp 1.15.0\n- sequoia-openpgp 1.16.0\n- sequoia-openpgp 1.17.0\n- sequoia-openpgp 1.18.0\n- sequoia-openpgp 1.19.0\n- sequoia-openpgp 1.20.0\n- 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 the `sequoia_cert_store` crate.","format":"markdown","source":"ghsa"},{"lang":"en","text":"There is a denial-of-service vulnerability in sequoia-openpgp, our\ncrate providing a low-level interface to our OpenPGP implementation.\nWhen triggered, the process will enter an infinite loop.\n\nMany thanks to Andrew Gallagher for disclosing the issue to us.\n\n## Impact\n\nAny software directly or indirectly using the interface\n`sequoia_openpgp::cert::raw::RawCertParser`.  Notably, this includes all\nsoftware using the `sequoia_cert_store` crate.\n\n## Details\n\nThe `RawCertParser` does not advance the input stream when\nencountering unsupported cert (primary key) versions, resulting in an\ninfinite loop.\n\nThe fix introduces a new raw-cert-specific\n`cert::raw::Error::UnuspportedCert`.\n\n## Affected software\n\n- sequoia-openpgp 1.13.0\n- sequoia-openpgp 1.14.0\n- sequoia-openpgp 1.15.0\n- sequoia-openpgp 1.16.0\n- sequoia-openpgp 1.17.0\n- sequoia-openpgp 1.18.0\n- sequoia-openpgp 1.19.0\n- sequoia-openpgp 1.20.0\n- Any software built against a vulnerable version of sequoia-openpgp\n  which is directly or indirectly using the interface\n  `sequoia_openpgp::cert::raw::RawCertParser`.  Notably, this includes\n  all software using the `sequoia_cert_store` crate.","format":"markdown","source":"rustsec"},{"lang":"es","text":"El paquete sequoia-openpgp para Rust 1.13.0 anterior a 1.21.0 permite un bucle infinito de mensajes \"Leyendo un certificado: Operación no válida: No es un paquete de clave\" para las operaciones de RawCertParser que encuentran un tipo de clave principal no compatible.","source":"nvd"}],"published":"2024-06-26T12:00:00.000Z","modified":"2026-06-17T08:14:43.983Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":2.9,"rating":"LOW"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","score":2.9,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":2.9,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-835"],"affected":[{"ranges":[{"type":"semver","introduced":"1.13.0","fixed":"1.21.0","status":"affected"}],"vendor":"sequoia-pgp","product":"sequoia","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.13.0","status":"affected","fixed":"1.21.0"}],"ecosystem":"crates.io","package":"sequoia-openpgp","purl":"pkg:cargo/sequoia-openpgp","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.13.0","status":"affected","fixed":"1.21.0"}],"ecosystem":"crates.io","package":"sequoia-openpgp","purl":"pkg:cargo/sequoia-openpgp","source":"rustsec"},{"ranges":[{"status":"affected","introduced":"1.13.0","fixed":"1.21.0"}],"vendor":"sequoia-pgp","product":"sequoia-openpgp","cpe":"cpe:2.3:a:sequoia-pgp:sequoia-openpgp:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0345.html","tags":["advisory","third-party-advisory","web"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://gitlab.com/sequoia-pgp/sequoia/-/issues/1106","tags":["exploit","report","web"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://crates.io/crates/sequoia-openpgp","tags":["package","product"],"sources":["cvelist","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58261","tags":["advisory"],"sources":["ghsa"]},{"url":"https://gitlab.com/sequoia-pgp/sequoia","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-07-28T18:52:32.245Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-58261","url":"https://www.cve.org/CVERecord?id=CVE-2024-58261","licence":"CVE Terms of Use","modified":"2025-07-28T18:55:28.197Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9344-p847-qm5c","url":"https://github.com/advisories/GHSA-9344-p847-qm5c","licence":"CC-BY-4.0","modified":"2025-10-28T06:29:08.241Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2024-0345","url":"https://rustsec.org/advisories/RUSTSEC-2024-0345.html","licence":"CC0-1.0","modified":"2025-10-28T06:29:08.241Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-58261","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58261","licence":"Public domain","modified":"2026-06-17T08:14:43.983Z"}],"updatedAt":"2026-11-25T22:58:52.829Z","epss":{"score":0.00428,"percentile":0.38947,"date":"2026-12-01T12:00:22.000Z"}}