CVE-2009-2042: Libpng

Medium severity, CVSS 4.3. EPSS: 2.3% chance of exploitation in the next 30 days.

libpng before 1.2.37 does not properly parse 1-bit interlaced images with width values that are not divisible by 8, which causes libpng to include uninitialized bits in certain rows of a PNG file and might allow remote attackers to read portions of sensitive memory via "out-of-bounds pixels" in the file.

Affected products

  • Libpng Libpng: up to and including 1.2.35; version 0.89c only; version 0.95 only; version 1.0.0 only; version 1.0.1 only; version 1.0.2 only; …

Published 2009-06-12. Last modified 2026-06-16.