Skip to content
OpenAdvisories
Critical · 9.1 Public exploit CVE-2022-44900 EUVD-2022-0208GHSA-m8xw-9x5x-6vh3PYSEC-2022-42998

py7zr directory traversal vulnerability

Published Dec 6, 2022 · Updated Apr 23, 2025 · Assigned by mitre

Description

A directory traversal vulnerability in the SevenZipFile.extractall() function of the python library py7zr v0.20.0 and earlier allows attackers to write arbitrary files via extracting a crafted 7z file.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 py7zr 0.11.3+dfsg-5 —
Debian 13 py7zr 0.11.3+dfsg-5 —
Debian 12 py7zr 0.11.3+dfsg-5 —
Debian 11 py7zr 0.11.3+dfsg-1+deb11u1 DSA-5652-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS py7zr 0.11.3+dfsg-4ubuntu0.1 USN-7030-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-py7zr 0.20.8-2.6 openSUSE-SU-2025:15101-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI py7zr < 0.20.1 0.20.1 GHSA-m8xw-9x5x-6vh3

Advisories 3

References