Perl Bundled Compress::Raw::Zlib Flaw Exposes Multiple Release Lines
Vulnerability Disclosure · 3 sources · Updated 5mo ago · First seen Mar 30, 2026

Perl disclosed CVE-2026-4176, a vulnerability affecting releases from 5.9.4 before 5.40.4-RC1, from 5.41.0 before 5.42.2-RC1, and from 5.43.0 before 5.43.9, because they shipped a vulnerable bundled version of the dual-life core module Compress::Raw::Zlib. The issue traces to the module’s vendored zlib copy, which is vulnerable to CVE-2026-3381 and includes additional flaws such as CVE-2026-27171. Some operating system distributions may avoid exposure if they link Perl against a patched system zlib version 1.3.2 or later, or if they have backported fixes.
The Perl project updated the bundled module in blead to version 2.221 and shipped fixes in Perl 5.40.4 and Perl 5.42.2, which include Compress::Raw::Zlib 2.222. Follow-up discussion on the oss-sec mailing list clarified that remediation guidance should explicitly state that affected installations can also be fixed by installing Compress::Raw::Zlib 2.222 from CPAN so it overrides the vulnerable core module in @INC; earlier guidance had noted 2.220 or later as a workaround.
Why it matters
Impact assessment
Perl deployments that rely on bundled Compress::Raw::Zlib across multiple release lines are affected, especially application servers, automation platforms, packaging pipelines, and legacy Unix/Linux environments that embed Perl. The impact is potentially severe because the CVE record assigns network-reachable, no-authentication, no-user-interaction conditions with high confidentiality, integrity, and availability impact.
Exposure is broad across Perl versions rather than limited to a single branch, but actual risk depends on how each installation resolves zlib: systems linked to patched system zlib 1.3.2 or later, or distributions with backported fixes, may not be vulnerable. The story does not report confirmed exploitation in the wild.
Supporting facts
- Affected product: Perl with bundled Compress::Raw::Zlib dual-life core module.
- Affected versions:
- 5.9.4 before 5.40.4-RC1
- 5.41.0 before 5.42.2-RC1
- 5.43.0 before 5.43.9
- Root issue: Perl shipped a vulnerable bundled Compress::Raw::Zlib containing a vendored zlib copy.
- Severity signal: CVE-2026-4176 has CVSS v3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
- Scope qualifier: some OS distributions may avoid exposure if Perl links against patched system zlib 1.3.2+ or carries backported fixes.
- Known incidents: no exploitation activity or victim reports were cited.
- Relevant entities:
- Perl project
- CPAN Security Group
- Compress::Raw::Zlib
- zlib
- Stig Palmquist
- Jacob Bachmeyer
- Bernhard Schmalhofer


