Advisory

GHSA-9344-p847-qm5c

Also known as: CVE-2024-58261, RUSTSEC-2024-0345

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.

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 the sequoia_cert_store crate.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2024-06-26 19:10 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

sequoia-openpgp

crates.io · All systems

Affected

  • introduced 1.13.0, fixed 1.21.0 (semver)

Fixed versions

1.21.0

Fix

  • Fixed version 1.21.0
    cargo update -p sequoia-openpgp --precise 1.21.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences