CVE-2026-134869: Crypt::OpenPGP versions before 1.22 for Perl exit pgplet --decrypt with status 0 and no warning when the signature on a signed and encrypted message cannot be verified
Crypt::OpenPGP versions before 1.22 for Perl exit pgplet --decrypt with status 0 and no warning when the signature on a signed and encrypted message cannot be verified.
pgplet --decrypt prints the text decrypt returns, which it does whether or not the signature on it is good. The warning for a signature that could not be verified compares errstr, which ends in a newline, against a bare string, so it never fires. A signature that verifies as bad is reported, but with exit status 0, the same as a good one. pgplet run on the file with no command refuses a message whose signature cannot be verified.
An attacker with the recipient's public key and any signed message from the claimed sender can alter the signed text and encrypt it to the recipient, and pgplet --decrypt prints it with nothing to tell it from text that was never signed.
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 - Compensating control
Use pgplet on the file with no command instead of pgplet --decrypt; it refuses messages whose signatures cannot be verified.
Event History
Frequently Asked Questions
Which usage is affected?
The issue affects pgplet when invoked with the --decrypt option on signed and encrypted messages. Running pgplet on the file without a command refuses messages whose signatures cannot be verified.
What does an attacker need to exploit this?
An attacker needs the recipient's public key and any signed message from the sender being claimed. They can alter the signed text, encrypt it to the recipient, and cause pgplet --decrypt to print it without distinguishing it from unsigned text.
How does pgplet --decrypt report invalid or unverifiable signatures?
A signature that cannot be verified produces no warning and exits with status 0. A signature that verifies as bad is reported, but it also exits with status 0, the same status used for a valid signature.
What can be done if upgrading is not immediately possible?
Avoid relying on pgplet --decrypt to authenticate signed and encrypted messages. Use pgplet without a command, which refuses messages whose signatures cannot be verified.