Vulnerabilities in pkg:nuget/libpng

PACKAGE
Advisory Identifier: GHSA-qwwr-qc2p-6283
Advisory Summary

CVE-2018-14550 is a HIGH (CVSS 8.8) out-of-bounds write vulnerability (CWE-787: Out-of-bounds Write) affecting Libpng libraries in the NuGet ecosystem. The issue involves out-of-bounds write in libpng. Remediation is available by upgrading affected packages to version 1.6.37.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/libpng

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:nuget/libpng. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-qwwr-qc2p-6283 CVE-2018-14550 HIGH Out-of-bounds write in libpng

CVE-2018-14550 at a Glance

CVE Identifier CVE-2018-14550
GHSA Identifier GHSA-qwwr-qc2p-6283
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-787: Out-of-bounds Write
Affected Product Libpng
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2018-14550

To remediate this vulnerability, upgrade all affected Libpng dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

libpng fixed: 1.6.37
Upgrade libpng to 1.6.37
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for libpng

How to Check if You Are Affected

To determine whether your application is affected by CVE-2018-14550, inspect your project dependencies for Libpng:

inspect dependencies for libpng

Analyze the terminal output to locate any version of Libpng in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.37), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-787: Out-of-bounds Write, where the product writes data past the end, or before the beginning, of the intended buffer. In Libpng, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An issue has been found in third-party PNM decoding associated with libpng 1.6.35. It is a stack-based buffer overflow in the function get_token in pnm2png.c in pnm2png.

CVE-2018-14550 Affected Libpng Versions

1 component(s)
Fixed Versions:
1.6.37
Product / Package Ecosystem Affected Versions Fixed Version
libpng
NuGet
< 1.6.37
1.6.37

References

Frequently Asked Questions

What is CVE-2018-14550?
CVE-2018-14550 is a security vulnerability in Libpng involving Out-of-bounds write in libpng under CWE-787: Out-of-bounds Write.
Which Libpng versions are affected?
Affected versions include releases prior to 1.6.37 across affected packages: libpng.
What version fixes CVE-2018-14550?
Upgrading to 1.6.37 (or the latest patched release for your respective branch) resolves the vulnerability.
Is libpng affected?
Yes, libpng is affected in releases prior to 1.6.37. Upgrade your dependency to 1.6.37 or later.
What is the CVSS score of CVE-2018-14550?
CVE-2018-14550 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-14550?
CVE-2018-14550 is classified under CWE-787: Out-of-bounds Write (The product writes data past the end, or before the beginning, of the intended buffer.).
How can I check NuGet dependencies for CVE-2018-14550?
Run the dependency tree command: 'inspect dependencies for libpng'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qwwr-qc2p-6283",
  "modified" : "2021-10-21T21:19:32Z",
  "published" : "2021-03-22T16:57:07Z",
  "aliases" : [ "CVE-2018-14550" ],
  "summary" : "Out-of-bounds write in libpng",
  "details" : "An issue has been found in third-party PNM decoding associated with libpng 1.6.35. It is a stack-based buffer overflow in the function get_token in pnm2png.c in pnm2png.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "libpng"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.37"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.6.35"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-14550"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/glennrp/libpng/issues/246"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fouzhe/security/tree/master/libpng#stack-buffer-overflow-in-png2pnm-in-function-get_token"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/glennrp/libpng"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/201908-02"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20221028-0001"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-UPSTREAM-LIBPNG-1043612"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuApr2021.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuoct2021.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-787" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-03-22T15:41:48Z",
    "nvd_published_at" : "2019-07-10T12:15:00Z"
  }
}