title: Quoted zip-bomb protection for zipfile
description: An issue was found in the CPython `zipfile` module affecting versions 3.12.1, 3.11.7, 3.10.13, 3.9.18, and 3.8.18 and prior.
The zipfile module is vulnerable to “quoted-overlap” zip-bombs which exploit the zip format to create a zip-bomb with a high compression ratio. The fixed versions of CPython makes the zipfile module reject zip archives which overlap entries in the archive.
problem types: CWE-405
affected:
{
defaultStatus: unaffected
product: CPython
repo: https://github.com/python/cpython
vendor: Python Software Foundation
versions:
lessThanOrEqual: 3.12.1, status: affected, version: 3.12.0, versionType: python
lessThanOrEqual: 3.11.7, status: affected, version: 3.11.0, versionType: python
lessThanOrEqual: 3.10.13, status: affected, version: 3.10.0, versionType: python
lessThanOrEqual: 3.9.18, status: affected, version: 3.9.0, versionType: python
lessThanOrEqual: 3.8.18, status: affected, version: 0, versionType: python
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: LOCAL
availabilityImpact: HIGH
baseScore: 6.2
baseSeverity: MEDIUM
confidentialityImpact: NONE
integrityImpact: NONE
privilegesRequired: NONE
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
version: 3.1
]
format: CVSS
scenarios: GENERAL