Vulnerability · Published Aug 14, 2025 · Assigned by mitre

CVE-2025-50817

Medium 5.4

In plain English

A medium-severity command injection in the future package (PyPI). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities).

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.3%top 72.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIfutureno fix listedGHSA-xqrq-4mgf-ff32
Ubuntu:22.04:LTSpython-futureno fix listedUBUNTU-CVE-2025-50817
Ubuntu:24.04:LTSpython-futureno fix listedUBUNTU-CVE-2025-50817

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-77 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

References