{"id":"UBUNTU-CVE-2026-42311","details":"Pillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in version 12.2.0.","modified":"2026-06-08T18:52:31.592647078Z","published":"2026-05-09T06:16:00Z","related":["USN-8399-1"],"upstream":["CVE-2026-42311"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-42311"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-42311"},{"type":"REPORT","url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-pwv6-vv43-88gr"},{"type":"REPORT","url":"https://github.com/python-pillow/Pillow/pull/9520"},{"type":"REPORT","url":"https://github.com/python-pillow/Pillow/releases/tag/12.2.0"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8399-1"}],"affected":[{"package":{"name":"pillow-python2","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/pillow-python2?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.2.1-3~build1","6.2.1-3","6.2.1-3ubuntu0.1~esm1","6.2.1-3ubuntu0.1~esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"6.2.1-3ubuntu0.1~esm2","binary_name":"python-pil"},{"binary_name":"python-pil.imagetk","binary_version":"6.2.1-3ubuntu0.1~esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42311.json"}},{"package":{"name":"pillow","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"11.3.0-1ubuntu1.3"}]}],"versions":["11.1.0-5build1","11.3.0-1ubuntu1","11.3.0-1ubuntu1.1","11.3.0-1ubuntu1.2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-pil","binary_version":"11.3.0-1ubuntu1.3"},{"binary_version":"11.3.0-1ubuntu1.3","binary_name":"python3-pil.imagetk"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42311.json"}},{"package":{"name":"pillow","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/pillow?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.1.1-2ubuntu1.2"}]}],"versions":["11.3.0-1ubuntu1","11.3.0-1ubuntu2","12.0.0-1ubuntu1","12.1.1-1ubuntu1","12.1.1-2ubuntu1","12.1.1-2ubuntu1.1"],"ecosystem_specific":{"binaries":[{"binary_version":"12.1.1-2ubuntu1.2","binary_name":"python3-pil"},{"binary_name":"python3-pil.imagetk","binary_version":"12.1.1-2ubuntu1.2"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42311.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}