search menu icon-carat-right cmu-wordmark

CERT Coordination Center

zlib inflate() routine vulnerable to buffer overflow

Vulnerability Note VU#680620

Original Release Date: 2005-07-07 | Last Revised: 2007-04-05

Overview

A buffer overflow in the zlib compression library may cause any application linked to zlib to improperly and immediately terminate.

Description

There is a buffer overflow in the zlib data-compression library caused by a lack of bounds checking in the inflate() routine. If an attacker supplies the inflate()routine with a specially crafted compressed data stream, that attacker may be able to trigger the buffer overflow causing any application linked to zlib, or incorporating zlib code to crash. According to reports, the buffer overflow is caused by a specific input stream and results in a constant value being written into an arbitrary memory location. This vulnerability may be exploited locally or remotely depending on the application being attacked.

This vulnerability only affects zlib versions 1.2.1 and 1.2.2.

Impact

A remote attacker be able to exploit this vulnerability by supplying the inflate() routine with specially crafted compressed data. As a result, applications linked to the zlib library may abruptly and abnormally terminate resulting in a denial-of-service condition. According to public reports, this vulnerability can be exploited to execute arbitrary code, but we have not confirmed this.

Solution

Apply patches from your vendor


The zlib compression library is freely available and used by many vendors in a wide variety of applications. As a result, any one of these applications may contain this vulnerabilitiy. Users are encouraged to contact their vendors to determine if they are vulnerable and what action to take.

Vendor Information

680620
 

View all 82 vendors View less vendors


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

This vulnerability was reported by Mark Adler.

This document was written by Jeff Gennari.

Other Information

CVE IDs: CVE-2005-2096
Severity Metric: 9.45
Date Public: 2005-07-02
Date First Published: 2005-07-07
Date Last Updated: 2007-04-05 12:45 UTC
Document Revision: 83

Sponsored by CISA.