NULL Pointer Dereference Affecting libpng package, versions [,1.0.42)[1.2.0,1.2.34)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.74% (81st 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 NULL Pointer Dereference vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-LIBPNG-2335000
  • published12 Jan 2022
  • disclosed15 Jan 2009
  • creditUnknown

Introduced: 15 Jan 2009

CVE-2008-5907  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade libpng to version 1.0.42, 1.2.34 or higher.

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference. The png_check_keyword function in pngwutil.c in libpng before 1.0.42, and 1.2.x before 1.2.34, might allow context-dependent attackers to set the value of an arbitrary memory location to zero via vectors involving creation of crafted PNG files with keywords, related to an implicit cast of the '\0' character constant to a NULL pointer. NOTE: some sources incorrectly report this as a double free vulnerability.

CVSS Scores

version 3.1