CVE-2025-50817
MEDIUM 5.4CVSS 3.1Withdrawn Advisory: Python-Future Module Arbitrary Code Execution via Unintended Import of test.py
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
- 14 Aug 2025
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-22CWE-77
- Also known as
- GHSA-xqrq-4mgf-ff32
- Sources
- NVDJSONOSV GHSA-xqrq-4mgf-ff32JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | future | >= 0.14.0 |
References
- https://gist.github.com/fried/d2108a4932f3a22712dfc04598b5b8ce · WEB
- 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://pypi.org/project/future/ · 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
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 14 Aug 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 14 Aug 2025)