CVE-2023-37474 Path traversal in copyparty

High 7.5 Published Updated

An attacker can access files outside the web root via path traversal in the .cpr subfolder of the copyparty file server.

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

What is CVE-2023-37474?

CVE-2023-37474 is a high-severity path traversal vulnerability in 9001 copyparty, published on 14 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Copyparty is a portable file server. Versions prior to 1.8.2 are subject to a path traversal vulnerability detected in the `.cpr` subfolder. The Path Traversal attack technique allows an attacker access to files, directories, and commands that reside outside the web document root directory. This issue has been addressed in commit `043e3c7d` which has been included in release 1.8.2. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-22

Which versions are affected by CVE-2023-37474?

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

PackageAffectedFixed in
copyparty PyPIAll versions1.8.2
copyparty PyPIAll versions1.8.2
copyparty PyPIAll versions1.8.2

Products include 9001 Copyparty.

How do I fix CVE-2023-37474?

Upgrade copyparty to 1.8.2 or later.

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

Is CVE-2023-37474 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37474 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-pxfv-7rr3-2qjg, PYSEC-2023-127.

Is CVE-2023-37474 in your software?

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

Check your SBOMs for free