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

Published Dec 5, 2026
·
Updated

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

1 affected component
cpan/crypt-openpgp<1.22

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.22
  2. Compensating control

    Use pgplet on the file with no command instead of pgplet --decrypt; it refuses messages whose signatures cannot be verified.

Event History

Dec 5, 2026
CVE Published
via MITRE·11:50 PM
Data Sourced
via MITRE·11:50 PM
RemedyDescriptionWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203