CVE-2014-3137: Bottle Bottle Does Not Properly Limit Vulnerability
HIGHCVE-2014-3137 is a HIGH (CVSS 9.8) bottle does not properly limit vulnerability (CWE-20: Improper Input Validation) affecting Bottle libraries in the PyPI ecosystem. The issue involves bottle does not properly limit content-types. Remediation is available by upgrading affected packages to version 0.10.12, 0.11.7, 0.12.6.
CVE-2014-3137 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2014-3137
To remediate this vulnerability, upgrade all affected Bottle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install bottle>=0.10.12
pip install bottle>=0.11.7
pip install bottle>=0.12.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show bottle
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2014-3137, inspect your installed packages using pip:
pip show bottle
Analyze the terminal output to locate any version of Bottle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.12), your application is affected.
Note: The pip show bottle command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Bottle, 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
CVE-2014-3137 Affected Bottle Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
bottle
|
PyPI |
≥ 0.10.0
< 0.10.12
|
0.10.12
|
|
bottle
|
PyPI |
≥ 0.11.0
< 0.11.7
|
0.11.7
|
|
bottle
|
PyPI |
≥ 0.12.0
< 0.12.6
|
0.12.6
|
References
Frequently Asked Questions
What is CVE-2014-3137?
Which Bottle versions are affected?
What version fixes CVE-2014-3137?
Is bottle affected?
What is the CVSS score of CVE-2014-3137?
What CWE is associated with CVE-2014-3137?
How can I check PyPI dependencies for CVE-2014-3137?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-873q-wpqr-xfgw",
"modified" : "2024-09-13T17:57:20Z",
"published" : "2022-05-17T04:19:29Z",
"aliases" : [ "CVE-2014-3137" ],
"summary" : "Bottle does not properly limit content-types",
"details" : "Bottle 0.10.x before 0.10.12, 0.11.x before 0.11.7, and 0.12.x before 0.12.6 does not properly limit content types, which allows remote attackers to bypass intended access restrictions via an accepted Content-Type followed by a `;` (semi-colon) and a Content-Type that would not be accepted, as demonstrated in YouCompleteMe to execute arbitrary code.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "bottle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.10.0"
}, {
"fixed" : "0.10.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "bottle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.11.0"
}, {
"fixed" : "0.11.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "bottle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.12.0"
}, {
"fixed" : "0.12.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-3137"
}, {
"type" : "WEB",
"url" : "https://github.com/bottlepy/bottle/issues/616"
}, {
"type" : "WEB",
"url" : "https://github.com/defnull/bottle/issues/616"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1093255"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bottlepy/bottle"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/bottle/PYSEC-2014-77.yaml"
}, {
"type" : "WEB",
"url" : "http://www.debian.org/security/2014/dsa-2948"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2014/05/01/15"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-16T23:15:40Z",
"nvd_published_at" : "2014-10-25T22:55:00Z"
}
}