ID:12149 - Exploit for Heap-based buffer overflow in libpng - CVE-2025-65018

 
Main Vulnerability Database Exploits ID:12149 - Exploit for Heap-based buffer overflow in libpng - CVE-2025-65018

ID:12149 - Exploit for Heap-based buffer overflow in libpng - CVE-2025-65018

Published: November 28, 2025


Vulnerability identifier: #VU118777
Vulnerability risk: Critical
CVE-ID: CVE-2025-65018
CWE-ID: CWE-122
Exploitation vector: Remote access
Vulnerable software:
libpng

Link to public exploit:


Vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the png_image_finish_read() function when processing 16-bit interlaced PNGs with 8-bit output format. A remote attacker can pass a specially crafted image file to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Remediation

Install updates from vendor's website.