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.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.6%top 52.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12python-webobno fix listedDEBIAN-CVE-2024-42353
Debian:13python-webob1:1.8.9-1DEBIAN-CVE-2024-42353
Debian:14python-webob1:1.8.9-1DEBIAN-CVE-2024-42353
PyPIwebob1.8.8GHSA-mg3v-6m49-jhp3
PyPIwebob1.8.8PYSEC-2024-188
Ubuntu:22.04:LTSpython-webob1:1.8.6-1.1ubuntu0.1USN-6984-1
Ubuntu:22.04:LTSpython-webob1:1.8.6-1.1ubuntu0.2USN-8759-1
Ubuntu:22.04:LTSpython-webob1:1.8.6-1.1ubuntu0.1UBUNTU-CVE-2024-42353
Ubuntu:24.04:LTSpython-webob1:1.8.7-1ubuntu0.1.24.04.2USN-8759-1
Ubuntu:24.04:LTSpython-webob1:1.8.7-1ubuntu0.1.24.04.1USN-6984-1
Ubuntu:24.04:LTSpython-webob1:1.8.7-1ubuntu0.1.24.04.1UBUNTU-CVE-2024-42353
Ubuntu:26.04:LTSpython-webob1:1.8.9-1ubuntu0.1USN-8759-1

Affected products (as reported)

VendorProductVersions
Pylons webob <= 1.8.7

Weakness: CWE-601 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References