# CVE-2025-50817: 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: Medium 5.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 46% of CVEs (2026-11-30)
- Published: 2025-08-14T00:00:00.000Z
- Modified: 2026-09-10T03:50:27.662Z
- Also known as: GHSA-xqrq-4mgf-ff32
- Weaknesses: CWE-22, CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- future (PyPI): from 0.14.0

## Every score

- CISA-ADP: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 High `CVSS: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`

## References

- <https://pypi.org/project/future/>
- <https://github.com/PythonCharmers/python-future> (package)
- <https://medium.com/@abcd_68700/cve-2025-50817-python-future-module-arbitrary-code-execution-via-unintended-import-of-test-py-f0818ea93cf4> (web)
- <https://gist.github.com/fried/d2108a4932f3a22712dfc04598b5b8ce> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-50817> (advisory)
- <https://github.com/PythonCharmers/python-future/issues/650#issuecomment-3251016598> (web)
- <https://github.com/PythonCharmers/python-future/blob/v1.0.0/src/future/standard_library/__init__.py#L491> (web)
- <https://pypi.org/project/future> (web)

## Sources

- CVE List: [CVE-2025-50817](https://www.cve.org/CVERecord?id=CVE-2025-50817), CVE Terms of Use, modified 2025-09-26
- GitHub Advisory Database: [GHSA-xqrq-4mgf-ff32](https://github.com/advisories/GHSA-xqrq-4mgf-ff32), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-50817](https://nvd.nist.gov/vuln/detail/CVE-2025-50817), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-50817 · Whole record: https://cve.day/CVE-2025-50817.json · Rebuilt by cve.day 2026-11-25T22:59:02.545Z
