CVE-2025-50817
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-08-14

Last updated on: 2025-09-26

Assigner: MITRE

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-08-14
Last Modified
2025-09-26
Generated
2026-05-27
AI Q&A
2025-08-14
EPSS Evaluated
2026-05-25
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
python-future python-future 1.0.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-77 The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability in the Python-Future 1.0.0 module allows an attacker to execute arbitrary code by exploiting the module's behavior of automatically importing a file named test.py if it exists in the same directory or in the sys.path. If an attacker can write a malicious test.py file to the server, it will be imported and executed when the module loads.


How can this vulnerability impact me? :

If exploited, this vulnerability can allow an attacker to run arbitrary code on your server, potentially leading to unauthorized access, data theft, system compromise, or further attacks within your environment.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, ensure that no untrusted test.py files exist in directories where the Python-Future 1.0.0 module is used or in the sys.path. Restrict write permissions to these directories to prevent attackers from placing malicious test.py files. Additionally, consider updating or patching the module if a fixed version is available or avoid using Python-Future 1.0.0 until the issue is resolved.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart