Every CVE Search/ Get API key

CVE-2025-50817

Withdrawn Advisory: Python-Future Module Arbitrary Code Execution via Unintended Import of test.py

5.4 MediumFix availableDisputed

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

0.34%Up 0.3 points since Aug 15, 2025
90%50%10%1%

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 MediumCVSS: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 MediumCVSS: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 HighCVSS: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 MediumCVSS: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 HighCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
future
Root:PyPI
before 1.0.0+aikido.1
1.0.0+aikido.1
python-future
SUSE:Linux Enterprise Server 12 SP5-LTSS
before 0.15.2-3.8.1
0.15.2-3.8.1
python-future
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5
before 0.15.2-3.8.1
0.15.2-3.8.1
python-future
SUSE:Linux Enterprise Module for Public Cloud 12
before 0.15.2-3.6.1
0.15.2-3.6.1
python-future
SUSE:Linux Enterprise Module for Python 3 15 SP6
before 0.18.3-150400.6.6.1
0.18.3-150400.6.6.1
python-future
SUSE:Linux Enterprise Module for Python 3 15 SP7
before 0.18.3-150400.6.6.1
0.18.3-150400.6.6.1
python-future
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS
before 0.18.3-150400.6.6.1
0.18.3-150400.6.6.1
python-future
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS
before 0.18.3-150400.6.6.1
0.18.3-150400.6.6.1
python-future
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS
before 0.18.3-150400.6.6.1
0.18.3-150400.6.6.1
python-future
SUSE: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
Affected packages
PackageAffectedFixed
python-future
SUSE:Linux Enterprise Server 15 SP4-LTSS
before 0.18.3-150400.6.6.1
0.18.3-150400.6.6.1
python-future
SUSE:Linux Enterprise Server 15 SP5-LTSS
before 0.18.3-150400.6.6.1
0.18.3-150400.6.6.1
python-future
SUSE:Linux Enterprise Server for SAP Applications 15 SP4
before 0.18.3-150400.6.6.1
0.18.3-150400.6.6.1
python-future
SUSE:Linux Enterprise Server for SAP Applications 15 SP5
before 0.18.3-150400.6.6.1
0.18.3-150400.6.6.1
python-future
openSUSE:Leap 15.6
before 0.18.3-150400.6.6.1
0.18.3-150400.6.6.1
python-future
SUSE:Linux Enterprise Micro 5.3
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise Micro 5.4
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise Micro 5.5
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise Module for Basesystem 15 SP6
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise Module for Basesystem 15 SP7
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise Server 15 SP3-LTSS
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise Server 15 SP4-LTSS
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise Server 15 SP5-LTSS
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise Server for SAP Applications 15 SP3
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise Server for SAP Applications 15 SP4
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise Server for SAP Applications 15 SP5
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Manager Proxy LTS 4.3
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Manager Server LTS 4.3
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise Micro 5.1
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Linux Enterprise Micro 5.2
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1
python-future
SUSE:Enterprise Storage 7.1
before 0.18.2-150300.3.6.1
0.18.2-150300.3.6.1

History

History
RecordedChangedSources
affected
first indexedCVE 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

Show 10 moreShow less
MoveEnter Open