cve.bz

CVE-2025-65018 libpng libpng: Heap-based Buffer Overflow

7.1 highExploit referenceEPSS 0.3%Fix available

High (7.1) in libpng libpng. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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, there is a heap buffer overflow vulnerability in the libpng simplified API function png_image_finish_read when processing 16-bit interlaced PNGs with 8-bit output format. Attacker-crafted interlaced PNG files cause heap writes beyond allocated buffer bounds. This issue has been patched in version 1.6.51.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 20th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-11-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-122 Heap-based Buffer Overflow
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-65018 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-65018?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-65018?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-65018 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libpng:libpngfrom 1.6.0 before 1.6.51

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libpng1.61.6.37-3+deb11u1DLA-4396-1
Debian12libpng1.61.6.39-2+deb12u1DEBIAN-CVE-2025-65018 DSA-6076-1
Debian13libpng1.61.6.48-1+deb13u1DEBIAN-CVE-2025-65018 DSA-6076-1
Debian14libpng1.61.6.51-1DEBIAN-CVE-2025-65018
Ubuntu22.04:LTSlibpng1.61.6.37-3ubuntu0.1UBUNTU-CVE-2025-65018
Ubuntu24.04:LTSlibpng1.61.6.43-5ubuntu0.1UBUNTU-CVE-2025-65018
Ubuntu25.10libpng1.61.6.50-1ubuntu0.1UBUNTU-CVE-2025-65018
UbuntuPro:16.04:LTSlibpng1.61.6.20-2ubuntu0.1~esm2UBUNTU-CVE-2025-65018
UbuntuPro:18.04:LTSlibpng1.61.6.34-1ubuntu0.18.04.2+esm1UBUNTU-CVE-2025-65018
UbuntuPro:20.04:LTSlibpng1.61.6.37-2ubuntu0.1~esm1UBUNTU-CVE-2025-65018
Red Hatenterprise_linux:8::appstreamjava-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 10 more1:21.0.10.0.7-1.el8RHSA-2026:0928
Red Hatenterprise_linux:8::appstream, rhel_aus:8.4::appstream, rhel_aus:8.6::appstream and 3 morejava-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 10 more1:1.8.0.482.b08-1.el8RHSA-2026:0932
Red Hatenterprise_linux:8::appstream, rhel_aus:8.6::appstream, rhel_e4s:8.6::appstream and 1 morejava-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 10 more1:17.0.18.0.8-1.el8RHSA-2026:0927
Red Hatenterprise_linux:8::baseoslibpng, libpng-devel, libpng-debuginfo and 3 more2:1.6.34-9.el8_10RHSA-2026:0241
Red Hatenterprise_linux:8::crbjava-1.8.0-openjdk-debuginfo, java-1.8.0-openjdk-fastdebug, java-1.8.0-openjdk-slowdebug and 22 more1:1.8.0.482.b08-1.el8RHSA-2026:0932
Red Hatenterprise_linux:8::crbjava-17-openjdk-debuginfo, java-17-openjdk-fastdebug, java-17-openjdk-slowdebug and 21 more1:17.0.18.0.8-1.el8RHSA-2026:0927
Red Hatenterprise_linux:8::crbjava-21-openjdk-debuginfo, java-21-openjdk-fastdebug, java-21-openjdk-slowdebug and 21 more1:21.0.10.0.7-1.el8RHSA-2026:0928
Red Hatenterprise_linux:8::crbmingw-libpng, mingw32-libpng, mingw64-libpng and 4 more0:1.6.34-1.el8_10RHSA-2026:0125
Red Hatenterprise_linux:9::appstreamjava-25-openjdk, java-25-openjdk-src, java-25-openjdk-demo and 12 more1:25.0.2.0.10-1.el9RHSA-2026:0933
Red Hatenterprise_linux:9::appstreamlibpng, libpng-devel, libpng-debuginfo and 3 more2:1.6.37-12.el9_7.1RHSA-2026:0238
Red Hatenterprise_linux:9::appstream, rhel_eus:9.4::appstream, rhel_eus:9.6::appstreamjava-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 9 more1:1.8.0.482.b08-1.el9RHSA-2026:0932
Red Hatenterprise_linux:9::appstream, rhel_eus:9.4::appstream, rhel_eus:9.6::appstreamjava-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 10 more1:17.0.18.0.8-1.el9RHSA-2026:0927
32 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 15 morelibpng161.6.34-150000.3.12.1SUSE-SU-2025:4436-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7libpng161.6.40-150600.3.3.1SUSE-SU-2025:4494-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0libpng161.6.44-160000.3.1SUSE-SU-2026:20030-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5libpng161.6.8-15.9.1SUSE-SU-2025:4533-1
SUSELinux Micro 6.0libpng161.6.43-2.1SUSE-SU-2025:21217-1
SUSELinux Micro 6.0libpng161.6.58-1.1SUSE-SU-2026:23063-1
SUSELinux Micro 6.1libpng161.6.43-slfo.1.1_2.1SUSE-SU-2025:21220-1
SUSELinux Micro 6.1libpng161.6.58-slfo.1.1_1.1SUSE-SU-2026:23514-1
SUSELinux Micro 6.2libpng161.6.44-160000.3.1SUSE-SU-2026:20073-1
openSUSELeap 15.6libpng161.6.40-150600.3.3.1SUSE-SU-2025:4494-1
openSUSELeap 16.0libpng161.6.44-160000.3.1openSUSE-SU-2026:20017-1
openSUSETumbleweedlibpng161.6.51-1.1openSUSE-SU-2025:15781-1
AlmaLinux8java-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 13 more1:1.8.0.482.b08-1.el8ALSA-2026:0932
AlmaLinux8java-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 20 more1:17.0.18.0.8-1.el8ALSA-2026:0927
AlmaLinux8java-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 20 more1:21.0.10.0.7-1.el8ALSA-2026:0928
AlmaLinux8libpng, libpng-devel2:1.6.34-9.el8_10ALSA-2026:0241
AlmaLinux8mingw32-libpng, mingw64-libpng, mingw32-libpng-static and 1 more1.6.34-1.el8_10ALSA-2026:0125
AlmaLinux9java-1.8.0-openjdk, java-1.8.0-openjdk-src, java-1.8.0-openjdk-demo and 14 more1:1.8.0.482.b08-1.el9.alma.1ALSA-2026:0932
AlmaLinux9java-17-openjdk, java-17-openjdk-src, java-17-openjdk-demo and 20 more1:17.0.18.0.8-1.el9.alma.1ALSA-2026:0927
AlmaLinux9java-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 20 more1:21.0.10.0.7-1.el9.alma.1ALSA-2026:0928
AlmaLinux9java-25-openjdk, java-25-openjdk-src, java-25-openjdk-demo and 23 more1:25.0.2.0.10-1.el9.alma.1ALSA-2026:0933
AlmaLinux9libpng, libpng-devel2:1.6.37-12.el9_7.1ALSA-2026:0238
AlmaLinux10java-21-openjdk, java-21-openjdk-src, java-21-openjdk-demo and 20 more1:21.0.10.0.7-1.el10.alma.1ALSA-2026:0928
AlmaLinux10java-25-openjdk, java-25-openjdk-src, java-25-openjdk-demo and 23 more1:25.0.2.0.10-1.el10ALSA-2026:0933
1 more for AlmaLinux in the JSON.
Rocky Linux8java-1.8.0-openjdk1:1.8.0.482.b08-1.el8RLSA-2026:0932
Rocky Linux8java-17-openjdk1:17.0.18.0.8-1.el8RLSA-2026:0927
Rocky Linux8java-21-openjdk1:21.0.10.0.7-1.el8RLSA-2026:0928
Rocky Linux8libpng2:1.6.34-9.el8_10RLSA-2026:0241
Rocky Linux8mingw-libpng0:1.6.34-1.el8_10RLSA-2026:0125
Rocky Linux9java-25-openjdk1:25.0.2.0.10-1.el9RLSA-2026:0933
Rocky Linux9libpng2:1.6.37-12.el9_7.1RLSA-2026:0238
Rocky Linux10libpng2:1.6.40-8.el10_1.1RLSA-2026:0237
Alpinev3.20, v3.21libpng1.6.53-r0ALPINE-CVE-2025-65018
Alpinev3.22, v3.23, v3.24libpng1.6.51-r0ALPINE-CVE-2025-65018
Azure Linux2fltkno fix listedAZL-70891
Azure Linux2gdalno fix listedAZL-70900
Azure Linux2libpng1.6.51-1AZL-70978
Azure Linux2openjpeg2no fix listedAZL-70912
Azure Linux3fltkno fix listedAZL-70850
Azure Linux3gdalno fix listedAZL-70853
Azure Linux3libpng1.6.51-1AZL-70925
Azure Linux3openjpeg2no fix listedAZL-70874
Azure Linux3optipngno fix listedAZL-70877
Alpaquita23libpng1.6.44-r1BELL-CVE-2025-65018
Alpaquita25libpng1.6.51-r0BELL-CVE-2025-65018
Alpaquitastreamlibpng1.6.51-r1BELL-CVE-2025-65018
BellSoft Hardened Containers23libpng1.6.44-r1BELL-CVE-2025-65018
BellSoft Hardened Containers25libpng1.6.51-r0BELL-CVE-2025-65018
BellSoft Hardened Containersstreamlibpng1.6.51-r1BELL-CVE-2025-65018

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated Important for Red Hat products. A heap buffer overflow exists in the libpng library's png_image_finish_read function when processing specially crafted 16-bit interlaced PNG images with an 8-bit output format. Successful exploitation requires a user or an automated system to process a malicious PNG file, which could lead to application crashes or arbitrary code execution.

