Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. py7zr
  4. ›
  5. CVE-2026-55206

CVE-2026-55206: py7zr: O(n^2) algorithmic complexity DoS in PackInfo._read()

June 19, 2026

PackInfo._read() uses an O(n^2) cumulative sum pattern where numstreams is read directly from the archive header. A crafted .7z archive with a large numstreams value causes excessive CPU consumption during SevenZipFile.init() — no extraction is needed. A 50 KB archive takes ~7 seconds of CPU time.

References

  • github.com/advisories/GHSA-h4gh-22qq-72r7
  • github.com/miurahr/py7zr/releases/tag/v1.1.3
  • github.com/miurahr/py7zr/security/advisories/GHSA-h4gh-22qq-72r7
  • nvd.nist.gov/vuln/detail/CVE-2026-55206

Code Behaviors & Features

Detect and mitigate CVE-2026-55206 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.1.3

Fixed versions

  • 1.1.3

Solution

Upgrade to version 1.1.3 or above.

Impact 6.2 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-407: Inefficient Algorithmic Complexity

Source file

pypi/py7zr/CVE-2026-55206.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:13 +0000.