CVE-2022-31799 json
Denial of service in bottle
published 2022-05-29 4 y ago modified 2026-06-17 4 mo ago also GHSA-xhp9-4947-rq78 , PYSEC-2022-227 , EUVD-2022-0032
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
Bottle before 0.12.20 mishandles errors during early request binding.
Patch / fix
- pypi bottle 0.12.20
- bottlepy bottle 0.12.20
- python-bottle Debian 14, Debian 13, Debian 12 0.12.20-1
debian advisories DEBIAN-CVE-2022-31799
- python-bottle Ubuntu 18.04 LTS 0.12.13-1ubuntu0.2
- python-bottle Ubuntu 20.04 LTS 0.12.15-2.1ubuntu0.2
- python-bottle Ubuntu 22.04 LTS 0.12.19-1+deb11u1build0.22.04.1
- python-bottle Ubuntu Pro 14.04 LTS 0.12.0-1ubuntu0.1~esm3
- python-bottle Ubuntu Pro 16.04 LTS 0.12.7-1+deb8u1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2022-31799
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python-bottle SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +21 more 0.12.13-150000.3.6.1
suse advisories SUSE-SU-2022:3103-1
- py3-bottle Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 0.12.21-r0
alpine advisories ALPINE-CVE-2022-31799
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-31799 updated cvss 7.3
python-bottle: error mishandling during early request binding
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.14% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | bottle | <0.12.20 |
0.12.20 |
Classification
- Weakness
-
- CWE-755 Improper Handling of Exceptional Conditions
References
-
github.com
/bottlepy/bottle/commit/e140e1b54da721a660f2eb9d58a106b7b3ff2f00
web, patch, third-party-advisory
-
github.com
/bottlepy/bottle/commit/a2b0ee6bb4ce88895429ec4aca856616244c4c4c
web, patch, third-party-advisory
-
debian.org
/security/2022/dsa-5159
vendor-advisory, web, third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/IE7U6J45PUEXIYYVWJKPM6QXIRKDK4HD/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/KTLOQGMDZEPIYTFC2G53OQV2ULCGYS3F/
vendor-advisory
-
github.com
/bottlepy/bottle/compare/0.12.19...0.12.20
web, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/06/msg00010.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31799
advisory
-
github.com
/advisories/GHSA-xhp9-4947-rq78
advisory
-
github.com
/bottlepy/bottle
package
-
github.com
/pypa/advisory-database/tree/main/vulns/bottle/PYSEC-2022-227.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/IE7U6J45PUEXIYYVWJKPM6QXIRKDK4HD
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/KTLOQGMDZEPIYTFC2G53OQV2ULCGYS3F
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/IE7U6J45PUEXIYYVWJKPM6QXIRKDK4HD/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/KTLOQGMDZEPIYTFC2G53OQV2ULCGYS3F/
web
Sources
- CVE List CVE-2022-31799
- GitHub Advisory GHSA-xhp9-4947-rq78
- NVD CVE-2022-31799
- OSV PYSEC-2022-227
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.