CVE-2022-44900 py7zr directory traversal vulnerability

Critical 9.1 Published Updated

Attackers can write arbitrary files to the filesystem by extracting a crafted 7z archive using the py7zr library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-44900?

CVE-2022-44900 is a critical path traversal vulnerability in n/a, published on 6 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2022-44900?

3 open source packages ship an affected version, including py7zr. It affects 1 product.

PackageAffectedFixed in
py7zr PyPIAll versions0.20.1
py7zr PyPIAll versions0.20.1
py7zr PyPIAll versions0.20.1
Linux distribution packages (1)
python-py7zr openSUSE:TumbleweedAll versions0.20.8-2.6

Products include Py7zr Project Py7zr.

How do I fix CVE-2022-44900?

Upgrade py7zr to 0.20.1 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-44900 being exploited?

There is no known exploitation of CVE-2022-44900 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as DEBIAN-CVE-2022-44900, DSA-5652-1, GHSA-m8xw-9x5x-6vh3, PYSEC-2022-42998, UBUNTU-CVE-2022-44900, USN-7030-1 and 2 more.

Is CVE-2022-44900 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free