-
Notifications
You must be signed in to change notification settings - Fork 474
Description
This CVE refers to the following line of code as having a vulnerability: https://github.com/PythonCharmers/python-future/blob/2d56f83adab5a0957cfc5abbe62db1e2d1912b61/src/future/standard_library/__init__.py#L491
That line of code is import test
; in the reporters' words:
When loading the future module, test.py is automatically imported and executed
...but that's what an import statement is meant to do. This one imports the stdlib test
module: https://docs.python.org/3/library/test.html, unless you have a test.py
somewhere in your sys.path
(e.g. in the working directory). There's nothing unique about this particular import that could be described as a vulnerability – every python import statement uses the same machinery and could import the wrong file (e.g. os.py
, platform.py
) if you have one lying around.
Obviously, if your notional attacker is able to write python files to arbitrary parts of the filesystem, then you have a problem. That is not caused by python-future!
See PythonCharmers/python-future#650 (comment) for further details.