An issue was discovered in urllib2 in Python 2.x through 2.7.16 and urllib in Python 3.x through 3.7.3. CRLF injection is possible if the attacker controls a url parameter, as demonstrated by the first argument to urllib.request.urlopen with \r\n (specifically in the query string after a ? character) followed by an HTTP header or a Redis command.

References[email protected]/message/2ORNTF62QPLMJXIQ7KTZQ2776LMIXEKL/[email protected]/message/44TS66GJMO5H3RLMVZEBGEFTB6O2LJJU/[email protected]/message/4X3HW5JRZ7GCPSR7UHJOLD7AWLTQCDVR/[email protected]/message/JCPGLTTOBB3QEARDX4JOYURP6ELNNA2V/[email protected]/message/JMWSKTNOHSUOT3L25QFJAVCFYZX46FYK/[email protected]/message/JXASHCDD4PQFKTMKQN4YOP5ZH366ABN4/[email protected]/message/M34WOYCDKTDE5KLUACE2YIEH7D37KHRX/


Source: MITRE

Published: 2019-03-13

Updated: 2020-08-22

Type: CWE-93

Risk Information

CVSS v2.0

Base Score: 4.3

Vector: AV:N/AC:M/Au:N/C:N/I:P/A:N

Impact Score: 2.9

Exploitability Score: 8.6

Severity: MEDIUM

CVSS v3.0

Base Score: 6.1

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Impact Score: 2.7

Exploitability Score: 2.8

Severity: MEDIUM