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
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Crypt-OpenPGPto a version that resolves this vulnerability.Fixed in 1.22
Event History
Frequently Asked Questions
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.
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.
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.
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.