GHSA-q5wr-fvpq-p67g

Suggest an improvement
Source
https://github.com/advisories/GHSA-q5wr-fvpq-p67g
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-q5wr-fvpq-p67g/GHSA-q5wr-fvpq-p67g.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-q5wr-fvpq-p67g
Aliases
Published
2021-12-10T17:23:30Z
Modified
2023-11-01T04:52:52.751231Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Integer Overflow in png-img
Details

An integer overflow in the PngImg::InitStorage_() function of png-img before 3.1.0 leads to an under-allocation of heap memory and subsequently an exploitable heap-based buffer overflow when loading a crafted PNG file.

Database specific
{
    "nvd_published_at": "2021-02-20T00:15:00Z",
    "github_reviewed_at": "2021-07-26T18:09:11Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-190",
        "CWE-787"
    ]
}
References

Affected packages

npm / png-img

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.1.0