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
- github.com/openstack/swift@12e5439 commit
- github.com/openstack/swift@7d13d1a commit
- github.com/openstack/swift@8dd9647 commit
- github.com/openstack/swift@b8467e1 commit
- github.com/openstack/swift@baa9884 commit
- github.com/openstack/swift@c834e7a commit
- github.com/openstack/swift@d8d04ef commit
- github.com/openstack/swift@f106725 commit
- launchpad.net/bugs/1998625 advisory
- security.openstack.org/ossa/OSSA-2023-001.html advisory
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-containeraffected: 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.el8ostfixed: 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.el9ostfixed: 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
References
-
launchpad.net
/bugs/1998625
web, exploit, issue-tracking, patch, vendor-advisory
-
security.openstack.org
/ossa/OSSA-2023-001.html
web, patch, vendor-advisory
-
github.com
/openstack/swift/commit/12e54391861e7d182d58f89fb88b027e65842640
web
-
github.com
/openstack/swift/commit/7d13d1a82e1f5d01205a13184907501b4fcbe2b0
web
-
github.com
/openstack/swift/commit/8dd96470a859dc7b189404fb67bd3899ae9c617f
web
-
github.com
/openstack/swift/commit/b8467e190f6fc67fd8fb6a8c5e32b2aa6a10fd8e
web
-
github.com
/openstack/swift/commit/baa98848451b5c234443a068691e12841a5a8383
web
-
github.com
/openstack/swift/commit/c834e7a53d5a33a3fd13ffd954e6f4f4ee953dfc
web
-
github.com
/openstack/swift/commit/d8d04ef43c90079d436b2e49617b4425ba39c28e
web
-
github.com
/openstack/swift/commit/f10672514217adadfc776d9ea2ffb20a37ce073b
web
-
debian.org
/security/2023/dsa-5327
vendor-advisory, web
-
lists.debian.org
/debian-lts-announce/2023/01/msg00021.html
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-47950
advisory
-
github.com
/openstack/swift
package
-
pypi.org
/project/swift
package
-
github.com
/advisories/GHSA-274c-rx2j-2v3x
advisory
Sources
- CVE List CVE-2022-47950
- GitHub Advisory GHSA-274c-rx2j-2v3x
- NVD CVE-2022-47950
- OSV PYSEC-2026-927
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.