
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-50817 is a disputed vulnerability claim against the Python-Future (python-future) module version 1.0.0, alleging arbitrary code execution via the unintended import of a file named test.py. The original claim asserted that when the module is loaded, it automatically imports any test.py present in the same directory or within sys.path, which an attacker with file-write access could exploit. The GitHub Advisory (GHSA-xqrq-4mgf-ff32) was withdrawn on October 6, 2025, after multiple third parties disputed the issue as a documented feature of Python's import system rather than a flaw in python-future. The NVD assigned a CVSS v3.1 base score of 5.4 (Medium), while the GitHub Advisory initially assigned a CVSS v4 score of 7.3 (High) before withdrawal (Github Advisory, python-future repo).
The alleged root cause is Python's standard sys.path import resolution behavior (loosely associated with CWE-22 Path Traversal and CWE-77 Command Injection in the original filing), where import test in future/standard_library/__init__.py (line 491 of v1.0.0) would execute any test.py found in sys.path before the standard library's own test module. Critics argue this is not a bug in python-future but an inherent property of Python's import system: any module using import test exhibits the same behavior, and the current working directory is included in sys.path by default unless PYTHONSAFEPATH (Python 3.11+) is set. The rebuttal published by researcher 'fried' notes that the CVSS vector's AV:N (network) designation is inaccurate, as placing a file in sys.path requires local filesystem write access, not network access (Github Advisory, CVE Rebuttal).
If the preconditions were met (attacker has filesystem write access to a directory in sys.path), a malicious test.py could execute arbitrary code with the privileges of the Python process loading python-future, potentially leading to full system compromise, data exfiltration, or unauthorized access. However, the security community broadly agrees that an attacker with filesystem write access already has sufficient capability to execute code through many other means, making this specific vector largely redundant. The GitHub Advisory was withdrawn because the described behavior does not represent a genuine security flaw in python-future (Github Advisory, CVE Rebuttal).
There is no evidence of public proof-of-concept exploit code or in-the-wild exploitation of this specific issue. The EPSS score is approximately 0.017% (very low probability of exploitation within 30 days). The CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The GitHub Advisory was formally withdrawn on October 6, 2025, and no threat actor attribution exists (Github Advisory).
Because the GitHub Advisory was withdrawn and the behavior is considered a documented Python feature rather than a python-future bug, no patch is expected or required from the python-future maintainers. Practical mitigations include: setting the PYTHONSAFEPATH environment variable or using the -P flag (Python 3.11+) to prevent the current directory from being prepended to sys.path; enforcing strict filesystem permissions to prevent unauthorized writes to directories in sys.path; avoiding naming project files test.py in directories where python-future is loaded; and using virtual environments to isolate dependencies. IBM has issued an advisory for affected products (IBM Rapid Infrastructure Automation) referencing this CVE (IBM Advisory, CVE Rebuttal).
The advisory was widely disputed shortly after publication. Researcher 'fried' published a detailed rebuttal on September 3, 2025, arguing the CVE mischaracterizes standard Python import behavior and that the CVSS vector is inaccurate (particularly the AV:N designation). The GitHub Advisory Database formally withdrew GHSA-xqrq-4mgf-ff32 on October 6, 2025, citing the python-future issue tracker discussion (#650) as confirmation that this is a documented Python feature. The PentesterLab blog noted the CVE in a weekly research roundup, and German Linux security outlet pro-linux.de covered it. Community sentiment is largely that this CVE should not have been filed, reflecting broader concerns about CVE quality and inflation of standard language behaviors as vulnerabilities (Github Advisory, CVE Rebuttal).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."