Vulnerability · Published Aug 14, 2024 · Assigned by GitHub_M
CVE-2024-42353WebOb's location header normalization during redirect leads to open redirect
Medium 6.1
In plain English
A medium-severity open redirect in webob from Pylons. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
WebOb provides objects for HTTP requests and responses. When WebOb normalizes the HTTP Location header to include the request hostname, it does so by parsing the URL that the user is to be redirected to with Python's urlparse, and joining it to the base URL. `urlparse` however treats a `//` at the start of a string as a URI without a scheme, and then treats the next part as the hostname. `urljoin` will then use that hostname from the second part as the hostname replacing the original one from the request. This vulnerability is patched in WebOb version 1.8.8.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-webob | no fix listed | DEBIAN-CVE-2024-42353 |
| Debian:13 | python-webob | 1:1.8.9-1 | DEBIAN-CVE-2024-42353 |
| Debian:14 | python-webob | 1:1.8.9-1 | DEBIAN-CVE-2024-42353 |
| PyPI | webob | 1.8.8 | GHSA-mg3v-6m49-jhp3 |
| PyPI | webob | 1.8.8 | PYSEC-2024-188 |
| Ubuntu:22.04:LTS | python-webob | 1:1.8.6-1.1ubuntu0.1 | USN-6984-1 |
| Ubuntu:22.04:LTS | python-webob | 1:1.8.6-1.1ubuntu0.2 | USN-8759-1 |
| Ubuntu:22.04:LTS | python-webob | 1:1.8.6-1.1ubuntu0.1 | UBUNTU-CVE-2024-42353 |
| Ubuntu:24.04:LTS | python-webob | 1:1.8.7-1ubuntu0.1.24.04.2 | USN-8759-1 |
| Ubuntu:24.04:LTS | python-webob | 1:1.8.7-1ubuntu0.1.24.04.1 | USN-6984-1 |
| Ubuntu:24.04:LTS | python-webob | 1:1.8.7-1ubuntu0.1.24.04.1 | UBUNTU-CVE-2024-42353 |
| Ubuntu:26.04:LTS | python-webob | 1:1.8.9-1ubuntu0.1 | USN-8759-1 |
Affected products (as reported)
Weakness: CWE-601 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N