CVE-2026-107442

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

No CVSS score yet

Published 5 Dec 2026 Updated 5 Dec 2026 CNA: CPANSec

Check your servers for CVE-2026-107442

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-107442 affects crypt-openpgp, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Weakness

  • CWE-409 Improper Handling of Highly Compressed Data (Data Amplification)

Affected products

As the CNA lists them.

ProductVersions
Crypt-OpenPGP
package Crypt-OpenPGP
affected before 1.22
Other versions: unaffected

Is my server affected?

Find the installed version of crypt-openpgp and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i crypt-openpgp
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-107442 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-107442

RHEL, Rocky, Alma, Fedora

rpm -q crypt-openpgp
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-107442

Alpine

apk list --installed | grep -i crypt-openpgp

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-107442
trivy image --scanners vuln IMAGE | grep CVE-2026-107442

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Patches and release notes

Other references

Source: the record CVE-2026-107442 of the CVE List (CVE Program), CVE Terms of Use; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.