{"id":"CVE-2020-5310","aliases":["CVE-2020-5310","GHSA-vcqg-3p29-xw73","BIT-PILLOW-2020-5310","PYSEC-2020-81"],"related":[],"kind":"vulnerability","state":"published","title":"Integer overflow in Pillow","summary":"libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.","source":"cvelist"},{"lang":"en","text":"`libImaging/TiffDecode.c` in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El archivo libImaging/TiffDecode.c en Pillow versiones anteriores a la versión 6.2.2, tiene un desbordamiento de enteros de la decodificación TIFF, relacionado con realloc.","source":"nvd"}],"published":"2020-01-03T00:52:55.000Z","modified":"2026-09-08T08:47:35.897Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.2.2"}],"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.2.2"}],"vendor":"python","product":"pillow","cpe":"cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"14.04"},{"status":"affected","version":"16.04"},{"status":"affected","version":"18.04"},{"status":"affected","version":"19.10"}],"vendor":"canonical","product":"ubuntu_linux","cpe":"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"30"},{"status":"affected","version":"31"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"4e2def2539ec13e53a82e06c4b3daf00454100c4"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.2.2"}],"ecosystem":"PyPI","package":"pillow","purl":"pkg:pypi/pillow","repo":"https://github.com/python-pillow/Pillow","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.2.2"}],"ecosystem":"Bitnami","package":"pillow","purl":"pkg:bitnami/pillow","source":"bitnami"}],"references":[{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html","tags":["advisory","release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/python-pillow/Pillow/commit/4e2def2539ec13e53a82e06c4b3daf00454100c4","tags":["advisory","fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://usn.ubuntu.com/4272-1/","tags":["advisory","third-party-advisory","vendor-advisory","web","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5310","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/advisories/GHSA-vcqg-3p29-xw73","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2020-81.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-db/blob/7872b0a91b4d980f749e6d75a81f8cc1af32829f/vulns/pillow/PYSEC-2020-81.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@lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P","tags":["web"],"sources":["ghsa"]},{"url":"https://usn.ubuntu.com/4272-1","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A/","tags":["web"],"sources":["pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/","tags":["web"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-5310","url":"https://www.cve.org/CVERecord?id=CVE-2020-5310","licence":"CVE Terms of Use","modified":"2024-08-04T08:22:09.147Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vcqg-3p29-xw73","url":"https://github.com/advisories/GHSA-vcqg-3p29-xw73","licence":"CC-BY-4.0","modified":"2024-10-08T13:22:46.929Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-5310","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5310","licence":"Public domain","modified":"2026-06-17T03:21:15.233Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-81","url":"https://osv.dev/vulnerability/PYSEC-2020-81","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:36.189Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PILLOW-2020-5310","url":"https://osv.dev/vulnerability/BIT-PILLOW-2020-5310","licence":"Apache-2.0","modified":"2026-09-08T08:47:35.897Z"}],"updatedAt":"2026-11-25T22:57:50.480Z","epss":{"score":0.01975,"percentile":0.81074,"date":"2026-12-01T12:00:22.000Z"}}