Buffer Overflow Affecting png-img package, versions <3.1.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1% (77th 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 Buffer Overflow vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PNGIMG-1078233
  • published21 Feb 2021
  • disclosed21 Feb 2021
  • creditUnknown

Introduced: 21 Feb 2021

CVE-2020-28248  (opens in a new tab)
CWE-119  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade png-img to version 3.1.0 or higher.

Overview

png-img is a PNG Image

Affected versions of this package are vulnerable to Buffer Overflow via the PngImg::InitStorage_() function. It leads to an under-allocation of heap memory and subsequently an exploitable heap-based buffer overflow when loading a crafted PNG file.

CVSS Base Scores

version 3.1