Cloudanix VulnDB

CVE-2014-4617

None

CVSS

—

EPSS

3.3%

Published

Jun 25, 2014

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

  1. Generate a compressed packet containing the malformed byte sequence
  2. Deliver the packet to a system running an affected GnuPG version
  3. Invoke GnuPG to process the packet during decryption, verification, or import
  4. 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