Vulnerabilities in pkg:nuget/libpng
PACKAGECVE-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.
pkg:nuget/libpng
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
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).
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.
Upgrade libpng to 1.6.37
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
CVE-2018-14550 Affected Libpng Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
libpng
|
NuGet |
< 1.6.37
|
1.6.37
|
References
Frequently Asked Questions
What is CVE-2018-14550?
Which Libpng versions are affected?
What version fixes CVE-2018-14550?
Is libpng affected?
What is the CVSS score of CVE-2018-14550?
What CWE is associated with CVE-2018-14550?
How can I check NuGet dependencies for CVE-2018-14550?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}