CVE-2026-134727: Crypt::OpenPGP versions before 1.22 for Perl decrypt messages that carry no modification detection code, so changes an attacker makes to the ciphertext alter the plaintext undetected

Published Dec 5, 2026
·
Updated

Crypt::OpenPGP versions before 1.22 for Perl decrypt messages that carry no modification detection code, so changes an attacker makes to the ciphertext alter the plaintext undetected.

Whether the plaintext is checked against a modification detection code is decided by the type of the encrypted data packet in the message. A Symmetrically Encrypted Data packet carries none, and decrypt, and handle which calls it, accept one with no option to require the code. encrypt produces this packet type unless MDC is set.

An attacker who can alter a message before it is decrypted can flip chosen bits of the plaintext, as the data is encrypted in CFB mode, and the caller gets the changed plaintext with no error.

Affected Software

1 affected component
cpan/crypt-openpgp<1.22

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Crypt-OpenPGP to a version that resolves this vulnerability.

    Fixed in 1.22

Event History

Dec 5, 2026
CVE Published
via MITRE·10:52 PM
Data Sourced
via MITRE·10:52 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·11:18 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using Crypt::OpenPGP before version 1.22 are exposed when they decrypt OpenPGP messages containing a Symmetrically Encrypted Data packet without a modification detection code. This can include messages produced by the library itself when encryption is used without MDC enabled.

2

What does an attacker need to exploit it?

An attacker must be able to modify the encrypted message before the application decrypts it. Because the encryption uses CFB mode, the attacker can flip selected bits and cause corresponding plaintext changes without causing a decryption error.

3

Are default encryption settings affected?

Yes. The library's encrypt function produces the packet type without a modification detection code unless MDC is explicitly set. The decrypt and handle interfaces accept such messages without an option requiring the code.

4

What should be done if updating is not immediately possible?

Ensure encryption uses MDC and avoid decrypting messages that lack a modification detection code. Treat plaintext obtained from such messages as potentially modified if an attacker could have altered the ciphertext in transit.

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