GnupgApplication

CVE-2013-4351

MEDIUM · 5.8 CVSS v2.0 Published 2013-10-10
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
67/100
Remediation priority · Elevated
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
GnuPG 1.4.x, 2.0.x, and 2.1.x treats a key flags subpacket with all bits cleared (no usage permitted) as if it has all bits set (all usage permitted), which might allow remote attackers to bypass intended cryptographic protection mechanisms by leveraging the subkey.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

GnuPG versions 1.4.x, 2.0.x, and 2.1.x incorrectly interpret key flags subpackets. When a subpacket has all bits cleared (indicating no usage permitted), the software treats it as having all bits set (all usage permitted), allowing attackers to use cryptographic subkeys in ways that were explicitly prohibited by the key holder.

MitigationUpdate GnuPG to a patched version that properly validates key flags subpackets. Verify that subkey configurations align with intended usage restrictions after updating.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
GnupgApplication
Affected:= 1.4.0= 1.4.2= 1.4.3= 1.4.4= 1.4.5= 1.4.6= 1.4.8= 1.4.10= 1.4.11= 1.4.12= 1.4.13= 2.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
M
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
None

AV:N/AC:M/Au:N/C:P/I:P/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check GnuPG version
    Run 'gpg --version' or query your package manager for the installed gnupg package version
    Affected if The installed version is 1.4.x (1.4.0 through 1.4.13), 2.0.x, or 2.1.x
  2. Verify key flags on subkeys
    Use 'gpg --list-packets <keyfile>' to inspect the key flags subpacket in any subkey. Look for the 'key flags' subpacket and note its hexadecimal value
    Affected if A subkey shows key flags subpacket with all bits cleared (typically 00 or 00 00) - the vulnerable software will treat this as all bits set
  3. Test key import behavior
    Import or verify a key that contains subkeys with restrictive key flags (subpackets with no bits set indicating no usage permitted) and attempt to use the subkey for an operation that should be prohibited
    Affected if The software allows a prohibited subkey operation that should have been blocked based on the key flags (e.g., signing with a subkey marked as non-signing)

You are affected if you run GnuPG versions 1.4.x through 1.4.13, 2.0.x, or 2.1.x and you process OpenPGP keys that contain subkeys with key flags subpackets set to indicate no usage permitted.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Update GnuPG to a patched version that properly validates key flags subpackets. Verify that subkey configurations align with intended usage restrictions after updating.

Fix this in Gnupg Scoped from the published advisory
  • Consultation1.0 h
  • Implementation1.0 h
  • Testing2.0 h
  • Review / QA1.0 h
5.0 hours of engineering $860
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,376.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2013-4351 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2013-4351 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data