{"id":"CVE-2025-48379","published":"2025-07-01T18:33:30Z","modified":"2025-07-01T19:42:22Z","title":"Pillow Vulnerable to Write Buffer Overflow on BCn encoding","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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 (>64k 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00362,"percentile":0.2225,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/9041","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/ef98b3510e3e4f14b547762764813d7e5ca3c5a4","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/11.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":9.4,"factors":[{"name":"EPSS percentile","points":4.45},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":[">= 11.2.0, < 11.3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-01T19:42:09.269034Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":[">=11.2.0, <11.3.0"],"patched":["11.3.0"],"from":["GHSA-xg8h-j46f-w952","PYSEC-2025-61"],"provenance":"source"}],"summary":{"text":"Pillow, the Python imaging library, contains a heap buffer overflow in its DDS image writer, which writes into a buffer without checking available space. The flaw affects versions 11.2.0 up to but not including 11.3.0. An attacker can trigger memory corruption by getting the application to save untrusted data as a compressed DDS image larger than about 64k encoded with default settings, and it requires local access with low privileges and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:30Z"},"euvd":{"id":"EUVD-2025-19662","exploited":false,"provenance":"source"}}