Description
pyzipper is a replacement for Python's zipfile that can read and write AES encrypted zip files. Prior to 0.4.0, a Python operator precedence bug in pyzipper/zipfile_aes.py caused the AE-2 format to never be automatically selected during encryption, causing encrypted entries to be written in AE-1 format and exposing the plaintext CRC32 checksum in the ZIP header and, for unseekable zip archives, in the datadescripter section, allowing an attacker who possesses the archive to brute-force candidate plaintexts for small or low-entropy files by comparing CRC32 values. This issue is fixed in version 0.4.0.
Severity (CVSS)
| Base score | 6.2 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Provided by | CNA |
Weaknesses
- CWE-480 — CWE-480: Use of Incorrect Operator
Affected products
| Vendor | Product | Versions |
|---|---|---|
| danifus | pyzipper | < 0.4.0 |
References
- https://github.com/danifus/pyzipper/security/advisories/GHSA-crqm-m339-7m2p (x_refsource_CONFIRM)
- https://github.com/danifus/pyzipper/commit/93ce88e7dfd1635443197dab3fb8d477cff579ae (x_refsource_MISC)
- https://github.com/danifus/pyzipper/releases/tag/v0.4.0 (x_refsource_MISC)
Generated from the official CVE List on 18 Jul 2026 07:00 UTC.