psd-tools
Affected
- introduced
1.8.37, fixed1.9.4(ecosystem)
Fixed versions
1.9.4
Fix
- Fixed version
1.9.4pip install --upgrade psd-tools==1.9.4
Advisory
Also known as: CVE-2020-10571, PYSEC-2020-91
Potential buffer overflow in psd-tools
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:
Critical Basis: The source's own band: CRITICAL
1.8.37, fixed 1.9.4 (ecosystem)1.9.4
1.9.4pip install --upgrade psd-tools==1.9.4Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0