GHSA-22jr-vc7j-g762

Suggest an improvement
Source
https://github.com/advisories/GHSA-22jr-vc7j-g762
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/03/GHSA-22jr-vc7j-g762/GHSA-22jr-vc7j-g762.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-22jr-vc7j-g762
Aliases
Published
2020-03-16T22:46:19Z
Modified
2024-10-21T20:01:31.003759Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Potential buffer overflow in psd-tools
Details

Impact

An issue was discovered in psd-tools before 1.9.4. The Cython implementation of RLE decoding did not check for malformed PSD input data during decoding to the PIL.Image or NumPy format, leading to a Buffer Overflow.

Patches

Users of psd-tools version v1.8.37 to v1.9.3 should upgrade to v1.9.4.

Workarounds

Without Cython present on installation, buffer overflow does not occur but IndexError will be thrown. However, already installed psd-tools with Cython extention should be upgraded.

References

https://github.com/psd-tools/psd-tools/pull/198

For more information

If you have any questions or comments about this advisory: * Open an issue in psd-tools

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-754"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2020-03-16T20:55:37Z"
}
References

Affected packages

PyPI / psd-tools

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.8.37
Fixed
1.9.4

Affected versions

1.*

1.8.37
1.8.38
1.9.0
1.9.1
1.9.2
1.9.3

Database specific

{
    "last_known_affected_version_range": "< 1.9.3"
}