Description

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.

INFO

Published Date :

Sept. 2, 2016, 2:59 p.m.

Last Modified :

Nov. 21, 2024, 2:54 a.m.

Remotely Exploitable :

Yes !

Impact Score :

2.7

Exploitability Score :

2.8
Public PoC/Exploit Available at Github

CVE-2016-5699 has a 6 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2016-5699 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Python python
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2016-5699.

URL Resource
http://blog.blindspotsecurity.com/2016/06/advisory-http-header-injection-in.html Exploit Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
http://rhn.redhat.com/errata/RHSA-2016-1626.html
http://rhn.redhat.com/errata/RHSA-2016-1627.html
http://rhn.redhat.com/errata/RHSA-2016-1628.html
http://rhn.redhat.com/errata/RHSA-2016-1629.html
http://rhn.redhat.com/errata/RHSA-2016-1630.html
http://www.openwall.com/lists/oss-security/2016/06/14/7 Mailing List
http://www.openwall.com/lists/oss-security/2016/06/15/12 Mailing List
http://www.openwall.com/lists/oss-security/2016/06/16/2 Mailing List
http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
http://www.securityfocus.com/bid/91226
http://www.splunk.com/view/SP-CAAAPSV
http://www.splunk.com/view/SP-CAAAPUE
https://docs.python.org/3.4/whatsnew/changelog.html#python-3-4-4 Release Notes
https://hg.python.org/cpython/raw-file/v2.7.10/Misc/NEWS Release Notes
https://hg.python.org/cpython/rev/1c45047c5102 Patch
https://hg.python.org/cpython/rev/bf3e1c9b80e9 Patch
https://lists.debian.org/debian-lts-announce/2019/02/msg00011.html
http://blog.blindspotsecurity.com/2016/06/advisory-http-header-injection-in.html Exploit Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
http://rhn.redhat.com/errata/RHSA-2016-1626.html
http://rhn.redhat.com/errata/RHSA-2016-1627.html
http://rhn.redhat.com/errata/RHSA-2016-1628.html
http://rhn.redhat.com/errata/RHSA-2016-1629.html
http://rhn.redhat.com/errata/RHSA-2016-1630.html
http://www.openwall.com/lists/oss-security/2016/06/14/7 Mailing List
http://www.openwall.com/lists/oss-security/2016/06/15/12 Mailing List
http://www.openwall.com/lists/oss-security/2016/06/16/2 Mailing List
http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
http://www.securityfocus.com/bid/91226
http://www.splunk.com/view/SP-CAAAPSV
http://www.splunk.com/view/SP-CAAAPUE
https://docs.python.org/3.4/whatsnew/changelog.html#python-3-4-4 Release Notes
https://hg.python.org/cpython/raw-file/v2.7.10/Misc/NEWS Release Notes
https://hg.python.org/cpython/rev/1c45047c5102 Patch
https://hg.python.org/cpython/rev/bf3e1c9b80e9 Patch
https://lists.debian.org/debian-lts-announce/2019/02/msg00011.html

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : Sept. 3, 2024, 3:51 a.m. This repo has been linked 32 different CVEs too.

None

Updated: 6 months, 2 weeks ago
1 stars 1 fork 1 watcher
Born at : Jan. 29, 2024, 7:04 a.m. This repo has been linked 80 different CVEs too.

hackerone one million reports

bugbountytips vulnerability-research

Updated: 1 year, 7 months ago
3 stars 1 fork 1 watcher
Born at : Oct. 15, 2022, 6:48 p.m. This repo has been linked 80 different CVEs too.

None

Dockerfile Python Shell HTML

Updated: 5 years, 2 months ago
0 stars 2 fork 2 watcher
Born at : Sept. 11, 2019, 3:06 p.m. This repo has been linked 1 different CVEs too.

Reading Course Report

Python

Updated: 8 years, 2 months ago
0 stars 0 fork 0 watcher
Born at : Aug. 23, 2016, 3:06 a.m. This repo has been linked 1 different CVEs too.

PoC code of CVE-2016-5699 Vulnerability

Python

