bottle.py vulnerable to CRLF Injection
bottle.py is a fast and simple micro-framework for python web-applications. 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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | bottle | >= 0.10.1, < 0.12.11 | 0.12.11 |
References
- https://github.com/bottlepy/bottle/issues/913
- https://github.com/bottlepy/bottle/commit/6d7e13da0f998820800ecb3fe9ccee4189aefb54
- http://www.securityfocus.com/bid/94961
- http://www.debian.org/security/2016/dsa-3743
- https://github.com/advisories/GHSA-j6f7-hghw-g437
- https://nvd.nist.gov/vuln/detail/CVE-2016-9964
- https://github.com/bottlepy/bottle/commit/78f67d51965db11cb1ed0003f1eb7926458b5c2c
- https://github.com/bottlepy/bottle
- https://github.com/pypa/advisory-database/tree/main/vulns/bottle/PYSEC-2016-24.yaml
- https://web.archive.org/web/20170214030628/http://www.securityfocus.com/bid/94961
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-93- Platform
- Python (PyPI)
- Package
bottle- Disclosed
- 16.12.2016
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2016-24 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-j6f7-hghw-g437 - CC BY 4.0
Vulnerability history: bottle
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 4
- First → latest
- 10.2014 06.2022
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 2
- Medium 1
Disclosures per year
- 2017: 0
- 2018: 0
- 2019: 0
- 2020: 0
- 2021: 1
- 2022: 1
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
earlier: 2
-
bottle.py vulnerable to CRLF Injection this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.