CVE-2014-4617
NoneCVSS
—
EPSS
3.3%
Published
Jun 25, 2014
CISA due date
—
Cloudanix analysis
An old flaw in widely used encryption software lets attackers freeze the program by sending specially crafted data, stopping normal encryption or signature checks until the program is restarted.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Malformed compressed packets trigger an infinite loop inside the do_uncompress routine in GnuPG's decompression code, consuming CPU until the process is terminated.
Why it matters to the business
Cryptographic operations such as decrypting email or verifying signatures can hang indefinitely, disrupting workflows that rely on GnuPG and forcing manual restarts or process kills.
How an attack unfolds
An attacker constructs a compressed data packet containing an invalid sequence that the decompression parser cannot handle, supplies the packet through any channel that GnuPG processes (email attachment, file, or piped input), and causes the target GnuPG instance to enter an unrecoverable loop.
How to fix it
Upgrade GnuPG 1.x installations to version 1.4.17 or newer and GnuPG 2.x installations to version 2.0.24 or newer; rebuild any dependent packages that statically link against the vulnerable library.
How to confirm the fix worked
Confirm installed version is at or above the fixed releases; replay the known malformed packet sequence in a controlled test environment and verify the process terminates cleanly instead of looping.
Typical attack path
- Generate a compressed packet containing the malformed byte sequence
- Deliver the packet to a system running an affected GnuPG version
- Invoke GnuPG to process the packet during decryption, verification, or import
- Observe the process enter an infinite loop and cease responding
How to detect it
Search process accounting or system logs for gnupg or gpg processes that exhibit sustained high CPU usage without completing; examine any available GnuPG debug or error logs for repeated decompression attempts.
What your security team should do
- Prioritize patching all GnuPG instances to the fixed releases listed in remediation guidance
- Inventory systems and containers that include gnupg or gnupg2 packages
- Add version checks for gnupg to regular vulnerability scanning policies
The record
The do_uncompress function in g10/compress.c in GnuPG 1.x before 1.4.17 and 2.x before 2.0.24 allows context-dependent attackers to cause a denial of service (infinite loop) via malformed compressed packets, as demonstrated by an a3 01 5b ff byte sequence.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | gnupg2 | 0 | 2.0.24-1 |
| Debian:12 | gnupg2 | 0 | 2.0.24-1 |
| Debian:13 | gnupg2 | 0 | 2.0.24-1 |
| Debian:6.0 | gnupg | 0 | 1.4.10-4+squeeze5 |
| Debian:6.0 | gnupg2 | 0 | 2.0.14-2+squeeze2 |
| Debian:7 | gnupg | 0 | 1.4.12-7+deb7u4 |
| Debian:7 | gnupg2 | 0 | 2.0.19-2+deb7u2 |
| Mageia:3 | gnupg | 0 | 1.4.14-1.3.mga3 |
| Mageia:3 | gnupg2 | 0 | 2.0.19-3.3.mga3 |
| Mageia:4 | gnupg | 0 | 1.4.16-1.1.mga4 |
| Mageia:4 | gnupg2 | 0 | 2.0.22-3.1.mga4 |
| Ubuntu:14.04:LTS | gnupg | 0 | 1.4.16-1ubuntu2.1 |
| Ubuntu:14.04:LTS | gnupg2 | 0 | 2.0.22-3ubuntu1.1 |
| openSUSE:Tumbleweed | gpg2 | 0 | 2.1.16-1.1 |
Related vulnerabilities
- CVE-2018-1000858 GnuPG version 2.1.12 - 2.2.11 contains a Cross ite Request Forgery (CSRF) vulnerability… Also affects gnupg2
- CVE-2014-3591 Libgcrypt before 1.6.3 and GnuPG before 1.4.19 does not implement ciphertext blinding for… Also affects gnupg
- CVE-2014-5270 Libgcrypt before 1.5.4, as used in GnuPG and other products, does not properly perform… Also affects gnupg
- CVE-2016-6313 The mixing functions in the random number generator in Libgcrypt before 1.5.6, 1.6.x… Also affects gnupg
- CVE-2026-24883 In GnuPG before 2.5.17, a long signature packet length causes parse_signature to return… Also affects gpg2
- CVE-2026-24882 In GnuPG before 2.5.17, a stack-based buffer overflow exists in tpm2daemon during… Also affects gpg2
- CVE-2026-24881 In GnuPG before 2.5.17, a crafted CMS (S/MIME) EnvelopedData message carrying an… Also affects gpg2
- CVE-2025-68973 In GnuPG before 2.4.9, armor_filter in g10/armor.c has two increments of an index… Also affects gpg2