CVE-2025-30258
gnupg: verification DoS due to a malicious subkey in the keyring
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · March 19, 2025
Updated · June 30, 2026
Description
A flaw was found in GnuPG. In affected versions, if a user chooses to import a certificate with certain crafted subkey data that lacks a valid backsig or that has incorrect usage flags, the user loses the ability to verify signatures made from certain other signing keys, leading to a verification denial of service.
Statement
This vulnerability is rated as LOW impact. This is because it exists in GnuPG's certificate import logic. When a user imports a crafted certificate containing a subkey with a missing/invalid backsig (binding signature proving subkey-primary key association) or malformed usage flags, GnuPG fails to isolate the invalid key material, corrupting internal key selection state. This prevents verification of legitimate signing keys which is a denial of service extending beyond the malicious certificate. Exploitation requires user action to import an untrusted certificate.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
There is no available mitigation for this vulnerability. However as a general security procedure,users should exercise caution and avoid importing GnuPG certificates from untrusted or unverified sources. Only import certificates that are known to be legitimate and from trusted entities. Update to GnuPG version 2.5.5 or later to resolve this issue.
CVSS / CWE
CVSS 3.1 · 2.7CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:N/A:L
CWE-754 · Improper Check for Unusual or Exceptional Conditions