CVE-2024-42353

WebOb's location header normalization during redirect leads to open redirect

Published Aug 14, 2024 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0201 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.
Github GHSA Github GHSA GHSA-mg3v-6m49-jhp3 WebOb's location header normalization during redirect leads to open redirect
Ubuntu USN Ubuntu USN USN-6984-1 WebOb vulnerability
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:ceph_storage:8.1::el9
Type Values Removed Values Added
First Time appeared Redhat ceph Storage
CPEs cpe:/a:redhat:ceph_storage:7.1::el8
Vendors & Products Redhat ceph Storage
Type Values Removed Values Added
CPEs cpe:/a:redhat:openstack:17.1::el8
cpe:/a:redhat:openstack:17.1::el9
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_ironic:4.13::el9
Type Values Removed Values Added
First Time appeared Redhat openshift
CPEs cpe:/a:redhat:openshift:4.12::el9
Vendors & Products Redhat openshift
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_ironic:4.14::el9
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_ironic:4.15::el9
Type Values Removed Values Added
First Time appeared Redhat openshift Ironic
CPEs cpe:/a:redhat:openshift_ironic:4.16::el9
Vendors & Products Redhat openshift Ironic
Type Values Removed Values Added
First Time appeared Redhat
Redhat openstack
CPEs cpe:/a:redhat:openstack:18.0::el9
Vendors & Products Redhat
Redhat openstack
Type Values Removed Values Added
First Time appeared Pylonsproject
Pylonsproject webob
CPEs cpe:2.3:a:pylonsproject:webob:*:*:*:*:*:*:*:*
Vendors & Products Pylonsproject
Pylonsproject webob
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title WebOb's location header normalization during redirect leads to open redirect
Weaknesses CWE-601
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 15, 2024, 2:04 PM
Reserved
Jul 30, 2024, 2:01 PM
Status
Analyzed
Published
Aug 14, 2024, 9:15 PM
Modified
Jun 17, 2026, 7:49 AM
Severity
Moderate
Public date
Aug 14, 2024, 12:00 AM