Home

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.

PUBLISHED Reserved 2025-06-16 | Published 2025-08-14 | Updated 2025-09-26 | Assigner mitre

References

pypi.org/project/future/

github.com/PythonCharmers/python-future

medium.com/...-via-unintended-import-of-test-py-f0818ea93cf4

gist.github.com/fried/d2108a4932f3a22712dfc04598b5b8ce

cve.org (CVE-2025-50817)

nvd.nist.gov (CVE-2025-50817)

Download JSON