Skip to content
Fencer Vulns
medium 6.5

CVE-2022-47950 json

OpenStack Swift XML external entities (XXE) Injection

published 2023-01-18 3 y ago modified 2026-07-07 4 mo ago also GHSA-274c-rx2j-2v3x , PYSEC-2026-927 , EUVD-2023-0306

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

Summary

An issue was discovered in OpenStack Swift before 2.28.1, 2.29.x before 2.29.2, and 2.30.0. By supplying crafted XML files, an authenticated user may coerce the S3 API into returning arbitrary file contents from the host server, resulting in unauthorized read access to potentially sensitive data. This impacts both s3api deployments (Rocky or later), and swift3 deployments (Queens and earlier, no longer actively developed).

Patch / fix

  • pypi swift 2.28.1, 2.29.2, 2.30.1
  • openstack swift 2.28.1, 2.29.2
  • swift Debian 14, Debian 13, Debian 12 2.30.0-4

debian advisories DEBIAN-CVE-2022-47950

  • swift Ubuntu 20.04 LTS 2.25.2-0ubuntu1.1
  • swift Ubuntu 22.04 LTS 2.29.2-0ubuntu1

ubuntu advisories UBUNTU-CVE-2022-47950

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

  • python3-swift openstack 16.1 2.23.2-1.20230201163512.eef87ee.el8ost
  • python3-swift openstack 16.2 2.23.4-2.20220422185313.2829195.el8ost
  • openstack-swift openstack 16.1 2.23.2-1.20230201163512.eef87ee.el8ost
  • openstack-swift openstack 16.2 2.23.4-2.20220422185313.2829195.el8ost
  • openstack-swift-proxy openstack 16.1 2.23.2-1.20230201163512.eef87ee.el8ost
  • openstack-swift-proxy openstack 16.2 2.23.4-2.20220422185313.2829195.el8ost
  • openstack-swift-object openstack 16.1 2.23.2-1.20230201163512.eef87ee.el8ost
  • openstack-swift-object openstack 16.2 2.23.4-2.20220422185313.2829195.el8ost

red hat advisories RHSA-2023:1277RHSA-2023:1013

  • python-Werkzeug OpenStack Cloud Crowbar 9, OpenStack Cloud 9 0.14.1-3.6.2
  • openstack-heat OpenStack Cloud Crowbar 9, OpenStack Cloud 9 11.0.4~dev4-3.24.4
  • openstack-swift OpenStack Cloud Crowbar 9, OpenStack Cloud 9 2.19.3~dev3-3.6.3
  • venv-openstack-heat OpenStack Cloud 9 11.0.4~dev4-3.43.2
  • venv-openstack-swift OpenStack Cloud 9 2.19.3~dev3-2.36.3
  • venv-openstack-magnum OpenStack Cloud 9 7.2.1~dev1-4.41.3
  • venv-openstack-sahara OpenStack Cloud 9 9.0.2~dev15-3.41.2
  • venv-openstack-octavia OpenStack Cloud 9 3.2.3~dev7-4.41.2

suse advisories SUSE-SU-2023:2378-1SUSE-SU-2023:0323-1

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-2022-47950 updated cvss 7.7

openstack-swift: Arbitrary file access through custom S3 XML entities

  • Red Hat Storage 3 openstack-swift, openstack-swift-proxy, openstack-swift-object, openstack-swift-account, openstack-swift-container
    affected: no fix available
  • Red Hat OpenStack Platform 13.0 - ELS openstack-swift-plugin-swift3 1.12.1-1.el7ost Red Hat OpenStack Platform 13.0 for RHEL 7.6 EUS Server openstack-swift-plugin-swift3 1.12.1-1.el7ost Red Hat OpenStack Platform 16.1 python3-swift 2.23.2-1.20230201163512.eef87ee.el8ost, openstack-swift 2.23.2-1.20230201163512.eef87ee.el8ost, openstack-swift-proxy 2.23.2-1.20230201163512.eef87ee.el8ost, openstack-swift-object 2.23.2-1.20230201163512.eef87ee.el8ost, openstack-swift-account 2.23.2-1.20230201163512.eef87ee.el8ost, openstack-swift-container 2.23.2-1.20230201163512.eef87ee.el8ost Red Hat OpenStack Platform 16.2 python3-swift 2.23.4-2.20220422185313.2829195.el8ost, openstack-swift 2.23.4-2.20220422185313.2829195.el8ost, openstack-swift-proxy 2.23.4-2.20220422185313.2829195.el8ost, openstack-swift-object 2.23.4-2.20220422185313.2829195.el8ost, openstack-swift-account 2.23.4-2.20220422185313.2829195.el8ost, openstack-swift-container 2.23.4-2.20220422185313.2829195.el8ost
    fixed: vendor fix RHSA-2023:1277
  • Red Hat OpenStack Platform 17.0 python3-swift 2.27.1-0.20230201120900.6a1a8ce.el9ost, openstack-swift 2.27.1-0.20230201120900.6a1a8ce.el9ost, openstack-swift-proxy 2.27.1-0.20230201120900.6a1a8ce.el9ost, openstack-swift-object 2.27.1-0.20230201120900.6a1a8ce.el9ost, openstack-swift-account 2.27.1-0.20230201120900.6a1a8ce.el9ost, openstack-swift-container 2.27.1-0.20230201120900.6a1a8ce.el9ost
    fixed: vendor fix RHSA-2023:1013

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
19 mo ago

Exploit prediction

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

Exploits and checks

  • launchpad.net https://launchpad.net/bugs/1998625 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CNA 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
OSV 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
pypi swift
<2.28.1
>=2.29.0, <2.29.2
>=2.30.0, <2.30.1
2.28.1
2.29.2
2.30.1

Classification

Weakness
  • CWE-552 Files or Directories Accessible to External Parties
  • CWE-611 Improper Restriction of XML External Entity Reference

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.