{"id":"CVE-2025-48379","summary":"Pillow Vulnerable to Write Buffer Overflow on BCn encoding","details":"Pillow is a Python imaging library. In versions 11.2.0 to before 11.3.0, there is a heap buffer overflow when writing a sufficiently large (\u003e64k encoded with default settings) image in the DDS format due to writing into a buffer without checking for available space. This only affects users who save untrusted data as a compressed DDS image. This issue has been patched in version 11.3.0.","aliases":["BIT-pillow-2025-48379","GHSA-xg8h-j46f-w952","PYSEC-2025-61"],"modified":"2026-08-12T04:13:06.668384583Z","published":"2025-07-01T18:33:30.687Z","related":["CGA-wcx6-xfwm-2p5p","openSUSE-SU-2025:15316-1"],"database_specific":{"cwe_ids":["CWE-122"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48379.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/python-pillow/Pillow/releases/tag/11.3.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48379.json"},{"type":"ADVISORY","url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48379"},{"type":"FIX","url":"https://github.com/python-pillow/Pillow/commit/ef98b3510e3e4f14b547762764813d7e5ca3c5a4"},{"type":"FIX","url":"https://github.com/python-pillow/Pillow/pull/9041"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/python-pillow/pillow","events":[{"introduced":"339bc5db93bd95decf65a59fab273f300db6594d"},{"fixed":"ef98b3510e3e4f14b547762764813d7e5ca3c5a4"},{"fixed":"89f1f4626a2aaf5f3d5ca6437f41def2998fbe09"}],"database_specific":{"cpe":"cpe:2.3:a:python:pillow:11.2.1:*:*:*:*:*:*:*","extracted_events":[{"introduced":"11.2.1"},{"last_affected":"11.2.1"}],"source":["CPE_STRING","REFERENCES"]}}],"versions":["11.2.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-48379.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"}]}