Use After Free Affecting libpng package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (13th percentile)

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-15849739
  • published30 Mar 2026
  • disclosed26 Mar 2026
  • creditRyo Shimada, Halil Oktay

Introduced: 26 Mar 2026

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

How to fix?

There is no fixed version for libpng.

Overview

Affected versions of this package are vulnerable to Use After Free in the png_set_tRNS and png_set_PLTE functions, where a heap-allocated buffer is aliased between two structures with independent lifetimes. An attacker can cause memory corruption or potentially execute arbitrary code by triggering a use-after-free condition through crafted calls that free memory while leaving dangling pointers, followed by subsequent operations that dereference or write to the freed memory.

CVSS Base Scores

version 4.0
version 3.1