Miurahr py7zr
py7zr: O(n^2) algorithmic complexity DoS in PackInfo._read()
py7zr is a Python-based library and utility to support 7zip archive compression, decompression, encryption and decryption. Prior to 1.1.3, PackInfo._read() in archiveinfo.py used an O(n^2) cumulative sum pattern for attacker-controlled numstreams values parsed from archive headers, allowing a crafted .7z archive to cause excessive CPU consumption during SevenZipFile.init() before extraction. This issue is fixed in version 1.1.3.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.7high · scored by CNA · CWE-407
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
miurahr py7zr
- < 1.1.3
Fixed in 1.1.3
Mitigation
Upgrade py7zr to 1.1.3 or later.
References
- Vendor advisory github.com/miurahr/py7zr/security/advisories/G…
- Patch github.com/miurahr/py7zr/commit/d7aa3a197d15c7…
- Release notes github.com/miurahr/py7zr/releases/tag/v1.1.3
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.