{"id":"CVE-2021-25291","aliases":["CVE-2021-25291","GHSA-mvg9-xffr-p774","BIT-PILLOW-2021-25291","PYSEC-2021-37"],"related":[],"kind":"vulnerability","state":"published","title":"Out of bounds read in Pillow","summary":"An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.","source":"cvelist"},{"lang":"en","text":"An issue was discovered in Pillow before 8.2.0. In `TiffDecode.c`, there is an out-of-bounds read in `TiffreadRGBATile` via invalid tile boundaries.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se detectó un problema en Pillow versiones anteriores a 8.1.1.&#xa0;En el archivo TiffDecode.c, se presenta una lectura fuera de límites en la función TiffreadRGBATile por medio de límites de mosaico no válidos","source":"nvd"}],"published":"2021-03-19T03:30:09.000Z","modified":"2026-09-08T08:48:18.470Z","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-125"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"8.2.0"}],"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":[{"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://nvd.nist.gov/vuln/detail/CVE-2021-25291","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/python-pillow/Pillow/commit/8b8076bdcb3815be0ef0d279651d8d1342b8ea61","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/python-pillow/Pillow/commit/cbdce6c5d054fccaf4af34b47f212355c64ace7a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-mvg9-xffr-p774","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-37.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-25291","url":"https://www.cve.org/CVERecord?id=CVE-2021-25291","licence":"CVE Terms of Use","modified":"2024-08-03T19:56:11.068Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mvg9-xffr-p774","url":"https://github.com/advisories/GHSA-mvg9-xffr-p774","licence":"CC-BY-4.0","modified":"2024-10-09T21:25:39.006Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-25291","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25291","licence":"Public domain","modified":"2026-06-17T03:41:46.643Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-37","url":"https://osv.dev/vulnerability/PYSEC-2021-37","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:57.655Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PILLOW-2021-25291","url":"https://osv.dev/vulnerability/BIT-PILLOW-2021-25291","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.470Z"}],"updatedAt":"2026-11-25T22:58:00.341Z","epss":{"score":0.01398,"percentile":0.73248,"date":"2026-12-01T12:00:22.000Z"}}