{"id":"CVE-2020-5310","published":"2020-01-03T00:52:55Z","modified":"2024-08-04T08:22:09Z","title":"libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc","vendor":null,"product":null,"tier":"tail","description":{"text":"libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01975,"percentile":0.80981,"provenance":"source"},"cwes":[],"references":[{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/4e2def2539ec13e53a82e06c4b3daf00454100c4","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://usn.ubuntu.com/4272-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":16.2}]},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":["<6.2.2"],"patched":["6.2.2"],"from":["GHSA-vcqg-3p29-xw73","PYSEC-2020-81"],"provenance":"source"}],"summary":{"text":"The flaw is an integer overflow in the TIFF decoding code of libImaging/TiffDecode.c within the Pillow imaging library, specifically in how memory is reallocated during decoding. The provided record does not specify the attack conditions, so the required network access, authentication, user interaction, or configuration for exploitation cannot be confirmed from the available information.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:47Z"},"euvd":{"id":"EUVD-2020-0134","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pillow-cve-2020-5310","children":[{"from":"CVE-2020-5310","to":"CVE-2020-10379","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libImaging/TiffDecode.c"],"commits":["https://github.com/python-pillow/Pillow/commit/46f4a349b88915787fea3fb91348bb1665831bbb","https://github.com/python-pillow/Pillow/commit/4e2def2539ec13e53a82e06c4b3daf00454100c4"],"basis":"shared function","functions":["ImagingLibTiffDecode"]},{"kind":"similar","provenance":"machine","score":0.66,"basis":"same package + description similarity"}]},{"from":"CVE-2020-5310","to":"CVE-2020-35654","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libImaging/TiffDecode.c"],"commits":["https://github.com/python-pillow/Pillow/commit/eb8c1206d6b170d4e798a00db7432e023853da5c","https://github.com/python-pillow/Pillow/commit/4e2def2539ec13e53a82e06c4b3daf00454100c4"],"basis":"shared function","functions":["ImagingLibTiffDecode"]}]},{"from":"CVE-2020-5310","to":"CVE-2021-25291","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libImaging/TiffDecode.c"],"commits":["https://github.com/python-pillow/Pillow/commit/4e2def2539ec13e53a82e06c4b3daf00454100c4","https://github.com/python-pillow/Pillow/commit/8b8076bdcb3815be0ef0d279651d8d1342b8ea61","https://github.com/python-pillow/Pillow/commit/cbdce6c5d054fccaf4af34b47f212355c64ace7a"],"basis":"shared function","functions":["ImagingLibTiffDecode"]}]}]}}