CVE Vulnerabilities

CVE-2016-9964

Improper Neutralization of CRLF Sequences ('CRLF Injection')

Published: Dec 16, 2016 | Modified: Apr 12, 2025
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:P/A:N
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

redirect() in bottle.py in bottle 0.12.10 doesnt filter a rn sequence, which leads to a CRLF attack, as demonstrated by a redirect(233rnSet-Cookie: name=salt) call.

Weakness

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.

Affected Software

NameVendorStart VersionEnd Version
BottleBottlepy0.12.10 (including)0.12.10 (including)
Python-bottleUbuntuesm-apps/xenial*
Python-bottleUbuntuesm-infra-legacy/trusty*
Python-bottleUbuntuprecise*
Python-bottleUbuntutrusty*
Python-bottleUbuntutrusty/esm*
Python-bottleUbuntuupstream*
Python-bottleUbuntuxenial*
Python-bottleUbuntuyakkety*

Potential Mitigations

References