Name | CVE-2021-3426 |
Description | Running `pydoc -p` allows other local users to extract arbitrary files. The `/getfile?key=path` URL allows to read arbitrary file on the filesystem. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more) |
References | DLA-2619-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
python2.7 (PTS) | stretch | 2.7.13-2+deb9u3 | fixed |
| stretch (security) | 2.7.13-2+deb9u5 | fixed |
| buster | 2.7.16-2+deb10u1 | fixed |
| bullseye, sid | 2.7.18-6 | fixed |
python3.5 (PTS) | stretch | 3.5.3-1+deb9u1 | vulnerable |
| stretch (security) | 3.5.3-1+deb9u4 | fixed |
python3.7 (PTS) | buster | 3.7.3-2+deb10u3 | vulnerable |
python3.9 (PTS) | bullseye, sid | 3.9.2-1 | vulnerable |
The information below is based on the following data on fixed versions.
Notes
[bullseye] - python3.9 <no-dsa> (Minor issue)
[buster] - python3.7 <no-dsa> (Minor issue)
- python2.7 <not-affected> (Vulnerable code not present)
https://bugs.python.org/issue42988
https://github.com/python/cpython/commit/9b999479c0022edfc9835a8a1f06e046f3881048
https://python-security.readthedocs.io/vuln/pydoc-getfile.html
https://github.com/python/cpython/pull/24337
https://github.com/python/cpython/pull/24285