Stack-based Buffer Overflow Affecting gnupg package, versions [2.5.13,2.5.17)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.68% (76th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-GNUPG-15124047
  • published28 Jan 2026
  • disclosed27 Jan 2026
  • creditUnknown

Introduced: 27 Jan 2026

CVE-2026-24881  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade gnupg to version 2.5.17 or higher.

Overview

Affected versions of this package are vulnerable to Stack-based Buffer Overflow via the PKDECRYPT--kem=CMS process. An attacker can execute arbitrary code or cause a denial of service by sending a specially crafted CMS (S/MIME) EnvelopedData message containing an oversized wrapped session key.

CVSS Base Scores

version 4.0
version 3.1