Use After Free Affecting libpng package, versions [,1.6.59)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-LIBPNG-21198344
  • published18 Oct 2026
  • disclosed29 Sept 2026
  • creditUnknown

Introduced: 29 Sep 2026

NewCVE-2026-46675  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade libpng to version 1.6.59 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the png_read_end process when it is called without reading image rows. An attacker can cause an application crash by supplying a specially crafted PNG image that triggers incomplete decompression of certain metadata chunks, leaving a dangling pointer in the internal decompression state. This is only exploitable if the application invokes cleanup routines prior to row processing, which is uncommon in standard deployments.

CVSS Base Scores

version 4.0
version 3.1