{"id":"CVE-2025-48379","aliases":["CVE-2025-48379","GHSA-xg8h-j46f-w952","BIT-PILLOW-2025-48379","PYSEC-2025-61"],"related":[],"kind":"vulnerability","state":"published","title":"Pillow Vulnerable to Write Buffer Overflow on BCn encoding","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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. \n\nThis only affects users who save untrusted data as a compressed DDS image. \n\n* Unclear how large the potential write could be. It is likely limited by process segfault, so it's not necessarily deterministic. It may be practically unbounded. \n* Unclear if there's a restriction on the bytes that could be emitted. It's likely that the only restriction is that the bytes would be emitted in chunks of 8 or 16. \n\nThis was introduced in Pillow 11.2.0 when the feature was added.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Pillow es una librería de imágenes de Python. En las versiones 11.2.0 y anteriores a la 11.3.0, se produce un desbordamiento del búfer de montón al escribir una imagen suficientemente grande (más de 64k codificada con la configuración predeterminada) en formato DDS, debido a que se escribe en un búfer sin comprobar el espacio disponible. Esto solo afecta a los usuarios que guardan datos no confiables como una imagen DDS comprimida. Este problema se ha corregido en la versión 11.3.0.","source":"nvd"}],"published":"2025-07-01T17:29:37.000Z","modified":"2026-09-10T16:01:45.817Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-122"],"affected":[{"ranges":[{"version":">= 11.2.0, < 11.3.0","status":"affected"}],"vendor":"python-pillow","product":"Pillow","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"11.2.0","status":"affected","fixed":"11.3.0"}],"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","source":"ghsa"},{"ranges":[{"status":"affected","version":"11.2.1"}],"vendor":"python","product":"pillow","cpe":"cpe:2.3:a:python:pillow:11.2.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"89f1f4626a2aaf5f3d5ca6437f41def2998fbe09"},{"type":"git","status":"affected","fixed":"ef98b3510e3e4f14b547762764813d7e5ca3c5a4"},{"type":"ecosystem","introduced":"11.2.0","status":"affected","fixed":"11.3.0"}],"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","repo":"https://github.com/python-pillow/pillow","source":"pysec"},{"ranges":[{"type":"semver","introduced":"11.2.0","status":"affected"}],"ecosystem":"Bitnami","package":"pillow","purl":"pkg:bitnami/pillow","source":"bitnami"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/python-pillow/Pillow/pull/9041","tags":["evidence","exploit","issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/python-pillow/Pillow/commit/ef98b3510e3e4f14b547762764813d7e5ca3c5a4","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/11.3.0","tags":["article","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48379","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2025-61.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/python-pillow/Pillow","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-07-01T19:42:09.269Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-48379","url":"https://www.cve.org/CVERecord?id=CVE-2025-48379","licence":"CVE Terms of Use","modified":"2025-07-01T19:42:22.348Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xg8h-j46f-w952","url":"https://github.com/advisories/GHSA-xg8h-j46f-w952","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:26.431Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-48379","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48379","licence":"Public domain","modified":"2026-06-17T09:29:34.693Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-61","url":"https://osv.dev/vulnerability/PYSEC-2025-61","licence":"CC-BY-4.0","modified":"2025-07-07T14:12:46.226Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PILLOW-2025-48379","url":"https://osv.dev/vulnerability/BIT-PILLOW-2025-48379","licence":"Apache-2.0","modified":"2026-09-10T16:01:45.817Z"}],"updatedAt":"2026-11-25T22:59:00.458Z","epss":{"score":0.00338,"percentile":0.29227,"date":"2026-12-01T12:00:22.000Z"}}