{"schemaVersion":3,"id":"CVE-2021-27922","aliases":["ALPINE-CVE-2021-27922","GHSA-3wvg-mj6g-m9cv","BIT-pillow-2021-27922","PYSEC-2021-41","UBUNTU-CVE-2021-27922","DEBIAN-CVE-2021-27922"],"status":"published","duplicateOf":null,"title":null,"description":"Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICNS container, and thus an attempted memory allocation can be very large.","dates":{"published":"2021-03-03T08:41:50.000Z","modified":"2025-08-15T04:38:49.550Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":8.7,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.04851,"percentile":0.91918,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.04851},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04851,"percentile":0.91918}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04851,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04851,"percentile":0.91918}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"}],"affected":[{"vendor":"alpine","product":"py3-pillow","name":"py3-pillow","label":"py3-pillow","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/py3-pillow","purlType":"apk","versions":[{"text":"< 8.1.2-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.1.2-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"pillow","name":"pillow","label":"pillow","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/pillow","purlType":"deb","versions":[{"text":"< 8.1.2-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.1.2-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"pillow","name":"pillow","label":"pillow","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/pillow","purlType":"deb","versions":[{"text":"< 3.1.2-0ubuntu1.6","noFixRecorded":false,"fixedIn":null},{"text":"< 5.1.0-1ubuntu0.5","noFixRecorded":false,"fixedIn":null},{"text":"< 7.0.0-4ubuntu0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.2-0ubuntu1.6 | < 5.1.0-1ubuntu0.5 | < 7.0.0-4ubuntu0.3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"pillow-python2","name":"pillow-python2","label":"pillow-python2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/pillow-python2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"32","noFixRecorded":false,"fixedIn":null},{"text":"33","noFixRecorded":false,"fixedIn":null},{"text":"34","noFixRecorded":false,"fixedIn":null}],"versionsText":"32 | 33 | 34","eol":{"isEol":true,"eolDate":"2021-05-25T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"32","label":"32","eolFrom":"2021-05-25T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"PyPI","product":"pillow","name":"pillow","label":"pillow","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/pillow","purlType":"pypi","versions":[{"text":"< 8.1.2","noFixRecorded":false,"fixedIn":null},{"text":"< 8.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.1.2 | < 8.1.1","eol":null,"hubHref":null},{"vendor":"python","product":"pillow","name":"pillow","label":"pillow","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 8.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.1.1","eol":null,"hubHref":"/vendor/python/pillow"}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","WEB"]},{"url":"https://security.gentoo.org/glsa/202107-33","label":"security.gentoo.org/glsa/202107-33","hostname":"security.gentoo.org","tags":["Vendor Advisory","WEB","Third Party Advisory"]},{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.2.html","label":"pillow.readthedocs.io/en/stable/releasenotes/8.1.2.html","hostname":"pillow.readthedocs.io","tags":["WEB"]},{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","label":"pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","hostname":"pillow.readthedocs.io","tags":["X Refsource MISC","X Transferred","WEB","REPORT","Release Notes","Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","X Transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","X Transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA","X Transferred"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-27922","label":"security.alpinelinux.org/vuln/CVE-2021-27922","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27922","label":"nvd.nist.gov/vuln/detail/CVE-2021-27922","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/python-pillow/Pillow/commit/756fff33128a0b643d10518a26ad04b726dd8973","label":"github.com/python-pillow/Pillow/commit/756fff33128a0b643d10518a26ad04b726dd8973","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-41.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-41.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/python-pillow/Pillow","label":"github.com/python-pillow/Pillow","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S7G44Z33J4BNI2DPDROHWGVG2U7ZH5JU","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-3wvg-mj6g-m9cv","label":"github.com/advisories/GHSA-3wvg-mj6g-m9cv","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-27922","label":"ubuntu.com/security/CVE-2021-27922","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4763-1","label":"ubuntu.com/security/notices/USN-4763-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-27922","label":"www.cve.org/CVERecord?id=CVE-2021-27922","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-27922","label":"security-tracker.debian.org/tracker/CVE-2021-27922","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2021:1134-1","RHSA-2021:4149","SUSE-SU-2021:1938-1","SUSE-SU-2021:1939-1","SUSE-SU-2021:1940-1","SUSE-SU-2024:1673-1","SUSE-SU-2024:1673-2","USN-4763-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:1134-1","SUSE-SU-2021:1938-1","SUSE-SU-2021:1939-1","SUSE-SU-2021:1940-1","SUSE-SU-2024:1673-1","SUSE-SU-2024:1673-2","USN-4763-1"]},"timeline":[{"kind":"published","date":"2021-03-03T08:41:50.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-08-15T04:38:49.550Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T05:28:20.971Z","stale":false,"partial":false}}