Crypt::OpenPGP versions before 1.22 for Perl report a valid signature for data the signer did not sign when the input to verify carries a signed message of its own.

verify, and handle which calls it, hash the data carried next to the signature whenever the input has any. Data or Files given with a signature that is not detached are ignored in favour of the data inside the signed message. When the signature block of a clear-signed message holds a whole signed message or a compressed packet, the packets in the block are verified and the displayed text is ignored. Message parsing looks for armour anywhere in the input, including in decompressed data, so armoured text inside a binary packet is parsed and verified in place of the packets around it.

An attacker who supplies the signature input and holds any signed message from a key the verifier trusts can have an arbitrary file or arbitrary displayed text reported as signed by that key.

Project Subscriptions

No data.

Advisories

No advisories yet.

Fixes

Solution

Upgrade to Crypt-OpenPGP 1.22 or later.


Workaround

For deployments that cannot upgrade to 1.22, pass Data or Files only with a signature known to be detached, and do not rely on verify for clear-signed input from an untrusted source.

History

Sat, 05 Dec 2026 23:45:00 +0000

Type Values Removed Values Added
Description Crypt::OpenPGP versions before 1.22 for Perl report a valid signature for data the signer did not sign when the input to verify carries a signed message of its own. verify, and handle which calls it, hash the data carried next to the signature whenever the input has any. Data or Files given with a signature that is not detached are ignored in favour of the data inside the signed message. When the signature block of a clear-signed message holds a whole signed message or a compressed packet, the packets in the block are verified and the displayed text is ignored. Message parsing looks for armour anywhere in the input, including in decompressed data, so armoured text inside a binary packet is parsed and verified in place of the packets around it. An attacker who supplies the signature input and holds any signed message from a key the verifier trusts can have an arbitrary file or arbitrary displayed text reported as signed by that key.
Title Crypt::OpenPGP versions before 1.22 for Perl report a valid signature for data the signer did not sign when the input to verify carries a signed message of its own
Weaknesses CWE-347
References

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-12-05T23:28:50.488Z

Reserved: 2026-11-22T14:22:43.941Z

Link: CVE-2026-134760

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses