CVE-2024-58261: Sequoia openpgp Denial of Service Vulnerability
LOWCVE-2024-58261 is a LOW (CVSS 2.9) denial of service vulnerability (CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')) affecting Sequoia openpgp libraries in the crates.io ecosystem. The issue involves low severity (dos) vulnerability in sequoia-openpgp. Remediation is available by upgrading affected packages to version 1.21.0.
CVE-2024-58261 at a Glance
Security Impact
CVSS: 2.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2024-58261
To remediate this vulnerability, upgrade all affected Sequoia openpgp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade sequoia-openpgp to 1.21.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for sequoia-openpgp
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-58261, inspect your project dependencies for Sequoia openpgp:
inspect dependencies for sequoia-openpgp
Analyze the terminal output to locate any version of Sequoia openpgp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.21.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop'), where the product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. In Sequoia openpgp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-58261 Affected Sequoia openpgp Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sequoia-openpgp
|
crates.io |
≥ 1.13.0
< 1.21.0
|
1.21.0
|
References
Frequently Asked Questions
What is CVE-2024-58261?
Which Sequoia openpgp versions are affected?
What version fixes CVE-2024-58261?
Is sequoia-openpgp affected?
What is the CVSS score of CVE-2024-58261?
What CWE is associated with CVE-2024-58261?
How can I check crates.io dependencies for CVE-2024-58261?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9344-p847-qm5c",
"modified" : "2025-07-28T15:38:06Z",
"published" : "2024-06-26T19:10:15Z",
"aliases" : [ "CVE-2024-58261" ],
"summary" : "Low severity (DoS) vulnerability in sequoia-openpgp",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "sequoia-openpgp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.13.0"
}, {
"fixed" : "1.21.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-58261"
}, {
"type" : "PACKAGE",
"url" : "https://gitlab.com/sequoia-pgp/sequoia"
}, {
"type" : "WEB",
"url" : "https://gitlab.com/sequoia-pgp/sequoia/-/issues/1106"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2024-0345.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-835" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-26T19:10:15Z",
"nvd_published_at" : null
}
}