CVE-2024-58261: High severity Sequoia OpenPGP vulnerability

Published Jun 26, 2024
·
Updated

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.

Other sources

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 sequoiaopenpgp::cert::raw::RawCertParser. Notably, this includes all software using the sequoiacertstore 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 sequoiaopenpgp::cert::raw::RawCertParser. Notably, this includes all software using the sequoiacertstore crate.

GitHub

Affected Software

3 affected componentsFixes available
Sequoia OpenPGP<1.21.0
rust/sequoia-openpgp>=1.13.0<1.21.0
1.21.0
Sequoia-pgp Sequoia-openpgp Rust>=1.13.0<1.21.0

Event History

Jun 26, 2024
Advisory Published
via GitHub·07:10 PM
Data Sourced
via GitHub·07:10 PM
DescriptionSeverityWeaknessAffected Software
Jul 27, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-58261?

CVE-2024-58261 is categorized as a moderate severity vulnerability due to the potential for infinite loops during RawCertParser operations.

2

How do I fix CVE-2024-58261?

To mitigate CVE-2024-58261, upgrade the sequoia-openpgp crate to version 1.21.0 or later.

3

What software is affected by CVE-2024-58261?

CVE-2024-58261 affects the sequoia-openpgp crate versions before 1.21.0.

4

What types of operations are impacted by CVE-2024-58261?

CVE-2024-58261 impacts RawCertParser operations that encounter unsupported primary key types.

5

Is CVE-2024-58261 a remote vulnerability?

CVE-2024-58261 does not denote a remote vulnerability but may cause denial of service during local operations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203