CVE-2021-34363:
The Fuck Arbitrary File Deletion via Path Traversal
9.1
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
6/15/2021
Updated
11/13/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
thefuck | pip | < 3.31 | 3.31 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from archive processing functions that lacked path validation. The GitHub patch shows both dirty_untar.py and dirty_unzip.py had security checks added to their side_effect functions (os.path.abspath(file).startswith(os.getcwd())), confirming these were the vulnerable entry points. These functions handled archive extraction cleanup but didn't sanitize file paths, enabling traversal attacks when processing malicious archives with '../' paths.