CVE-2019-11236: Urllib3 Improper Neutralization Of CRLF Sequences Vulnerability

MODERATE
Advisory Identifier: GHSA-r64q-w8jr-g9qp
CVSS 6.1
CWE-93
Published
Advisory Summary

CVE-2019-11236 is a MODERATE (CVSS 6.1) improper neutralization of crlf sequences vulnerability (CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')) affecting Urllib3 libraries in the PyPI ecosystem. The issue involves improper neutralization of crlf sequences in urllib3 library for python. Remediation is available by upgrading affected packages to version 1.24.3.

CVE-2019-11236 at a Glance

CVE Identifier CVE-2019-11236
GHSA Identifier GHSA-r64q-w8jr-g9qp
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')
Affected Product Urllib3
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2019-11236

To remediate this vulnerability, upgrade all affected Urllib3 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

urllib3 fixed: 1.24.3
pip install urllib3>=1.24.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show urllib3

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2019-11236, inspect your installed packages using pip:

pip show urllib3

Analyze the terminal output to locate any version of Urllib3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.24.3), your application is affected.

Note: The pip show urllib3 command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection'), where the product uses crlf (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes crlf sequences from inputs. In Urllib3, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

In the urllib3 library through 1.24.2 for Python, CRLF injection is possible if the attacker controls the request parameter.

CVE-2019-11236 Affected Urllib3 Versions

1 component(s)
Fixed Versions:
1.24.3
Product / Package Ecosystem Affected Versions Fixed Version
urllib3
PyPI
< 1.24.3
1.24.3

References

NVD — CVE-2019-11236 NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-11236
Urllib3 Source Repository REPOSITORY
https://github.com/urllib3/urllib3/issues/1553
usn.ubuntu.com/3990-2 WEB
https://usn.ubuntu.com/3990-2
usn.ubuntu.com/3990-1 WEB
https://usn.ubuntu.com/3990-1
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XOSA2NT4DUQDBEIWE6O7KKD24XND7TE2
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TBI45HO533KYHNB5YRO43TBYKA3E3VRL
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R62XGEYPUTXMRHGX5I37EBCGQ5COHGKR
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NKGPJLVLVYCL4L4B4G5TIOTVK4BKPG72
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2023/10/msg00012.html
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2021/06/msg00015.html
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2019/06/msg00016.html
Urllib3 Source Repository REPOSITORY
https://github.com/urllib3/urllib3
Urllib3 Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2019-132.yaml
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-r64q-w8jr-g9qp
access.redhat.com/errata/rhsa-2019:35... WEB
https://access.redhat.com/errata/RHSA-2019:3590
access.redhat.com/errata/rhsa-2019:33... WEB
https://access.redhat.com/errata/RHSA-2019:3335
access.redhat.com/errata/rhsa-2019:22... WEB
https://access.redhat.com/errata/RHSA-2019:2272
Urllib3 Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00039.html
Urllib3 Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00041.html

Frequently Asked Questions

What is CVE-2019-11236?
CVE-2019-11236 is a security vulnerability in Urllib3 involving Improper Neutralization of CRLF Sequences in urllib3 library for Python under CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection').
Which Urllib3 versions are affected?
Affected versions include releases prior to 1.24.3 across affected packages: urllib3.
What version fixes CVE-2019-11236?
Upgrading to 1.24.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is urllib3 affected?
Yes, urllib3 is affected in releases prior to 1.24.3. Upgrade your dependency to 1.24.3 or later.
What is the CVSS score of CVE-2019-11236?
CVE-2019-11236 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2019-11236?
CVE-2019-11236 is classified under CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection') (The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.).
How can I check PyPI dependencies for CVE-2019-11236?
Run the dependency tree command: 'pip show urllib3'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r64q-w8jr-g9qp",
  "modified" : "2024-11-18T22:52:14Z",
  "published" : "2022-05-13T01:09:23Z",
  "aliases" : [ "CVE-2019-11236" ],
  "summary" : "Improper Neutralization of CRLF Sequences in urllib3 library for Python",
  "details" : "In the urllib3 library through 1.24.2 for Python, CRLF injection is possible if the attacker controls the request parameter.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "urllib3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.24.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.24.2"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11236"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/urllib3/urllib3/issues/1553"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3990-2"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3990-1"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XOSA2NT4DUQDBEIWE6O7KKD24XND7TE2"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TBI45HO533KYHNB5YRO43TBYKA3E3VRL"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R62XGEYPUTXMRHGX5I37EBCGQ5COHGKR"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NKGPJLVLVYCL4L4B4G5TIOTVK4BKPG72"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2023/10/msg00012.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2021/06/msg00015.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2019/06/msg00016.html"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/urllib3/urllib3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2019-132.yaml"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-r64q-w8jr-g9qp"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3590"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3335"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:2272"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00039.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00041.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-93" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-28T15:02:18Z",
    "nvd_published_at" : "2019-04-15T15:29:00Z"
  }
}