CVE-2026-57062: 
GNU Privacy Guard vulnerability analysis and mitigation

Overview

CVE-2026-57062 is a cryptographic message parsing vulnerability in gpgsm, the S/MIME component of GnuPG, affecting all versions through 2.5.20. The flaw involves improper handling of the CMS (Cryptographic Message Syntax) format for AES-GCM: the aes-ICVlen (Integrity Check Value length) field is required to be 12 bytes per specification, but GnuPG incorrectly accepts a value of 4 bytes. It is related to CVE-2026-34182 and was publicly disclosed on June 23, 2026. The vulnerability carries a CVSS v3.1 base score of 2.9 (Low) (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is classified as CWE-1284 (Improper Validation of Specified Quantity in Input): gpgsm fails to enforce that the aes-ICVlen parameter in a CMS-formatted AES-GCM message equals the required 12 bytes, instead accepting as few as 4 bytes. AES-GCM's authentication tag (ICV) is standardized at 96 bits (12 bytes); accepting a shorter tag significantly weakens the integrity guarantee of the authenticated encryption scheme, potentially allowing a crafted ciphertext with a truncated tag to pass verification. Exploitation requires local access and involves crafting a malicious CMS message with a non-compliant aes-ICVlen value that gpgsm will accept and process. A technical write-up describing the CMS ciphertext format is referenced in the advisory (GitHub Advisory, EUVD).

Impact

Successful exploitation allows a local attacker to craft CMS messages with a weakened AES-GCM authentication tag that gpgsm accepts as valid, enabling message tampering or forgery without detection by the cryptographic verification layer. The impact is limited to integrity — there is no confidentiality or availability impact — and the attack requires local access with high complexity, constraining the practical blast radius. Affected use cases include S/MIME email verification and any workflow relying on gpgsm to validate CMS-signed or CMS-encrypted content (GitHub Advisory, Red Hat Bugzilla).

Exploitability

There is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.11% (2nd percentile), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and NVD's SSVC assessment classifies exploitation as "none" and automation as "no" (GitHub Advisory, Feedly).

Mitigation and workarounds

Users should update GnuPG to a version beyond 2.5.20 that properly validates the aes-ICVlen field in CMS AES-GCM messages; the patch is referenced in the GitHub Advisory (GHSA-m6x2-4hhh-669j). The official GnuPG download page provides the latest releases. As an interim measure, organizations should validate the integrity of CMS-signed messages through additional out-of-band verification mechanisms and restrict local access to systems running vulnerable GnuPG versions. Amazon Linux 2023 users can apply the fix via ALAS2023-2026-1912 (GitHub Advisory, GnuPG Downloads).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

gnupg2

Affected

sid

gnupg2: 2.4.9-5

Fixed

trixie

gnupg2

Affected

RHEL / CentOS

Affected

RHEL 8

gnupg2.src

Affected

RHEL 9

gnupg2.src

Affected

RHEL 10

gnupg2.src

Affected

Source: This report was generated using AI

Related GNU Privacy Guard vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-118131CRITICAL9.8
  • GNU Privacy Guard logoGNU Privacy Guard
  • gnupg
NoYesOct 27, 2026
CVE-2026-24882HIGH7.8
  • NixOS logoNixOS
  • gpg2
NoYesJan 27, 2026
CVE-2026-24883MEDIUM5.5
  • NixOS logoNixOS
  • cpe:2.3:a:gpg4win:gpg4win
NoYesJan 27, 2026
CVE-2026-105712LOW3.6
  • GNU Privacy Guard logoGNU Privacy Guard
  • gnupg
NoYesOct 05, 2026
CVE-2026-57062LOW2.9
  • GNU Privacy Guard logoGNU Privacy Guard
  • cpe:2.3:a:gnupg:gnupg
NoYesJun 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management