{"id":"CVE-2021-23437","aliases":["CVE-2021-23437","GHSA-98vv-pw6r-q6q4","BIT-PILLOW-2021-23437","PYSEC-2021-317","SNYK-PYTHON-PILLOW-1319443"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service (ReDoS)","summary":"The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.","source":"cvelist"},{"lang":"es","text":"El paquete pillow versiones desde la versión 5.2.0  y anteriores a 8.3.2, son vulnerables a una Denegación de Servicio por Expresión Regular (ReDoS) por medio de la función getrgb","source":"nvd"},{"lang":"en","text":"The package pillow from 0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.","format":"markdown","source":"pysec"}],"published":"2021-09-03T16:10:10.293Z","modified":"2026-09-08T08:48:18.465Z","severity":{"scorer":"snyk","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":"snyk","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: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","CWE-400"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"},{"type":"custom","introduced":"unspecified","fixed":"8.3.2","status":"affected"}],"product":"Pillow","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.2.0","status":"affected","fixed":"8.3.2"}],"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.2.0","fixed":"8.3.2"}],"vendor":"python","product":"pillow","cpe":"cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"},{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"9e08eb8f78fdfd2f476e1b20b7cf38683754866b"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"8.3.2"}],"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","repo":"https://github.com/python-pillow/Pillow","source":"pysec"},{"ranges":[{"type":"semver","introduced":"5.2.0","status":"affected","fixed":"8.3.2"}],"ecosystem":"Bitnami","package":"pillow","purl":"pkg:bitnami/pillow","source":"bitnami"}],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-PILLOW-1319443","tags":["advisory","exploit","patch","release-notes","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.3.2.html","tags":["advisory","release-notes","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/python-pillow/Pillow/commit/9e08eb8f78fdfd2f476e1b20b7cf38683754866b","tags":["advisory","fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VKRCL7KKAKOXCVD7M6WC5OKFGL4L3SJT/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RNSG6VFXTAROGF7ACYLMAZNQV4EJ6I2C/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202211-10","tags":["advisory","third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00021.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23437","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/advisories/GHSA-98vv-pw6r-q6q4","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-317.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/python-pillow/Pillow","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RNSG6VFXTAROGF7ACYLMAZNQV4EJ6I2C","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VKRCL7KKAKOXCVD7M6WC5OKFGL4L3SJT","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RNSG6VFXTAROGF7ACYLMAZNQV4EJ6I2C","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VKRCL7KKAKOXCVD7M6WC5OKFGL4L3SJT","tags":["web"],"sources":["ghsa"]}],"credits":["Liyuan Chen"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23437","url":"https://www.cve.org/CVERecord?id=CVE-2021-23437","licence":"CVE Terms of Use","modified":"2024-09-16T20:47:41.102Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-98vv-pw6r-q6q4","url":"https://github.com/advisories/GHSA-98vv-pw6r-q6q4","licence":"CC-BY-4.0","modified":"2024-10-09T21:08:55.452Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23437","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23437","licence":"Public domain","modified":"2026-06-17T03:38:45.710Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-317","url":"https://osv.dev/vulnerability/PYSEC-2021-317","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:56.992Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PILLOW-2021-23437","url":"https://osv.dev/vulnerability/BIT-PILLOW-2021-23437","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.465Z"}],"updatedAt":"2026-11-25T22:58:03.643Z","epss":{"score":0.0324,"percentile":0.8862,"date":"2026-12-01T12:00:22.000Z"}}