CVE-2025-50817
Withdrawn 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
5.4
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.
- Record
CVE-2025-50817- 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 - Weakness
- CWE-77
- Updated
- 2026-11-02
EUVDEUVD-2025-24871
5.4
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.
- Record
EUVD-2025-24871- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-xqrq-4mgf-ff32
7.3
Withdrawn Advisory: Python-Future Module Arbitrary Code Execution via Unintended Import of test.py
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.
- Record
GHSA-xqrq-4mgf-ff32- CVSS 4.0
- 7.3 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 - Weakness
- CWE-22
- Updated
- 2026-11-02
NVD
5.4
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.
- Record
CVE-2025-50817- 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 - Weakness
- CWE-77
- Updated
- 2026-11-02
OSVGHSA-xqrq-4mgf-ff32
7.3
Withdrawn Advisory: Python-Future Module Arbitrary Code Execution via Unintended Import of test.py
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.
- Record
GHSA-xqrq-4mgf-ff32- CVSS 4.0
- 7.3 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 - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2025-50817
5.4
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.
- Record
UBUNTU-CVE-2025-50817- 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 - Updated
- 2026-11-02
Show 5 moreShow less
OSVROOT-APP-PYPI-CVE-2025-50817 No score
CVE-2025-50817 in future - Patched by Root
Root has patched CVE-2025-50817 in the future package for Root:PyPI. Multiple fixed versions available.
- Record
ROOT-APP-PYPI-CVE-2025-50817- Updated
- 2026-11-02
OSVSUSE-SU-2025:03028-1 No score
Security update for python-future
This update for python-future fixes the following issues:
- CVE-2025-50817: Fixed arbitrary code execution via the automatic import of file test.py (bsc#1248124)
- Record
SUSE-SU-2025:03028-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:03029-1 No score
Security update for python-future
This update for python-future fixes the following issues:
- CVE-2025-50817: Fixed arbitrary code execution via the automatic import of file test.py (bsc#1248124)
- Record
SUSE-SU-2025:03029-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:03038-1 No score
Security update for python-future
This update for python-future fixes the following issues:
- CVE-2025-50817: Fixed arbitrary code execution via the automatic import of file test.py (bsc#1248124)
- Record
SUSE-SU-2025:03038-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:03049-1 No score
Security update for python-future
This update for python-future fixes the following issues:
- CVE-2025-50817: Fixed arbitrary code execution via the automatic import of file test.py (bsc#1248124)
- Record
SUSE-SU-2025:03049-1- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
futureRoot:PyPI |
before 1.0.0+aikido.1 | 1.0.0+aikido.1 |
python-futureSUSE:Linux Enterprise Server 12 SP5-LTSS |
before 0.15.2-3.8.1 | 0.15.2-3.8.1 |
python-futureSUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 |
before 0.15.2-3.8.1 | 0.15.2-3.8.1 |
python-futureSUSE:Linux Enterprise Module for Public Cloud 12 |
before 0.15.2-3.6.1 | 0.15.2-3.6.1 |
python-futureSUSE:Linux Enterprise Module for Python 3 15 SP6 |
before 0.18.3-150400.6.6.1 | 0.18.3-150400.6.6.1 |
python-futureSUSE:Linux Enterprise Module for Python 3 15 SP7 |
before 0.18.3-150400.6.6.1 | 0.18.3-150400.6.6.1 |
python-futureSUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS |
before 0.18.3-150400.6.6.1 | 0.18.3-150400.6.6.1 |
python-futureSUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS |
before 0.18.3-150400.6.6.1 | 0.18.3-150400.6.6.1 |
python-futureSUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS |
before 0.18.3-150400.6.6.1 | 0.18.3-150400.6.6.1 |
python-futureSUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS |
before 0.18.3-150400.6.6.1 | 0.18.3-150400.6.6.1 |
Show 26 moreShow less
| Package | Affected | Fixed |
|---|---|---|
python-futureSUSE:Linux Enterprise Server 15 SP4-LTSS |
before 0.18.3-150400.6.6.1 | 0.18.3-150400.6.6.1 |
python-futureSUSE:Linux Enterprise Server 15 SP5-LTSS |
before 0.18.3-150400.6.6.1 | 0.18.3-150400.6.6.1 |
python-futureSUSE:Linux Enterprise Server for SAP Applications 15 SP4 |
before 0.18.3-150400.6.6.1 | 0.18.3-150400.6.6.1 |
python-futureSUSE:Linux Enterprise Server for SAP Applications 15 SP5 |
before 0.18.3-150400.6.6.1 | 0.18.3-150400.6.6.1 |
python-futureopenSUSE:Leap 15.6 |
before 0.18.3-150400.6.6.1 | 0.18.3-150400.6.6.1 |
python-futureSUSE:Linux Enterprise Micro 5.3 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise Micro 5.4 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise Micro 5.5 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise Module for Basesystem 15 SP6 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise Module for Basesystem 15 SP7 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise Server 15 SP3-LTSS |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise Server 15 SP4-LTSS |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise Server 15 SP5-LTSS |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise Server for SAP Applications 15 SP3 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise Server for SAP Applications 15 SP4 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise Server for SAP Applications 15 SP5 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Manager Proxy LTS 4.3 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Manager Server LTS 4.3 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise Micro 5.1 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Linux Enterprise Micro 5.2 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
python-futureSUSE:Enterprise Storage 7.1 |
before 0.18.2-150300.3.6.1 | 0.18.2-150300.3.6.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-50817 is a medium vulnerability (CVSS 5.4) in future, published August 14, 2025. Its validity is disputed. EPSS puts the chance of exploitation in the next 30 days at 0.34%, the 27th percentile. Fixed in future 1.0.0+aikido.1.
References
pypi.org/project/future
github.com/PythonCharmers/python-future
medium.com/@abcd_68700/cve-2025-50817-python-future-module-arbitrary-code-execution-via-unintended-import-of-test-py-f0818ea93cf4
gist.github.com/fried/d2108a4932f3a22712dfc04598b5b8ce
nvd.nist.gov/vuln/detail/CVE-2025-50817
github.com/PythonCharmers/python-future/blob/v1.0.0/src/future/standard_library/__init__.py
Show 10 moreShow less
github.com/PythonCharmers/python-future/issues/650
github.com/advisories/GHSA-xqrq-4mgf-ff32
suse.com/support/update/announcement/2025/suse-su-202503028-1
bugzilla.suse.com/1248124
suse.com/security/cve/CVE-2025-50817
suse.com/support/update/announcement/2025/suse-su-202503029-1
suse.com/support/update/announcement/2025/suse-su-202503038-1
suse.com/support/update/announcement/2025/suse-su-202503049-1
ubuntu.com/security/CVE-2025-50817
cve.org/CVERecord?id=CVE-2025-50817