Skip to content
OpenAdvisories
Medium · 6.5 CVE-2016-9964 EUVD-2016-0002GHSA-j6f7-hghw-g437PYSEC-2016-24

bottle.py vulnerable to CRLF Injection

Published Dec 16, 2016 · Updated Aug 6, 2024 · Assigned by mitre

Description

redirect() in bottle.py in bottle 0.12.10 doesn't filter a "\r\n" sequence, which leads to a CRLF attack, as demonstrated by a redirect("233\r\nSet-Cookie: name=salt") call.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-bottle 0.12.11-1 —
Debian 13 python-bottle 0.12.11-1 —
Debian 12 python-bottle 0.12.11-1 —
Debian 8 python-bottle 0.12.7-1+deb8u1 DSA-3743-1
Debian 7 python-bottle 0.10.11-1+deb7u2 DLA-761-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS python-bottle 0.12.7-1+deb8u1build0.16.04.1 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS python-bottle 0.12.0-1ubuntu0.1~esm1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI bottle >= 0.10.1, < 0.12.11 0.12.11 GHSA-j6f7-hghw-g437

Advisories 2

References