CVE-2026-134760: 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
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.22
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Applications using Crypt::OpenPGP before 1.22 are exposed when they verify signature input supplied by an attacker or otherwise untrusted source. The attacker must possess any signed message made by a key that the application trusts.
What does an attacker need to provide to obtain a false valid-signature result?
The attacker needs to supply the signature input and include a signed message from a trusted key. They can then cause arbitrary file content or displayed text to be reported as signed by that key.
Are detached signatures affected in the same way?
The described behavior applies when a signature is not detached: data or files provided alongside such a signature are ignored in favor of data within the signed message. The provided information does not identify detached signatures as affected by this specific behavior.
How can I determine whether my deployment is affected?
Check whether the application uses Crypt::OpenPGP before version 1.22 and calls verify or handle on untrusted signature input. It is particularly affected if it displays or acts on externally supplied text or files based on a successful verification result.