java-*-openjdk-headless packages do not contain libsplashscreen.so, hence are not affected.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
OPENJDK ELS 11.0.30java-11-openjdk-portableFixed 2026-01-21RHSA-2026:0848
OPENJDK ELS 11.0.30Fixed 2026-01-21RHSA-2026:0849
Red Hat Build of OpenJDK 17.0.18java-17-openjdk-portableFixed 2026-01-26RHSA-2026:0897
Red Hat Build of OpenJDK 21.0.10java-21-openjdk-portableFixed 2026-01-26RHSA-2026:0899
Red Hat Build of OpenJDK 25.0.2java-25-openjdk-portableFixed 2026-01-26RHSA-2026:0901
Red Hat Build of OpenJDK 8u482java-1.8.0-openjdk-portableFixed 2026-01-26RHSA-2026:0895
Red Hat Enterprise Linux 10libpng-2:1.6.40-8.el10_1.1Fixed 2026-01-07RHSA-2026:0237
Red Hat Enterprise Linux 10java-21-openjdk-1:21.0.10.0.7-1.el10Fixed 2026-01-22RHSA-2026:0928
Red Hat Enterprise Linux 10java-25-openjdk-1:25.0.2.0.10-1.el10Fixed 2026-01-26RHSA-2026:0933
Red Hat Enterprise Linux 10.0 Extended Update Supportlibpng-2:1.6.40-8.el10_0.1Fixed 2026-01-07RHSA-2026:0212
Red Hat build of OpenJDK 11 ELSjava-21-openjdk-portableAffected
Red Hat build of OpenJDK 17java-21-openjdk-portableAffected
Red Hat build of OpenJDK 21java-21-openjdk-portable-rhel7Affected
Red Hat Enterprise Linux 10firefoxNot affected
Red Hat Enterprise Linux 10thunderbirdNot affected
Red Hat Enterprise Linux 6libpngWill not fix
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 7java-11-openjdkNot affected
Red Hat Enterprise Linux 7libpngNot affected
Red Hat Enterprise Linux 7libpng12Not affected
63 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-65018.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON