CVE-2021-34363 The Fuck Arbitrary File Deletion via Path Traversal

Critical 9.1 Published Updated

The Fuck Python package allows arbitrary file deletion via path traversal in the undo archive operation feature.

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

What is CVE-2021-34363?

CVE-2021-34363 is a critical path traversal vulnerability in Fedoraproject Fedora, published on 10 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The thefuck (aka The Fuck) package before 3.31 for Python allows Path Traversal that leads to arbitrary file deletion via the "undo archive operation" feature.

Weakness: CWE-22

Which versions are affected by CVE-2021-34363?

3 open source packages ship an affected version, including thefuck. It affects 2 products.

PackageAffectedFixed in
thefuck PyPIAll versions3.31
thefuck PyPIAll versions3.31
thefuck PyPIAll versions3.31

Products include Fedoraproject Fedora, The Fuck Project the Fuck.

How do I fix CVE-2021-34363?

Upgrade thefuck to 3.31 or later.

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

Is CVE-2021-34363 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-34363, GHSA-8wwf-2644-f8x4, PYSEC-2021-97, UBUNTU-CVE-2021-34363.

Is CVE-2021-34363 in your software?

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

Check your SBOMs for free