{"id":"PSF-2020-2","summary":"Infinite loop in tarfile module while opening a crafted file","details":"In Lib/tarfile.py in Python through 3.8.3, an attacker is able to craft a TAR archive leading to an infinite loop when opened by tarfile.open, because _proc_pax lacks header validation.","aliases":["CVE-2019-20907"],"modified":"2026-05-18T05:46:39.221140704Z","published":"2020-07-13T00:00:00Z","database_specific":{"cwe_ids":[]},"references":[{"type":"REPORT","url":"https://bugs.python.org/issue39017"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/python/cpython","events":[{"introduced":"0"},{"fixed":"47a2955589bdb1a114d271496ff803ad73f954b8"},{"fixed":"5a8d121a1f3ef5ad7c105ee378cc79a3eac0c7d4"},{"fixed":"79c6b602efc9a906c8496f3d5f4d54c54b48fa06"},{"fixed":"c55479556db015f48fc8bbca17f64d3e65598559"},{"fixed":"cac9ca8ed99bd98f4c0dcd1913a146192bf5ee84"},{"fixed":"f3232294ee695492f43d424cc6969d018d49861d"}]}],"versions":["v3.7.8","v3.6.11","v3.6.11rc1","v3.7.8rc1","v3.9.0b3","v3.9.0b1","v3.8.3","v3.8.3rc1","v3.7.7rc1","v3.9.0a2","v3.6.10","v3.6.10rc1","v3.7.6rc1","v3.5.9","v3.5.8","v3.5.8rc2","v3.5.8rc1","v3.8.0rc1","v3.6.9","v3.6.9rc1","v3.7.3rc1","v3.5.7","v3.5.7rc1","v3.6.8","v3.7.2rc1","v3.6.8rc1","v3.5.6","v3.5.6rc1","v3.7.0rc1","v3.6.6rc1","v3.7.0b5","v3.7.0b4","v3.7.0b3","v3.7.0b2","v3.5.5","v3.5.5rc1","v3.7.0b1","v3.7.0a2","v3.5.4","v3.5.4rc1","v3.6.2rc1","v3.5.3","v3.5.3rc1","v3.6.0rc1","v3.6.0b4","v3.6.0b3","v3.6.0b1","v3.6.0a3","v3.5.2","v3.5.2rc1","v3.5.1rc1","v3.5.0rc3","v3.5.0rc2","v3.5.0rc1","v3.5.0b4","v3.5.0b3","v3.5.0b1","v3.5.0a4","v3.5.0a3","v3.5.0a2","v3.5.0a1","v3.4.0b3","v3.4.0b2","v3.4.0b1","v3.4.0a4","v3.4.0a3","v3.4.0a2","v3.4.0a1","v3.3.0rc3","v3.3.0rc2","v3.3.0rc1","v3.3.0b2","v3.3.0b1","v3.3.0a4","v3.3.0a3","v3.3.0a2","v3.2rc3","v3.2rc2","v3.2rc1","v3.2b2","v3.2b1","v3.2a4","v3.2a3","v3.2a2","v3.2a1","v3.1","v3.1rc2","v3.1rc1","v3.1b1","v3.1a2","v3.1a1","v3.0rc3","v3.0rc2","v3.0rc1","v3.0b3","v3.0b2","v3.0b1","v3.0a5","v3.0a4","v3.0a3","v3.0a2","v3.0a1","v2.4","v2.4c1","v2.4b2","v2.4b1","v2.4a3","v2.4a2","v2.4a1","v2.3c2","v2.3c1","v2.2a3","v2.1","v2.1c2","v2.1c1","v2.1b2","v2.1b1","v2.1a2","v2.1a1","v2.0","v2.0c1","v2.0b2","v2.0b1","v1.6a2","v1.6a1","v1.5.2","v1.5.2c1","v1.5.2b2","v1.5.2b1","v1.5.2a2","v1.5.2a1","v1.5.1","v1.5","v1.5b2","v1.5b1","v1.5a4","v1.5a3","v1.5a2","v1.5a1","v1.4","v1.4b3","v1.4b2","v1.4b1","v1.3","v1.3b1","v1.2","v1.2b4","v1.2b3","v1.2b2","v1.2b1","v1.1.1","v1.1","v1.0.2","v1.0.1","v0.9.9","v0.9.8"],"database_specific":{"source":"https://github.com/psf/advisory-database/blob/main/advisories/python/PSF-2020-2.json"}}],"schema_version":"1.7.5"}