Potential buffer overflow in psd-tools
What fixes it
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
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
Text from GitHub Advisory Database
Affected versions 9
- psd-tools, pip>= 1.8.37, <= 1.9.3GitHub
- n/aaffected: n/aCVE List
- psd-tools, PyPIfrom 1.8.37, fixed in 1.9.4OSV
- psd-tools, PyPI1.8.37OSV
- psd-tools, PyPI1.8.38OSV
- psd-tools, PyPI1.9.0OSV
- psd-tools, PyPI1.9.1OSV
- psd-tools, PyPI1.9.2OSV
- psd-tools, PyPI1.9.3OSV
References 7
- github.com/psd-tools/psd-tools/releases/tag/v1.9.4Fixvia CVE List
- github.com/psd-tools/psd-tools/commit/fd51f8b4a52bc9c1c06d1035dfdf2cd920e87074Fixvia GitHub
- github.com/psd-tools/psd-tools/security/advisories/GHSA-22jr-vc7j-g762Advisoryvia GitHub
- github.com/pypa/advisory-database/tree/main/vulns/psd-tools/PYSEC-2020-91.yamlAdvisoryvia GitHub
- github.com/advisories/GHSA-22jr-vc7j-g762Advisoryvia GitHub
- nvd.nist.gov/vuln/detail/CVE-2020-10571Referencevia GitHub
- github.com/psd-tools/psd-tools/pull/198Referencevia CVE List