Description
Off-by-one error in the inflate function in Zlib.xs in Compress::Raw::Zlib Perl module before 2.017, as used in AMaViS, SpamAssassin, and possibly other products, allows context-dependent attackers to cause a denial of service (hang or crash) via a crafted zlib compressed stream that triggers a heap-based buffer overflow, as exploited in the wild by Trojan.Downloader-71014 in June 2009.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libcompress-raw-zlib-perl | 2.015-2 | — |
| Debian 14 | perl | 5.10.0-23 | — |
| Debian 13 | libcompress-raw-zlib-perl | 2.015-2 | — |
| Debian 13 | perl | 5.10.0-23 | — |
| Debian 12 | libcompress-raw-zlib-perl | 2.015-2 | — |
| Debian 12 | perl | 5.10.0-23 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Compress::Raw::Zlib Perl Module - Remote Code Execution EDB-33032 · remote · May 11, 2009 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- http://article.gmane.org/gmane.mail.virus.amavis.user/33635
- http://thread.gmane.org/gmane.mail.virus.amavis.user/33635
- perl-compressrawzlib-inflate-bo(51062) vdb-entry
- USN-794-1 vendor-advisory
- MDVSA-2009:157 vendor-advisory
- https://bugs.gentoo.org/show_bug.cgi?id=273141
- 35307 vdb-entry
- GLSA-200908-07 vendor-advisory
- 35685 third-party-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=504386
- 35689 third-party-advisory
- ADV-2009-1571 vdb-entry
- SUSE-SR:2009:012 vendor-advisory
- 55041 vdb-entry
- http://article.gmane.org/gmane.mail.virus.amavis.user/33638
- 35422 third-party-advisory
- 35876 third-party-advisory
- FEDORA-2009-7680 vendor-advisory