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

- Severity: Critical 9.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.85%, higher than 79% of CVEs (2026-12-01)
- Published: 2021-06-10T10:07:03.000Z
- Modified: 2026-06-17T03:55:43.560Z
- Also known as: GHSA-8wwf-2644-f8x4, PYSEC-2021-97
- Weaknesses: CWE-22
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- thefuck (PyPI): before 3.31; before e343c577cd7da4d304b837d4a07ab4df1e023092
- the_fuck_project the_fuck: before 3.31
- fedoraproject fedora: 34; 35

## Every score

- GitHub: CVSS:3.1 9.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:P`

## References

- <https://github.com/nvbn/thefuck/releases/tag/3.31> (release-notes, third-party-advisory, web)
- <https://vuln.ryotak.me/advisories/48> (advisory, third-party-advisory, web)
- <https://github.com/nvbn/thefuck/commit/e343c577cd7da4d304b837d4a07ab4df1e023092> (fix, patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4MEDDLBFVRUQHPYIBJ4MFM3M4NUJUXL5/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YA6UNQSOY6M3NJDZLS6YJXTS4WGDMEEJ/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-34363> (advisory)
- <https://github.com/nvbn/thefuck> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/thefuck/PYSEC-2021-97.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4MEDDLBFVRUQHPYIBJ4MFM3M4NUJUXL5> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YA6UNQSOY6M3NJDZLS6YJXTS4WGDMEEJ> (web)
- <https://github.com/advisories/GHSA-8wwf-2644-f8x4> (advisory)

## Sources

- CVE List: [CVE-2021-34363](https://www.cve.org/CVERecord?id=CVE-2021-34363), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-8wwf-2644-f8x4](https://github.com/advisories/GHSA-8wwf-2644-f8x4), CC-BY-4.0, modified 2024-11-13
- NVD: [CVE-2021-34363](https://nvd.nist.gov/vuln/detail/CVE-2021-34363), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-97](https://osv.dev/vulnerability/PYSEC-2021-97), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-34363 · Whole record: https://cve.day/CVE-2021-34363.json · Rebuilt by cve.day 2026-11-25T22:58:01.767Z
