JLSEC-2026-1997: zlib 1.2.11 through 1.3.2 gzip-writing heap buffer overflow

Published Dec 2, 2026
·
Updated

zlib 1.2.11 through 1.3.2 contains a heap buffer overflow: after an underlying write() fails, gzwrite() returns without resetting strm.nextin, leaving it pointed at the caller's buffer. A later gz write call then derives a position from the stale pointer and writes past a heap allocation; any write() failure reaches it, including EPIPE on a blocking descriptor, and in versions before 1.3.1.2 the failed write must be followed by a gzclearerr() call.

zlib 1.4 includes the fix.

Affected Software

2 affected componentsFixes available
julia/gccbootstrap_jll*
julia/zlib_jll<1.4.0+0
1.4.0+0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade julia/Zlib_jll to a version that resolves this vulnerability.

    Fixed in 1.4.0+0
  2. Upgrade

    Upgrade zlib to a version that resolves this vulnerability.

    Fixed in 1.4
  3. Compensating control

    For zlib versions before 1.3.1.2, call gzclearerr() after a failed write() before making a later gz* write call.

Event History

Dec 2, 2026
Advisory Published
via OSV·07:14 PM
Data Sourced
via OSV·07:14 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which listed software packages should be reviewed for exposure?

Review julia/gccbootstrap_jLL and julia/zlib_jll deployments that include zlib versions 1.2.11 through 1.3.2.

2

What conditions are required to reach the overflow?

An underlying write() must first fail during gz_write(), followed by a later gz* write call. EPIPE on a blocking descriptor is one example of a write failure that can reach the issue.

3

Are additional calls required on older affected releases?

For versions before 1.3.1.2, the failed write must be followed by a gzclearerr() call before the condition can be triggered.

4

What version contains the fix?

The fix is included in zlib 1.4.

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