# CVE-2026-4176: Perl versions from 5.9.4 before 5.40.4-RC1, from 5.41.0 before 5.42.2-RC1, from 5.43.0 before 5.43.9 contain a vulnerable version of Compress::Raw::Zlib

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.94% (percentile 59, 2026-11-26)
- **CWE:** CWE-1395
- **Published:** 2026-03-29T20:50:51.058Z
- **Modified:** 2026-06-17T10:56:07.190Z

## Who should check

- Anyone running SHAY perl \>= 5.9.4, \< 5.40.4-RC1; \>= 5.41.0, \< 5.42.2-RC1; \>= 5.43.0, \< 5.43.9

## Description

Perl versions from 5.9.4 before 5.40.4-RC1, from 5.41.0 before 5.42.2-RC1, from 5.43.0 before 5.43.9 contain a vulnerable version of Compress::Raw::Zlib.

Compress::Raw::Zlib is included in the Perl package as a dual-life core module, and is vulnerable to CVE-2026-3381 due to a vendored version of zlib which has several vulnerabilities, including CVE-2026-27171. The bundled Compress::Raw::Zlib was updated to version 2.221 in Perl blead commit c75ae9cc164205e1b6d6dbd57bd2c65c8593fe94.

## Affected and fixed versions

- SHAY perl: \>= 5.9.4, \< 5.40.4-RC1; \>= 5.41.0, \< 5.42.2-RC1; \>= 5.43.0, \< 5.43.9 (cvelist)

## Mitigation

- Upgrade perl to 5.43.9 or later.
- Vendor workaround: Install Compress::Raw::Zlib 2.220 or later into your @INC include path, so it takes precedence over the vulnerable core module shipped with Perl.
- 
- Some OS distributions patch their perl package to build Compress::Raw::Zlib against the system zlib rather than the vendored copy. Users of these distributions may not be affected if their system zlib has been updated to 1.3.2 or later, or includes backported patches for the relevant vulnerabilities.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-4176. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-4176.md
Affected: SHAY perl >= 5.9.4, < 5.40.4-RC1; >= 5.41.0, < 5.42.2-RC1; >= 5.43.0, < 5.43.9
Fixed in: SHAY perl 5.40.4-RC1, SHAY perl 5.42.2-RC1, SHAY perl 5.43.9

Steps:
1. Search this machine and project for SHAY perl: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-4176 being exploited?

There is no confirmed exploitation: CVE-2026-4176 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.94% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-4176?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-4176?

SHAY perl \>= 5.9.4, \< 5.40.4-RC1; \>= 5.41.0, \< 5.42.2-RC1; \>= 5.43.0, \< 5.43.9.

### Is there a fix for CVE-2026-4176?

Yes. Fixed in SHAY perl 5.40.4-RC1, SHAY perl 5.42.2-RC1, SHAY perl 5.43.9. Upgrade perl to 5.43.9 or later. Vendor workaround: Install Compress::Raw::Zlib 2.220 or later into your @INC include path, so it takes precedence over the vulnerable core module shipped with Perl.  Some OS distributions patch their perl package to build Compress::Raw::Zlib against the system zlib rather than the vendored copy. Users of these distributions may not be affected if their system zlib has been updated to 1.3.2 or later, or includes backported patches for the relevant vulnerabilities.

### How do I check if I'm affected by CVE-2026-4176?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://www.cve.org/CVERecord?id=CVE-2026-3381>
- vendor: <https://lists.security.metacpan.org/cve-announce/msg/37638919/>
- patch: <https://github.com/Perl/perl5/commit/c75ae9cc164205e1b6d6dbd57bd2c65c8593fe94>
- other: <https://metacpan.org/release/PMQS/Compress-Raw-Zlib-2.221/source/Changes>
- other: <https://metacpan.org/release/SHAY/perl-5.40.4/changes>
- other: <https://metacpan.org/release/SHAY/perl-5.42.2/changes>
- other: <http://www.openwall.com/lists/oss-security/2026/03/30/2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-4176>

HTML: <https://flawdb.com/CVE-2026-4176> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-4176>
