Skip to content
Fencer Vulns
medium 6.1

CVE-2024-42353 json

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

published 2024-08-14 2 y ago modified 2026-06-17 4 mo ago also GHSA-mg3v-6m49-jhp3 , PYSEC-2024-188 , EUVD-2024-0201

cvss
6.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.6%
EPSS 0.6% chance of exploitation in 30 days, percentile 47%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi webob 1.8.8
  • pylonsproject webob 1.8.8
  • python-webob Debian 14, Debian 13 1:1.8.9-1

debian advisories DEBIAN-CVE-2024-42353

  • python-webob Ubuntu 20.04 LTS 1:1.8.5-2ubuntu0.1
  • python-webob Ubuntu 22.04 LTS 1:1.8.6-1.1ubuntu0.1
  • python-webob Ubuntu 24.04 LTS 1:1.8.7-1ubuntu0.1.24.04.1
  • python-webob Ubuntu Pro 16.04 LTS 1.5.1-1ubuntu0.1~esm2
  • python-webob Ubuntu Pro 18.04 LTS 1:1.7.3-2ubuntu0.1~esm2

ubuntu advisories UBUNTU-CVE-2024-42353

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

  • ceph ceph storage 8.1 2:19.2.1-222.el9cp
  • cephadm ceph storage 8.1 2:19.2.1-222.el9cp
  • liboath ceph storage 8.1, ceph storage 7.1 2.6.12-1.el9cp
  • librbd1 ceph storage 8.1 2:19.2.1-222.el9cp
  • librgw2 ceph storage 8.1 2:19.2.1-222.el9cp
  • rbd-nbd ceph storage 8.1 2:19.2.1-222.el9cp
  • ceph-mib ceph storage 8.1 2:19.2.1-222.el9cp
  • ceph-base ceph storage 8.1 2:19.2.1-222.el9cp

red hat advisories RHSA-2025:9775RHSA-2025:4664RHSA-2024:9983RHSA-2024:9989RHSA-2024:7941RHSA-2024:7187

  • python-WebOb SLE Module for Package Hub 15 SP6, SLE Module for Package Hub 15 SP5, SLE Module for Basesystem 15 SP6 +2 more 1.7.4-150000.3.3.1
  • python-WebOb openSUSE Leap 15.6 1.8.7-150400.11.6.1
  • python-WebOb SLE Module for Public Cloud 12 1.2.3-3.3.1

suse advisories SUSE-SU-2024:3116-1SUSE-SU-2024:2970-1SUSE-SU-2024:2969-1

  • python-WebOb openSUSE Tumbleweed 1.8.8-1.1

opensuse advisories openSUSE-SU-2024:14279-1

  • python-webob CBL-Mariner 2.0, Azure Linux 3.0 1.8.8-1

azure linux advisories AZL-47820AZL-47826

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

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-2024-42353 updated cvss 6.1

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

  • Red Hat Ceph Storage 4 python2-webob, python3-webob Red Hat Ceph Storage 5 python-webob Red Hat Ceph Storage 6 python-webob Red Hat Enterprise Linux 6 python-webob Red Hat Enterprise Linux 7 python-webob Red Hat Openshift Container Storage 4 python-webob
    +2 more products
    Red Hat OpenStack Platform 16.1 python3-webob Red Hat OpenStack Platform 16.2 python3-webob
    affected: workaround, no fix planned “If the Response class is used, any HTTP Location header (i.e. location) can be rewritten so that it always passes a full URI that includes the hostname to redirect the user to.”
  • Red Hat Quay 3 quay/quay-rhel8
    affected: workaround, no fix available “If the Response class is used, any HTTP Location header (i.e. location) can be rewritten so that it always passes a full URI that includes the hostname to redirect the user to.”
  • Red Hat Ironic content for Red Hat OpenShift Container Platform 4.13 python-webob 1.8.8-2.el9, python3-webob 1.8.8-2.el9
    fixed: vendor fix “If the Response class is used, any HTTP Location header (i.e. location) can be rewritten so that it always passes a full URI that includes the hostname to redirect the user to.” RHSA-2024:7941
  • Red Hat Ironic content for Red Hat OpenShift Container Platform 4.14 python-webob 1.8.8-2.el9, python3-webob 1.8.8-2.el9
    fixed: vendor fix “If the Response class is used, any HTTP Location header (i.e. location) can be rewritten so that it always passes a full URI that includes the hostname to redirect the user to.” RHSA-2024:7187
  • Red Hat Ironic content for Red Hat OpenShift Container Platform 4.15 python-webob 1.8.8-2.el9, python3-webob 1.8.8-2.el9
    fixed: vendor fix “If the Response class is used, any HTTP Location header (i.e. location) can be rewritten so that it always passes a full URI that includes the hostname to redirect the user to.” RHSA-2024:7182
  • Red Hat Ironic content for Red Hat OpenShift Container Platform 4.16 python-webob 1.8.8-2.el9, python3-webob 1.8.8-2.el9
    fixed: vendor fix “If the Response class is used, any HTTP Location header (i.e. location) can be rewritten so that it always passes a full URI that includes the hostname to redirect the user to.” RHSA-2024:6827
  • Red Hat Ceph Storage 7.1 Tools liboath 2.6.12-1.el8cp, liboath 2.6.12-1.el9cp, oath-toolkit 2.6.12-1.el8cp, oath-toolkit 2.6.12-1.el9cp
    fixed: vendor fix “If the Response class is used, any HTTP Location header (i.e. location) can be rewritten so that it always passes a full URI that includes the hostname to redirect the user to.” RHSA-2025:4664
  • Red Hat Ceph Storage 8.1 Tools liboath 2.6.12-1.el9cp, oath-toolkit 2.6.12-1.el9cp
    fixed: vendor fix “If the Response class is used, any HTTP Location header (i.e. location) can be rewritten so that it always passes a full URI that includes the hostname to redirect the user to.” RHSA-2025:9775
