CVE-2025-50817
JSON

5.4medium

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.

Severity
5.4medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.65% (higher than 46% of CVEs)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-xqrq-4mgf-ff32

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
future (PyPI)from 0.14.0GitHub Advisory Database

All scores

CISA-ADP5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P

Classification

CWE-22CWE-77

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

Withdrawn Advisory

This advisory has been withdrawn because it describes a documented feature of Python’s import system in the handling of sys.path. For more information, see https://github.com/PythonCharmers/python-future/issues/650.

Original 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.

NVD (es)

Una vulnerabilidad en el módulo Python-Future 1.0.0 permite la ejecución de código arbitrario mediante la importación involuntaria de un archivo llamado test.py. Al cargar el módulo, este importa automáticamente test.py, si está presente en el mismo directorio o en sys.path. Este comportamiento puede ser explotado por un atacante que pueda escribir archivos en el servidor, lo que permite la ejecución de código arbitrario.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-50817 changed 2025-09-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-xqrq-4mgf-ff32 changed 2026-09-10CC-BY-4.0
NVDCVE-2025-50817 changed 2026-06-17Public domain