CVE-2025-68972: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2025-68972 is a signature verification bypass vulnerability in GnuPG through version 2.4.8, involving improper handling of the formfeed character (\f). When a signed message contains \f at the end of a plaintext line, an adversary can construct a modified message that appends additional text after the signed material, causing signature verification to succeed despite an "invalid armor" warning being printed. The vulnerability was published on December 27, 2025, and affects all GnuPG versions up to and including 2.4.8. It carries a CVSS v3.1 base score of 4.7 (Medium) per NVD, though ENISA scores it at 5.9 (Medium) (Red Hat Advisory, ENISA EUVD).

Technical details

The root cause is classified as CWE-347 (Improper Verification of Cryptographic Signature). GnuPG uses the formfeed character (\f) as a marker to denote truncation of long plaintext lines in cleartext-signed messages. An attacker who receives or intercepts a signed message containing \f at the end of a line can craft a modified version that places arbitrary additional text after the signed content boundary. Because GnuPG's armor parsing logic does not correctly reject this manipulation, the signature verification routine reports success — though it does emit an "invalid armor" warning — allowing the injected content to appear as part of a verified message (ENISA EUVD, gpg.fail writeup). The attack is mapped to CAPEC-475 (Signature Spoofing by Improper Validation) and requires local access with low privileges and high attack complexity.

Impact

Successful exploitation allows an attacker to forge or tamper with GnuPG-signed messages in a way that passes signature verification, directly undermining the integrity guarantees of cryptographic signing. This could enable unauthorized message modifications, insertion of malicious content into seemingly legitimate signed communications, and bypassing of signature-based authentication workflows. Confidentiality and availability are not directly impacted; the primary risk is integrity compromise of signed data (Red Hat Advisory, ENISA EUVD).

Exploitability

As of the time of reporting, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (ENISA EUVD). The EPSS score is extremely low at approximately 0.009%, reflecting a low near-term exploitation probability. The vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. The attack requires high complexity and local access, further limiting practical exploitability.

Exploitation steps

  1. Identify a target signed message: Obtain a GnuPG cleartext-signed message where one or more plaintext lines end with a formfeed character (\f), which GnuPG uses to indicate line truncation.
  2. Craft a modified message: Append additional arbitrary text (e.g., malicious instructions or forged content) after the signed material boundary in the message, exploiting the \f marker to confuse GnuPG's armor parsing logic.
  3. Deliver the modified message: Send or present the crafted message to a recipient who will verify it using a vulnerable GnuPG version (≤ 2.4.8).
  4. Signature verification succeeds: The recipient runs gpg --verify or equivalent; GnuPG reports a valid signature despite the injected content, though an "invalid armor" warning is printed — which may be overlooked in automated pipelines or by inattentive users.
  5. Achieve objective: The recipient trusts the modified message as cryptographically verified, potentially acting on the injected malicious or forged content (gpg.fail writeup, ENISA EUVD).

Indicators of compromise

  • Logs: GnuPG verification output containing both a valid signature confirmation and an "invalid armor" warning simultaneously — this combination is anomalous and should be treated as suspicious.
  • File System: Cleartext-signed messages or files containing formfeed characters (\f, hex 0x0C) at the end of plaintext lines, particularly in automated signing/verification pipelines.
  • Process: Automated scripts or CI/CD pipelines that parse only the signature validity result from gpg --verify without also checking for "invalid armor" stderr warnings, which could silently accept tampered messages.

Mitigation and workarounds

Users should upgrade GnuPG to a version beyond 2.4.8 that addresses this vulnerability; patches have been released and are available for major Linux distributions including Fedora, Slackware, and others (Red Hat Advisory, Linux Security Slackware). As a workaround, GnuPG's own project recommends preferring detached signatures over cleartext signatures, as the vulnerability only affects cleartext-signed messages (WebProNews). Additionally, any automated verification pipeline should be updated to treat the presence of an "invalid armor" warning as a verification failure, regardless of the reported signature status. Microsoft has also issued guidance for affected Azure Linux 3 packages (Microsoft MSRC).

Community reactions

The vulnerability was discussed on Hacker News shortly after disclosure, drawing community attention to the risks of cleartext signature handling in GnuPG (Hacker News). The GnuPG project used the occasion to publicly recommend that users migrate from cleartext signatures to detached signatures as a more robust alternative, which was covered by WebProNews (WebProNews). Red Hat, Microsoft, SUSE, and Slackware all issued advisories or package updates, indicating broad vendor acknowledgment of the issue. The oss-security mailing list also carried a disclosure thread (oss-sec).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

gnupg2

Affected

sid

gnupg2

Affected

trixie

gnupg2

Affected

RHEL / CentOS

Affected

RHEL 8

gnupg2.src

Affected

RHEL 9

gnupg2.src

Affected

RHEL 10

gnupg2.src

Affected

Alpine

Fixed

edge

gnupg: 2.4.9-r0

Fixed

v3.20

gnupg: 2.4.9-r0

Fixed

v3.21

gnupg: 2.4.9-r0

Fixed

v3.22

gnupg: 2.4.9-r0

Fixed

v3.23

gnupg: 2.4.9-r0

Fixed

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-112940HIGH7.1
  • Python logoPython
  • py3-filelock
NoYesOct 20, 2026
CVE-2026-112937MEDIUM6.1
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112936MEDIUM6.1
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112939MEDIUM4.7
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112941LOW3.3
  • Python logoPython
  • filelock
NoYesOct 20, 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