CVE-2026-95168
7.8 HIGHpublic exploit availablePublished 2026-10-20 · Updated 2026-10-21
AI risk analysis
- Summary
- A command injection flaw in The Fuck (nvbn/thefuck) v3.32 allows local attackers with low privileges to execute arbitrary code by manipulating Python import paths via the get_rules_import_paths function and Rule.from_path method.
- Exploitability
- Exploitation requires local access and a user-level account to craft malicious rule files in directories searched by The Fuck's import mechanism.
- Blast radius
- Successful exploitation grants full compromise of the affected user's context, enabling data theft, persistence, or lateral movement within that user's permissions.
- Detection
- Look for anomalous subprocess spawns from thefuck processes (e.g., python subprocess calls to unexpected binaries), or creation/modification of Python files in user-writable directories that The Fuck scans for rules (e.g., ~/.config/thefuck/rules/ or PYTHONPATH entries).
- Prioritized remediation
- Upgrade to The Fuck version 3.33 or later, which addresses the unsafe import path handling in Rule.from_path and get_rules_import_paths.
rcelocal-exploitpython-import-injectioncommand-injection
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
An issue in nvbn thefuck v.3.32 allows a local attacker to execute arbitrary code via the get_rules_import_paths in thefuck/corrector.py and Rule.from_path in thefuck/types.py
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Public exploit & PoC references
References
Data: NVD (public domain). Analysis: local $0 model. Defensive use only.