Updated: 1 year, 5 months ago
4 stars 5 fork 5 watcher
Born at : June 23, 2016, 2:01 p.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2016-5699 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2016-5699 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Feb. 12, 2023

    Action Type Old Value New Value
    Changed Description It was found that the Python's httplib library (used by urllib, urllib2 and others) did not properly check HTTPConnection.putheader() function arguments. An attacker could use this flaw to inject additional headers in a Python application that allowed user provided header names or values. 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.
    Removed CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Removed CVSS V2 Red Hat, Inc. (AV:N/AC:L/Au:N/C:N/I:P/A:N)
    Removed CVSS V3 Red Hat, Inc. AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
    Removed Reference https://access.redhat.com/errata/RHSA-2016:1626 [No Types Assigned]
    Removed Reference https://access.redhat.com/errata/RHSA-2016:1627 [No Types Assigned]
    Removed Reference https://access.redhat.com/errata/RHSA-2016:1628 [No Types Assigned]
    Removed Reference https://access.redhat.com/errata/RHSA-2016:1629 [No Types Assigned]
    Removed Reference https://access.redhat.com/errata/RHSA-2016:1630 [No Types Assigned]
    Removed Reference https://access.redhat.com/security/cve/CVE-2016-5699 [No Types Assigned]
    Removed Reference https://bugzilla.redhat.com/show_bug.cgi?id=1303699 [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 02, 2023

    Action Type Old Value New Value
    Changed Description 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. It was found that the Python's httplib library (used by urllib, urllib2 and others) did not properly check HTTPConnection.putheader() function arguments. An attacker could use this flaw to inject additional headers in a Python application that allowed user provided header names or values.
    Added CVSS V2 Red Hat, Inc. (AV:N/AC:L/Au:N/C:N/I:P/A:N)
    Added CVSS V3 Red Hat, Inc. AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=1303699 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2016:1629 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2016:1628 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2016:1627 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2016:1626 [No Types Assigned]
    Added Reference https://access.redhat.com/security/cve/CVE-2016-5699 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2016:1630 [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 21, 2020

    Action Type Old Value New Value
    Added Reference http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 09, 2019

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2019/02/msg00011.html [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 05, 2018

    Action Type Old Value New Value
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-1630.html [No Types Assigned]
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-1629.html [No Types Assigned]
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-1628.html [No Types Assigned]
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-1627.html [No Types Assigned]
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-1626.html [No Types Assigned]
  • CVE Modified by [email protected]

    Dec. 24, 2016

    Action Type Old Value New Value
    Added Reference http://www.splunk.com/view/SP-CAAAPUE [No Types Assigned]
    Added Reference http://www.splunk.com/view/SP-CAAAPSV [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 28, 2016

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/91226 [No Types Assigned]
  • CVE Modified by [email protected]

    Sep. 23, 2016

    Action Type Old Value New Value
    Added Reference http://www.oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
  • CVE Translated by [email protected]

    Sep. 02, 2016

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Sep. 02, 2016

    Action Type Old Value New Value
    Added CPE Configuration Configuration 1 OR *cpe:2.3:a:python:python:2.7.9:*:*:*:*:*:*:* (and previous) Configuration 2 OR *cpe:2.3:a:python:python:3.0:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.0.1:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.1.0:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.1.1:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.1.2:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.1.3:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.1.4:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.1.5:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.2.0:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.2.1:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.2.2:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.2.3:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.2.4:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.2.5:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.2.6:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.3.0:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.3.1:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.3.2:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.3.3:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.3.4:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.3.5:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.3.6:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.4.0:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.4.1:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.4.2:*:*:*:*:*:*:* *cpe:2.3:a:python:python:3.4.3:*:*:*:*:*:*:*
    Added CVSS V2 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
    Added CVSS V3 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    Changed Reference Type http://blog.blindspotsecurity.com/2016/06/advisory-http-header-injection-in.html No Types Assigned http://blog.blindspotsecurity.com/2016/06/advisory-http-header-injection-in.html Third Party Advisory, Exploit
    Changed Reference Type https://docs.python.org/3.4/whatsnew/changelog.html#python-3-4-4 No Types Assigned https://docs.python.org/3.4/whatsnew/changelog.html#python-3-4-4 Release Notes
    Changed Reference Type https://hg.python.org/cpython/rev/bf3e1c9b80e9 No Types Assigned https://hg.python.org/cpython/rev/bf3e1c9b80e9 Patch
    Changed Reference Type http://www.openwall.com/lists/oss-security/2016/06/15/12 No Types Assigned http://www.openwall.com/lists/oss-security/2016/06/15/12 Mailing List
    Changed Reference Type http://www.openwall.com/lists/oss-security/2016/06/16/2 No Types Assigned http://www.openwall.com/lists/oss-security/2016/06/16/2 Mailing List
    Changed Reference Type http://www.openwall.com/lists/oss-security/2016/06/14/7 No Types Assigned http://www.openwall.com/lists/oss-security/2016/06/14/7 Mailing List
    Changed Reference Type https://hg.python.org/cpython/raw-file/v2.7.10/Misc/NEWS No Types Assigned https://hg.python.org/cpython/raw-file/v2.7.10/Misc/NEWS Release Notes
    Changed Reference Type https://hg.python.org/cpython/rev/1c45047c5102 No Types Assigned https://hg.python.org/cpython/rev/1c45047c5102 Patch
    Added CWE CWE-113
  • Initial Analysis by [email protected]

    Sep. 02, 2016

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2016-5699 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2016-5699 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.21 }} -0.32%

score

0.59270

percentile

CVSS30 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability