CVE-2016-5699: CRLF injection vulnerability in the HTTPConnection.putheader function in urllib2 and urllib in CPython (aka Python) before 2.7.10 and 3.x before 3.4.4 allows remote attackers to inject arbitrary...
Medium CVSS 6.1
- CVE id
- CVE-2016-5699
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Python Runtimes and servers |
<= 2.7.9 | after 2.7.9 |
How to fix it
Upgrade Python to a release newer than 2.7.9.
python --version
- Install the patched Python release of your minor line (pyenv, the python image tag, or your OS packages) and recreate virtual environments.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
CRLF injection vulnerability in the HTTPConnection.putheader function in urllib2 and urllib in CPython (aka Python) before 2.7.10 and 3.x before 3.4.4 allows remote attackers to inject arbitrary HTTP headers via CRLF sequences in a URL.
References
- CVE-2016-5699 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2016-5699
- Web: https://docs.python.org/3.4/whatsnew/changelog.html#python-3-4-4
- Web: https://hg.python.org/cpython/raw-file/v2.7.10/Misc/NEWS
- Web: https://hg.python.org/cpython/rev/1c45047c5102
- Web: https://hg.python.org/cpython/rev/bf3e1c9b80e9
- Web: https://lists.debian.org/debian-lts-announce/2019/02/msg00011.html
- Web: https://docs.python.org/3.4/whatsnew/changelog.html#python-3-4-4
- Web: https://hg.python.org/cpython/raw-file/v2.7.10/Misc/NEWS
- Web: https://hg.python.org/cpython/rev/1c45047c5102
- Web: https://hg.python.org/cpython/rev/bf3e1c9b80e9
- Web: https://lists.debian.org/debian-lts-announce/2019/02/msg00011.html
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.