Skip to content
OpenAdvisories
Medium · 6.1 CVE-2024-42353 EUVD-2024-0201GHSA-mg3v-6m49-jhp3PYSEC-2024-188

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

Published Aug 14, 2024 · Updated Aug 15, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
Pylons webob <= 1.8.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-webob 1:1.8.9-1 —
Debian 13 python-webob 1:1.8.9-1 —
Debian 12 python-webob No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS python-webob 1:1.8.9-1ubuntu0.1 USN-8759-1
Ubuntu 24.04 LTS python-webob 1:1.8.7-1ubuntu0.1.24.04.1 USN-8759-1, USN-6984-1
Ubuntu 22.04 LTS python-webob 1:1.8.6-1.1ubuntu0.1 USN-8759-1, USN-6984-1
Ubuntu 20.04 LTS python-webob 1:1.8.5-2ubuntu0.1 USN-6984-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS python-webob 1:1.8.5-2ubuntu0.1+esm1 USN-8759-1
Ubuntu Pro 18.04 LTS python-webob 1:1.7.3-2ubuntu0.1~esm2 USN-8759-1
Ubuntu Pro 16.04 LTS python-webob 1.5.1-1ubuntu0.1~esm2 USN-8759-1
ReleasePackageFixed inAdvisory
Red Hat Openshift Ironic 4 openstack-ironic +5 1:21.3.1-0.20240911165036.c0d61d0.el9 RHSA-2024:7941
Red Hat Openshift Ironic 4 python-webob +1 1.8.8-2.el9 RHSA-2024:7941, RHSA-2024:7187, RHSA-2024:7182
Red Hat OpenStack 18 python-webob +1 1.8.7-3.el9ost RHSA-2024:6775
Red Hat OpenStack 17 python-webob +1 1.8.7-2.1.el8ost RHSA-2024:9989, RHSA-2024:9983
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat OpenShift 4 podman +6 3:4.4.1-13.rhaos4.13.el8 RHSA-2024:7941, RHSA-2024:7187, RHSA-2024:7182
Red Hat OpenShift 4 skopeo +1 2:1.11.3-3.rhaos4.13.el8 RHSA-2024:7941, RHSA-2024:7187, RHSA-2024:7182
Red Hat Ceph Storage 8 ceph +27 2:19.2.1-222.el9cp RHSA-2025:9775
Red Hat Ceph Storage 8 cephadm-ansible 1:4.1.4-1.el9cp RHSA-2025:9775
Red Hat Ceph Storage 8 liboath +1 2.6.12-1.el9cp RHSA-2025:9775
Red Hat Ceph Storage 7 ceph +25 2:18.2.1-329.el8cp RHSA-2025:4664
Red Hat Ceph Storage 7 cephadm 2:18.2.1-329.el9cp RHSA-2025:4664
Red Hat Ceph Storage 7 liboath +1 2.6.12-1.el8cp RHSA-2025:4664
ReleasePackageFixed inAdvisory
SLES 15 SP6 python-WebOb 1.7.4-150000.3.3.1 SUSE-SU-2024:3116-1
SLES 15 SP5 python-WebOb 1.7.4-150000.3.3.1 SUSE-SU-2024:3116-1
SLES 12 python-WebOb 1.2.3-3.3.1 SUSE-SU-2024:2969-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-WebOb 1.8.8-1.1 openSUSE-SU-2024:14279-1
openSUSE Leap 15.6 python-WebOb 1.8.7-150400.11.6.1 SUSE-SU-2024:2970-1
openSUSE Leap 15.5 python-WebOb 1.7.4-150000.3.3.1 SUSE-SU-2024:3116-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 python-webob 1.2.3-7.amzn2.0.1 ALAS2-2025-2726

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-webob 1.8.8-1 —
Azure Linux 2 (CBL-Mariner) python-webob 1.8.8-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI webob < 1.8.8 1.8.8 GHSA-mg3v-6m49-jhp3

Advisories 17

References