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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.02% (5th 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-15126104
  • published28 Jan 2026
  • disclosed27 Jan 2026
  • creditkaiyu xie

Introduced: 27 Jan 2026

CVE-2025-28162  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade libpng to version 1.6.47 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the png_malloc_base() function with AddressSanitizer enabled, the program leaks memory in various locations, eventually leading to excessive memory consumption and causing the application to become unresponsive. An attacker can trigger high memory usage and denial of service by repeatedly invoking the affected process with crafted input.

Note:

As mentioned by the package maintainer, the flawed logic wasn't introduced only in version 1.6.43, it was always present and 1.6.43 is the version the reporter used for fuzz testing.

CVSS Base Scores

version 4.0
version 3.1