Vulnerability 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 Score
MEDIUM
Related Weaknesses (CWE)
References
- https://gist.github.com/fried/d2108a4932f3a22712dfc04598b5b8ce
- https://github.com/PythonCharmers/python-future
- https://medium.com/@abcd_68700/cve-2025-50817-python-future-module-arbitrary-cod
- https://pypi.org/project/future/
FAQ
What is CVE-2025-50817?
CVE-2025-50817 is a vulnerability with a CVSS score of 5.4 (MEDIUM). 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...
How severe is CVE-2025-50817?
CVE-2025-50817 has been rated MEDIUM with a CVSS base score of 5.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-50817?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.