CVE-2025-50817: Python-Future · Command Injection
Source CVE Database V5
Not known to be exploited · CVSS 5.4 Medium.
Data as of 26 Oct 2026, 12:55 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 24% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
To mitigate this vulnerability effectively, European organizations should implement the following specific measures: 1) Enforce strict file system permissions to prevent untrusted users or processes from writing files to directories included in Python's sys.path, especially those containing python-future. 2) Review and harden the Python application's environment by minimizing directories in sys.path to only trusted locations, avoiding inclusion of writable or user-controlled directories. 3) Employ application whitelisting and integrity monitoring to detect unauthorized creation or modification of files such as test.py in relevant directories. 4) Conduct code audits and dependency reviews to understand where python-future is used and assess the risk exposure. 5) Educate developers and system administrators about Python's import mechanics and the security implications of module loading behaviors. 6) Where feasible, isolate Python applications in containers or sandboxes with restricted filesystem access to limit the impact of any arbitrary code execution. 7) Monitor logs and alerts for suspicious file creation or import activity related to test.py or similar files. 8) Stay updated with vendor advisories or community updates in case patches or mitigations become available. These targeted actions go beyond generic advice by focusing on controlling the environment and filesystem permissions that enable exploitation of this specific import behavior.
Description
A vulnerability in the Python-Future 1.0.0 module allows for arbitrary code execution via the unintended import of a file named test.py. When the module is loaded, it automatically imports test.py, if present in the same directory or in the sys.path. This behavior can be exploited by an attacker who has the ability to write files to the server, allowing the execution of arbitrary code. NOTE: Multiple third parties have disputed this issue and stated that it is not a security flaw in python-future and is a documented feature of Python’s import system in the handling of sys.path.
References
- pypi.org/project/future/ (opens in a new tab)
- github.com/PythonCharmers/python-future (opens in a new tab)
- medium.com/@abcd_68700/cve-2025-50817-python-future-module-arbitrary-code-execution-via-unintended-import-of-test-py-f0818ea93cf4 (opens in a new tab)
- gist.github.com/fried/d2108a4932f3a22712dfc04598b5b8ce (opens in a new tab)