show 4 more
  • Red Hat OpenShift Container Platform 4.12 openshift4/ose-ironic-rhel9 v4.12.0-202410011359.p0.g4d1b61e.assembly.stream.el9
    fixed: vendor fix “If the Response class is used, any HTTP Location header (i.e. location) can be rewritten so that it always passes a full URI that includes the hostname to redirect the user to.” RHSA-2024:7590
  • Red Hat OpenStack Platform 17.1 python-webob 1.8.7-2.1.el8ost, python-webob 1.8.7-2.1.el9ost, python3-webob 1.8.7-2.1.el8ost, python3-webob 1.8.7-2.1.el9ost
    fixed: vendor fix “If the Response class is used, any HTTP Location header (i.e. location) can be rewritten so that it always passes a full URI that includes the hostname to redirect the user to.” RHSA-2024:9989
  • Red Hat OpenStack Services on OpenShift 18 python-webob 1.8.7-3.el9ost, python3-webob 1.8.7-3.el9ost Red Hat OpenStack Services on OpenShift 18.0 python-webob 1.8.7-3.el9ost, python3-webob 1.8.7-3.el9ost
    fixed: vendor fix “If the Response class is used, any HTTP Location header (i.e. location) can be rewritten so that it always passes a full URI that includes the hostname to redirect the user to.” RHSA-2024:6775
  • Red Hat Ironic content for Red Hat OpenShift Container Platform 4.13 openstack-ironic 21.3.1-0.20240911165036.c0d61d0.el9, openstack-ironic-api 21.3.1-0.20240911165036.c0d61d0.el9, python3-ironic-tests 21.3.1-0.20240911165036.c0d61d0.el9, openstack-ironic-common 21.3.1-0.20240911165036.c0d61d0.el9, openstack-ironic-conductor 21.3.1-0.20240911165036.c0d61d0.el9, python3-ironic-python-agent 9.3.1-0.20240911165036.dfceb59.el9, +3 more Red Hat Ceph Storage 7.1 Tools ceph 18.2.1-329.el8cp, ceph 18.2.1-329.el9cp, cephadm 18.2.1-329.el9cp, librbd1 18.2.1-329.el8cp, librbd1 18.2.1-329.el9cp, librgw2 18.2.1-329.el8cp, +37 more Red Hat Ceph Storage 8.1 Tools ceph 19.2.1-222.el9cp, cephadm 19.2.1-222.el9cp, librbd1 19.2.1-222.el9cp, librgw2 19.2.1-222.el9cp, rbd-nbd 19.2.1-222.el9cp, ceph-mib 19.2.1-222.el9cp, +18 more Red Hat OpenShift Container Platform 4.12 rhcos 412.86.202410010038-0, openshift4/ose-cli v4.12.0-202410010030.p0.gd691257.assembly.stream.el8, openshift4/ose-pod v4.12.0-202410010030.p0.g1eb8682.assembly.stream.el8, openshift4/ose-etcd v4.12.0-202410010030.p0.gbb82e89.assembly.stream.el8, openshift4/ose-tests v4.12.0-202410010030.p0.gdaedb2e.assembly.stream.el8, openshift4/ose-console v4.12.0-202410021031.p0.g1f41bda.assembly.stream.el8, +185 more Red Hat OpenShift Container Platform 4.13 perf 5.14.0-284.88.1.el9_2, rtla 5.14.0-284.88.1.el9_2, bpftool 7.0.0-284.88.1.el9_2, kernel 5.14.0-284.88.1.el9_2, podman 4.4.1-13.rhaos4.13.el8, podman 4.4.1-14.rhaos4.13.el9, +88 more Red Hat OpenShift Container Platform 4.14 crun 1.17-1.rhaos4.14.el8, crun 1.17-1.rhaos4.14.el9, perf 5.14.0-284.86.1.el9_2, rtla 5.14.0-284.86.1.el9_2, runc 1.1.14-1.rhaos4.14.el8, runc 1.1.14-1.rhaos4.14.el9, +93 more
    +2 more products
    Red Hat OpenShift Container Platform 4.15 perf 5.14.0-284.86.1.el9_2, rtla 5.14.0-284.86.1.el9_2, bpftool 7.0.0-284.86.1.el9_2, kernel 5.14.0-284.86.1.el9_2, podman 4.4.1-30.rhaos4.15.el8, podman 4.4.1-30.rhaos4.15.el9, +85 more Red Hat OpenShift Container Platform 4.16 crun 1.17-1.rhaos4.16.el8, crun 1.17-1.rhaos4.16.el9, perf 5.14.0-427.37.1.el9_4, rtla 5.14.0-427.37.1.el9_4, runc 1.1.14-1.rhaos4.16.el8, runc 1.1.14-1.rhaos4.16.el9, +69 more
    not 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

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.57% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/Pylons/webob/security/advisories/GHSA-mg3v-6m49-jhp3 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
pypi webob
<1.8.8
1.8.8

Affected products

  • Pylons webob

Classification

Weakness
  • CWE-601 URL Redirection to Untrusted Site

References

Sources

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.