Vulnerability in zlib package (CVE-2016-9841)

zlib Updated 02 Oct 2025

Summary

23/05/2017
N/A
Yes i
Critical
9.8

CVE-2016-9841: inffast.c in zlib 1.2.8 might allow context-dependent attackers to have unspecified impact by leveraging improper pointer arithmetic. Affects zlib across 4 version ranges.

< 1.2.11-r0 < 2bb798cee47b5f92038137e3d7fa7f59f7a11ef6 < 9aaec95e82117c1cb0f9624264c3618fc380cecb >= cf41627411886000429bde058a6594fb7f6d6d47, < ab4af087e83d91a46354d765306d3543b1d85423

Fixed in 1.2.11-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The zlib package is a widely used open-source library that provides data compression and decompression functions. It is commonly used in various software applications and programming languages. The vulnerability identified as CVE-2016-9841 affects versions 1.2.8 and earlier of zlib. This vulnerability arises from improper pointer arithmetic in the inffast.c file, which may be exploited by context-dependent attackers to cause unspecified impact.

Vulnerability Detail

The vulnerability in zlib (CVE-2016-9841) is caused by improper pointer arithmetic in the inffast.c file. This vulnerability can be leveraged by attackers to achieve context-dependent impacts, although the exact nature of these impacts is unspecified. The vulnerability has a CVSS score of 9.8, indicating a critical severity level. It is important to note that the vulnerability affects versions 1.2.8 and earlier of zlib.

How To Fix

Minimum fixed version

1.2.11-r0

This is the first release that contains the fix.

sudo apk add --upgrade zlib

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

No specific workaround has been mentioned for this vulnerability.

Conclusion

The vulnerability in zlib (CVE-2016-9841) is a critical issue that affects versions 1.2.8 and earlier. It is recommended to update the zlib package to version 1.2.11-r0 or later to mitigate the vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for zlib →

Share this vulnerability

FAQ

The exact impact of this vulnerability is unspecified, but it has the potential to be exploited by attackers to cause harm or compromise the affected systems.

Versions 1.2.8 and earlier of zlib are affected by this vulnerability.

Yes, the vulnerability can be fixed by updating the zlib package to version 1.2.11-r0 or later.

The updated zlib package can be obtained from the official package repositories or by following the instructions provided by the package maintainers.

No specific workaround has been mentioned for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for zlib.

How To Fix

Minimum fixed version

1.2.11-r0

This is the first release that contains the fix.

sudo apk add --upgrade zlib

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback