Skip to content
Noroxi
NVD / CVE Program· CNA GitHub_M

CVE-2025-64506: LIBPNG is vulnerable to a heap buffer over-read in `png_write_image_8bit` with grayscale+alpha or RGB/RGBA images

Noroxi assessment

Priority: Monitor (action score 24/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.15% (FIRST EPSS).
  • Someone with local access to the system can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
  • Fixed version: pnggroup libpng 1.6.51; azl3 libpng 1.6.40-1 on Azure Linux 3.0 1.6.51-1; cbl2 libpng 1.6.39-1 on CBL Mariner 2.0 1.6.51-1.

Low priority for now. Upgrade to pnggroup libpng 1.6.51; azl3 libpng 1.6.40-1 on Azure Linux 3.0 1.6.51-1; cbl2 libpng 1.6.39-1 on CBL Mariner 2.0 1.6.51-1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From version 1.6.0 to before 1.6.51, a heap buffer over-read vulnerability exists in libpng's png_write_image_8bit function when processing 8-bit images through the simplified write API with convert_to_8bit enabled. The vulnerability affects 8-bit grayscale+alpha, RGB/RGBA, and images with incomplete row data. A conditional guard incorrectly allows 8-bit input to enter code expecting 16-bit input, causing reads up to 2 bytes beyond allocated buffer boundaries. This issue has been patched in version 1.6.51.

MediumCVSS 6.1 · v3.1—No exploit Fix available
Published
Nov 25, 2025
Updated
Oct 18, 2026
EPSS
0.1% · 4th percentile

Report tools

JSON

Action score

24

Monitor

Low priority for now.

CVSS
24 / 40 · 6.1 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.1%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · GitHub_M
6.1
NVD has not scored this yet; the score shown is the CNA’s.

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2025-64506

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
libpnglibpng

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • libpng libpng1.6.0 and later · before 1.6.51

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • pnggroup libpng

    • >= 1.6.0, < 1.6.51affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.20libpngfrom 1.6.0 · before 1.6.53-r01.6.53-r0
Alpine:v3.22libpngfrom 1.6.0 · before 1.6.51-r01.6.51-r0
Debian:11libpng1.6before 1.6.37-3+deb11u11.6.37-3+deb11u1
Debian:12libpng1.6before 1.6.39-2+deb12u11.6.39-2+deb12u1
Debian:13libpng1.6before 1.6.48-1+deb13u11.6.48-1+deb13u1
Debian:14libpng1.6before 1.6.51-11.6.51-1
openSUSE:Leap 15.6libpng16before 1.6.40-150600.3.3.11.6.40-150600.3.3.1
openSUSE:Leap 16.0libpng16before 1.6.44-160000.3.11.6.44-160000.3.1
openSUSE:Tumbleweedlibpng16before 1.6.51-1.11.6.51-1.1
Red Hat:hummingbird:1libpngbefore 0:1.6.58-2.1.hum10:1.6.58-2.1.hum1
Red Hat:hummingbird:1libpngbefore 0:1.6.56-1.hum10:1.6.56-1.hum1
Red Hat:hummingbird:1libpng-develbefore 0:1.6.56-1.hum10:1.6.56-1.hum1
Red Hat:hummingbird:1libpng-develbefore 0:1.6.58-2.1.hum10:1.6.58-2.1.hum1
Red Hat:hummingbird:1libpng-staticbefore 0:1.6.56-1.hum10:1.6.56-1.hum1
Red Hat:hummingbird:1libpng-staticbefore 0:1.6.58-2.1.hum10:1.6.58-2.1.hum1
Red Hat:hummingbird:1libpng-toolsbefore 0:1.6.58-2.1.hum10:1.6.58-2.1.hum1
Red Hat:hummingbird:1libpng-toolsbefore 0:1.6.56-1.hum10:1.6.56-1.hum1
SUSE:Linux Enterprise Micro 5.3libpng16before 1.6.34-150000.3.12.11.6.34-150000.3.12.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6libpng16before 1.6.40-150600.3.3.11.6.40-150600.3.3.1
SUSE:Linux Enterprise Server 16.0libpng16before 1.6.44-160000.3.11.6.44-160000.3.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5libpng16before 1.6.8-15.9.11.6.8-15.9.1
SUSE:Linux Micro 6.0libpng16before 1.6.58-1.11.6.58-1.1
SUSE:Linux Micro 6.0libpng16before 1.6.43-2.11.6.43-2.1
SUSE:Linux Micro 6.1libpng16before 1.6.58-slfo.1.1_1.11.6.58-slfo.1.1_1.1

+1

Other highest-scoring records for the same primary product.

  • CVE-2010-1205Buffer overflow in pngpread.c in libpng before 1.2.44 and 1.4.x before 1.4.3, as used in progressive applications, might allow remote attack
    52Plan
  • CVE-2017-12652libpng before 1.6.32 does not properly check the length of chunks against the user limit.
    40Plan
  • CVE-2015-8540Integer 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
    37Monitor

Published before and after this one in the same product

  • ← EarlierCVE-2021-4214Aug 24, 2022 · A heap overflow flaw was found in libpngs' pngimage.c program.
    22Monitor
  • ← EarlierCVE-2025-64505Nov 25, 2025 · LIBPNG is vulnerable to a heap buffer overflow in `png_do_quantize` via malformed palette index
    24Monitor
  • Later →CVE-2025-64720Nov 25, 2025 · LIBPNG is vulnerable to a buffer overflow in `png_image_read_composite` via incorrect palette premultiplication
    28Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
pnggroup libpng1.6.51 · descriptionVendor (CNA)
azl3 libpng 1.6.40-1 on Azure Linux 3.01.6.51-1 · CBL-Mariner ReleasesMicrosoft (MSRC)
cbl2 libpng 1.6.39-1 on CBL Mariner 2.01.6.51-1 · CBL-Mariner ReleasesMicrosoft (MSRC)
alpine:libpng1.6.53-r0 · Alpine:v3.20Package registry (OSV)
debian:libpng1.61.6.39-2+deb12u1 · Debian:12Package registry (OSV)
opensuse:libpng161.6.40-150600.3.3.1 · openSUSE:Leap 15.6Package registry (OSV)
red hat:libpng0:1.6.56-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:libpng-devel0:1.6.56-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:libpng-static0:1.6.56-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
red hat:libpng-tools0:1.6.56-1.hum1 · Red Hat:hummingbird:1Package registry (OSV)
suse:libpng161.6.40-150600.3.3.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP6Package registry (OSV)
suse:libpng161.6.43-2.1 · SUSE:Linux Micro 6.0Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

No history yet (it accumulates with the daily EPSS job).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2026-2280148 days apartLIBPNG has an integer truncation causing heap buffer over-read in png_image_write_*
    31Monitor
  • CVE-2026-33636121 days apartLIBPNG has ARM NEON Palette Expansion Out-of-Bounds Read on AArch64
    30Monitor
  • CVE-2025-647200 days apartLIBPNG is vulnerable to a buffer overflow in `png_image_read_composite` via incorrect palette premultiplication
    28Monitor
  • CVE-2025-662938 days apartLIBPNG has an out-of-bounds read in png_image_read_composite
    28Monitor
  • CVE-2026-2269548 days apartLIBPNG has a heap buffer over-read in png_image_read_direct_scaled (regression from CVE-2025-65018 fix)
    28Monitor
  • CVE-2025-645050 days apartLIBPNG is vulnerable to a heap buffer overflow in `png_do_quantize` via malformed palette index
    24Monitor

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
low · data can be read
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality impact
Low
Integrity impact
None
Availability impact
High

Weakness class (CWE)

CWE-125 · Out-of-bounds Read

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H

nvd-secondary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

ATT&CK techniques

—

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

Show all references (2 more)

Vendor advisories and official records. Exploit/PoC links are deliberately left out.

All records