---
id: CVE-2026-24882
title: >-
  In GnuPG before 2.5.17, a stack-based buffer overflow exists in tpm2daemon
  during handling of the PKDECRYPT command for TPM-backed RSA and ECC keys.
summary: >-
  In GnuPG before 2.5.17, a stack-based buffer overflow exists in tpm2daemon
  during handling of the PKDECRYPT command for TPM-backed RSA and ECC keys.
severity: high
cvss: 8.4
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-121
  - CWE-121
vendor: gnupg
product: gnupg
affected:
  - 'gnupg >= 2.5.13, < 2.5.17'
  - 'gpg4win >= 5.0.0, < 5.0.1'
patched:
  - gnupg 2.5.17
  - gpg4win 5.0.1
published: '2026-01-27'
updated: '2026-06-30'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-24882'
references:
  - url: 'https://dev.gnupg.org/T8045'
    label: cve@mitre.org
  - url: 'https://www.openwall.com/lists/oss-security/2026/01/27/8'
    label: cve@mitre.org
  - url: 'https://access.redhat.com/errata/RHSA-2026:2719'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:2753'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/security/cve/CVE-2026-24882'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2433464'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24882.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
tags:
  - nvd
epss: 0.00444
epssPercentile: 0.35901
ingestedAt: '2026-06-30T17:40:12.474Z'
---

## Overview

In GnuPG before 2.5.17, a stack-based buffer overflow exists in tpm2daemon during handling of the PKDECRYPT command for TPM-backed RSA and ECC keys.

## Affected

- `gnupg >= 2.5.13, < 2.5.17`
- `gpg4win >= 5.0.0, < 5.0.1`

## Remediation

Upgrade past the affected range:

- `gnupg 2.5.17`
- `gpg4win 5.0.1`
