{"id":"CVE-2021-25290","aliases":["CVE-2021-25290","GHSA-8xjq-8fcg-g5hw","BIT-PILLOW-2021-25290","PYSEC-2021-36"],"related":[],"kind":"vulnerability","state":"published","title":"Out-of-bounds Write in Pillow","summary":"An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.","source":"cvelist"},{"lang":"es","text":"Se detectó un problema en Pillow versiones anteriores a 8.1.1.&#xa0;En el archivo TiffDecode.c, se presenta una memoria de desplazamiento negativo con un tamaño no válido","source":"nvd"}],"published":"2021-03-19T03:29:57.000Z","modified":"2026-09-08T08:48:18.467Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"8.1.1"}],"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"8.1.1"}],"vendor":"python","product":"pillow","cpe":"cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"8.1.1"}],"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"8.1.1"}],"ecosystem":"Bitnami","package":"pillow","purl":"pkg:bitnami/pillow","source":"bitnami"}],"references":[{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","tags":["advisory","release-notes","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://security.gentoo.org/glsa/202107-33","tags":["advisory","third-party-advisory","vendor-advisory","web","x-refsource-gentoo","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/07/msg00018.html","tags":["advisory","mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25290","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/python-pillow/Pillow/commit/86f02f7c70862a0954bfe8133736d352db978eaa","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/python-pillow/Pillow/commit/e25be1e33dc526bfd1094bc778a54d8e29bf66c9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-8xjq-8fcg-g5hw","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-36.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/python-pillow/Pillow","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-25290","url":"https://www.cve.org/CVERecord?id=CVE-2021-25290","licence":"CVE Terms of Use","modified":"2024-08-03T19:56:11.089Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8xjq-8fcg-g5hw","url":"https://github.com/advisories/GHSA-8xjq-8fcg-g5hw","licence":"CC-BY-4.0","modified":"2024-10-08T13:23:21.252Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-25290","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25290","licence":"Public domain","modified":"2026-06-17T03:41:46.527Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-36","url":"https://osv.dev/vulnerability/PYSEC-2021-36","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:57.594Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PILLOW-2021-25290","url":"https://osv.dev/vulnerability/BIT-PILLOW-2021-25290","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.467Z"}],"updatedAt":"2026-11-25T22:58:00.341Z","epss":{"score":0.02372,"percentile":0.84305,"date":"2026-12-01T12:00:22.000Z"}}