CVE-2026-107442: Crypt::OpenPGP versions before 1.22 for Perl allow memory exhaustion via unbounded inflation of compressed data packets in decompress

Published Dec 5, 2026
·
Updated

Crypt::OpenPGP versions before 1.22 for Perl allow memory exhaustion via unbounded inflation of compressed data packets in decompress.

A compressed data packet is inflated in a single Compress::Zlib call with no limit on the output size, and the whole output is held in memory before any packet in it is parsed. Both handle and verify inflate a leading compressed packet before any signature is checked. After decryption, decrypt inflates one too, and with public-key encryption anyone holding the recipient's public key can produce a message that decrypts.

A remote attacker who supplies a message to handle, verify or decrypt can exhaust the process's memory with a small packet.

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:40 PM
Data Sourced
via MITRE·10:40 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·11:18 PM
DescriptionWeakness

Frequently Asked Questions

1

Which application paths are exposed to attacker-controlled compressed messages?

Any application that passes remotely supplied OpenPGP messages to Crypt::OpenPGP handle, verify, or decrypt is exposed. Handle and verify inflate a leading compressed packet before signature validation, while decrypt inflates compressed data after decryption.

2

Does an attacker need a valid signature or private key to trigger the memory exhaustion?

No valid signature is required for handle or verify because decompression occurs before signature checking. For public-key encrypted messages, anyone with the recipient's public key can create a message that reaches decompression during decrypt.

3

What is the practical impact of exploitation?

A small compressed packet can expand without an output-size limit, with the full inflated result retained in memory before parsing. This can exhaust the affected process's memory and cause denial of service.

4

What version resolves the issue?

Crypt::OpenPGP 1.22 addresses this issue. Versions before 1.22 are affected.

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