CVE-2026-134729
Received Received - Intake

Signature Bypass via Trailing Whitespace in Crypt::OpenPGP

Vulnerability report for CVE-2026-134729, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-06

Last updated on: 2026-12-06

Assigner: CPANSec

Description

Crypt::OpenPGP versions before 1.22 for Perl accept a signature over text to which trailing whitespace has been added, as verify tries the hash with and without it. For a text signature, verify hashes the data twice, with and without whitespace at the end of each line removed, and accepts the signature if either hash matches. Whether the data is hashed as text follows the mode of the literal data packet, which the signature does not cover, rather than the signature type. A binary signature over data that text canonicalisation leaves unchanged therefore accepts the same addition once the packet is marked as text. An attacker who can alter a signed message can add whitespace at the end of any line, and verify still reports the signature valid.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-06
Last Modified
2026-12-06
Generated
2026-12-06
AI Q&A
2026-12-06
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
perl crypt_openpgp to 1.22 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-347 The product does not verify, or incorrectly verifies, the cryptographic signature for data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects Crypt::OpenPGP versions before 1.22 for Perl. It allows attackers to add trailing whitespace at the end of lines in signed messages without invalidating the signature. The verify() function previously hashed data twiceβ€”once with and once without trailing whitespaceβ€”and accepted the signature if either hash matched. This inconsistency allowed unauthorized modifications to signed text.

Detection Guidance

To detect this vulnerability, inspect Perl applications using Crypt::OpenPGP versions before 1.22. Check for signed messages with trailing whitespace added to lines. Use tools like grep to search for Crypt::OpenPGP usage in codebases and verify versions with cpan or local package managers.

Impact Analysis

If you use Crypt::OpenPGP versions before 1.22, an attacker could alter signed messages by adding whitespace, making the messages appear legitimate while containing unauthorized changes. This could lead to misinformation, data tampering, or fraudulent transactions if the signed content is trusted without verification.

Compliance Impact

This vulnerability could undermine compliance with GDPR and HIPAA by allowing unauthorized modifications to signed data, such as medical records or personal information. If signatures are not properly validated, organizations may fail to ensure data integrity, leading to legal and regulatory penalties.

Mitigation Strategies

Upgrade Crypt::OpenPGP to version 1.22 or later. Review signed messages for unexpected trailing whitespace. Ensure signatures are validated with strict canonicalization. Monitor for unusual message modifications in applications using this module.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134729. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...