{"api_version":"1","generated_at":"2026-12-06T01:17:47+00:00","cve":"CVE-2026-134729","urls":{"html":"https://cve.report/CVE-2026-134729","api":"https://cve.report/api/cve/CVE-2026-134729.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-134729","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-134729"},"summary":{"title":"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","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.\n\nFor 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.\n\nAn attacker who can alter a signed message can add whitespace at the end of any line, and verify still reports the signature valid.","state":"PUBLISHED","assigner":"CPANSec","published_at":"2026-12-06 00:17:24","updated_at":"2026-12-06 00:17:24"},"problem_types":["CWE-347","CWE-347 CWE-347 Improper Verification of Cryptographic Signature"],"metrics":[],"references":[{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-OpenPGP-1.21/source/lib/Crypt/OpenPGP.pm","name":"https://metacpan.org/release/TIMLEGGE/Crypt-OpenPGP-1.21/source/lib/Crypt/OpenPGP.pm","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-OpenPGP-1.22/changes","name":"https://metacpan.org/release/TIMLEGGE/Crypt-OpenPGP-1.22/changes","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.rfc-editor.org/rfc/rfc4880#section-5.2.4","name":"https://www.rfc-editor.org/rfc/rfc4880#section-5.2.4","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/perl-Crypt-OpenPGP/Crypt-OpenPGP/commit/d7ba121dc26101b7786e06b33fa9b751658e23b5.patch","name":"https://github.com/perl-Crypt-OpenPGP/Crypt-OpenPGP/commit/d7ba121dc26101b7786e06b33fa9b751658e23b5.patch","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-134729","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-134729","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[{"source":"CNA","title":"","value":"Upgrade to Crypt-OpenPGP 1.22 or later.","time":"","lang":"en"}],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","modules":["Crypt::OpenPGP"],"packageName":"Crypt-OpenPGP","packageURL":"pkg:cpan/Crypt-OpenPGP","programFiles":["lib/Crypt/OpenPGP.pm","lib/Crypt/OpenPGP/Signature.pm"],"programRoutines":[{"name":"Crypt::OpenPGP::verify"},{"name":"Crypt::OpenPGP::Signature::hash_data"}],"repo":"https://github.com/perl-Crypt-OpenPGP/Crypt-OpenPGP","versions":[{"lessThan":"1.22","status":"affected","version":"0","versionType":"custom"}]}],"descriptions":[{"lang":"en","value":"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.\n\nFor 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.\n\nAn attacker who can alter a signed message can add whitespace at the end of any line, and verify still reports the signature valid."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-347","description":"CWE-347 Improper Verification of Cryptographic Signature","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-12-05T23:16:39.521Z","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","shortName":"CPANSec"},"references":[{"tags":["technical-description"],"url":"https://metacpan.org/release/TIMLEGGE/Crypt-OpenPGP-1.21/source/lib/Crypt/OpenPGP.pm"},{"tags":["technical-description"],"url":"https://www.rfc-editor.org/rfc/rfc4880#section-5.2.4"},{"tags":["patch"],"url":"https://github.com/perl-Crypt-OpenPGP/Crypt-OpenPGP/commit/d7ba121dc26101b7786e06b33fa9b751658e23b5.patch"},{"tags":["release-notes"],"url":"https://metacpan.org/release/TIMLEGGE/Crypt-OpenPGP-1.22/changes"}],"solutions":[{"lang":"en","value":"Upgrade to Crypt-OpenPGP 1.22 or later."}],"source":{"discovery":"UNKNOWN"},"title":"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","x_generator":{"engine":"cpansec-cna-tool 0.1"}}},"cveMetadata":{"assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","assignerShortName":"CPANSec","cveId":"CVE-2026-134729","datePublished":"2026-12-05T23:16:39.521Z","dateReserved":"2026-11-22T03:20:38.863Z","dateUpdated":"2026-12-05T23:16:39.521Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-06 00:17:24","lastModifiedDate":"2026-12-06 00:17:24","problem_types":["CWE-347","CWE-347 CWE-347 Improper Verification of Cryptographic Signature"],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"134729","Ordinal":"1","Title":"Crypt::OpenPGP versions before 1.22 for Perl accept a signature ","CVE":"CVE-2026-134729","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"134729","Ordinal":"1","NoteData":"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.\n\nFor 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.\n\nAn attacker who can alter a signed message can add whitespace at the end of any line, and verify still reports the signature valid.","Type":"Description","Title":"Crypt::OpenPGP versions before 1.22 for Perl accept a signature "}]}}}