CVE-2022-47950
OpenStack Swift XML external entities (XXE) Injection
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).
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
6.5
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).
- Record
CVE-2022-47950- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-552
- Updated
- 2026-11-02
CVE List
6.5
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).
- Record
CVE-2022-47950- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-552
- Updated
- 2026-11-02
EUVDEUVD-2023-0306
6.5
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).
- Record
EUVD-2023-0306- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-274c-rx2j-2v3x
6.5
OpenStack Swift XML external entities (XXE) Injection
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).
- Record
GHSA-274c-rx2j-2v3x- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-552, CWE-611
- Updated
- 2026-11-02
OSV
6.5
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).
- Record
CVE-2022-47950- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-47950
6.5
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).
- Record
DEBIAN-CVE-2022-47950- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-03
Show 8 moreShow less
OSVGHSA-274c-rx2j-2v3x
6.5
OpenStack Swift XML external entities (XXE) Injection
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).
- Record
GHSA-274c-rx2j-2v3x- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-552, CWE-611
- Updated
- 2026-11-02
OSVPYSEC-2026-927
6.5
OpenStack Swift XML external entities (XXE) Injection
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).
- Record
PYSEC-2026-927- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVRHSA-2023:1013
7.7
Red Hat Security Advisory: Red Hat OpenStack Platform 17.0 (openstack-swift) security update
- Record
RHSA-2023:1013- CVSS 3.1
- 7.7 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N - Updated
- 2026-11-02
OSVRHSA-2023:1277
7.7
Red Hat Security Advisory: Red Hat OpenStack Platform (openstack-swift) security update
- Record
RHSA-2023:1277- CVSS 3.1
- 7.7 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-47950
6.5
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).
- Record
UBUNTU-CVE-2022-47950- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVSUSE-SU-2023:0323-1 No score
Security update for python-swift3
This update for python-swift3 fixes the following issues:
- CVE-2022-47950: Fixed an issue that could allow a remote attacker to disclose local file contents via a crafted XML file (bsc#1207035).
- Record
SUSE-SU-2023:0323-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:2378-1 No score
Security update for openstack-heat, openstack-swift, python-Werkzeug
This update for openstack-heat, openstack-swift, python-Werkzeug contains the following fixes:
Security fixes included in this update:
openstack-heat:
- CVE-2023-1625: Fixed an issue where parameter values marked as 'hidden' would be shown in the stack's environment (bsc#1209774).
openstack-swift:
- CVE-2022-47950: Fixed a local file disclosure that could be triggered by an authenticated attacker by supplying a malicious XML (bnc#1207035).
python-Werkzeug:
- CVE-2023-25577: Fixed an unbounded resource usage when parsing multipart forms with many fields (bsc#1208283).
Non security changes on this update:
Changes in openstack-heat:
- Honor 'hidden' parameter in 'stack environment show' command. (bsc#1209774, CVE-2023-1625)
Changes in openstack-swift:
- Prevent XXE injections in API. (bsc#1207035, CVE-2022-47950)
Changes in python-Werkzeug;
- Limit maximum number of multipart form parts. (bsc#1208283, CVE-2023-25577)
- Record
SUSE-SU-2023:2378-1- Updated
- 2026-11-02
OSVUSN-5852-1 No score
swift vulnerability
It was discovered that OpenStack Swift incorrectly handled certain XML files. A remote authenticated user could possibly use this issue to obtain arbitrary file contents containing sensitive information from the server.
- Record
USN-5852-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
swiftPyPI |
before 2.28.1 | 2.28.1 |
swiftPyPI |
2.29.0 up to 2.29.2 | 2.29.2 |
swiftPyPI |
2.30.0 to 2.30.0 | 2.30.1 |
swiftDebian:12 |
before 2.30.0-4 | 2.30.0-4 |
swiftDebian:13 |
before 2.30.0-4 | 2.30.0-4 |
swiftDebian:14 |
before 2.30.0-4 | 2.30.0-4 |
swiftDebian:10 |
before 2.19.1-1+deb10u1, plus listed versions 2.19.1-1 |
2.19.1-1+deb10u1 |
swiftDebian:11 |
before 2.26.0-10+deb11u1, plus listed versions 2.26.0-10 |
2.26.0-10+deb11u1 |
swiftPyPI |
before 2.28.1, plus listed versions 1.0.22.15.22.17.12.19.12.19.2 Show 15 moreShow less2.20.02.21.02.21.12.22.02.23.02.23.12.23.22.23.32.24.02.25.02.25.12.25.22.26.02.27.02.28.0 |
2.28.1 |
swiftPyPI |
2.29.0 up to 2.29.2, plus listed versions 2.29.1 |
2.29.2 |
Show 40 moreShow less
| Package | Affected | Fixed |
|---|---|---|
swiftPyPI |
2.30.0 up to 2.30.1 | 2.30.1 |
swiftPyPI |
before 2.28.1, 2.29.0 up to 2.29.2, 2.30.0 up to 2.30.1, plus listed versions 1.0.22.15.22.17.12.19.12.19.2 Show 16 moreShow less2.20.02.21.02.21.12.22.02.23.02.23.12.23.22.23.32.24.02.25.02.25.12.25.22.26.02.27.02.28.02.29.1 |
2.28.12.29.22.30.1 |
openstack-swiftRed Hat:openstack:17.0::el9 |
before 0:2.27.1-0.20230201120900.6a1a8ce.el9ost | 0:2.27.1-0.20230201120900.6a1a8ce.el9ost |
openstack-swift-accountRed Hat:openstack:17.0::el9 |
before 0:2.27.1-0.20230201120900.6a1a8ce.el9ost | 0:2.27.1-0.20230201120900.6a1a8ce.el9ost |
openstack-swift-containerRed Hat:openstack:17.0::el9 |
before 0:2.27.1-0.20230201120900.6a1a8ce.el9ost | 0:2.27.1-0.20230201120900.6a1a8ce.el9ost |
openstack-swift-objectRed Hat:openstack:17.0::el9 |
before 0:2.27.1-0.20230201120900.6a1a8ce.el9ost | 0:2.27.1-0.20230201120900.6a1a8ce.el9ost |
openstack-swift-proxyRed Hat:openstack:17.0::el9 |
before 0:2.27.1-0.20230201120900.6a1a8ce.el9ost | 0:2.27.1-0.20230201120900.6a1a8ce.el9ost |
python3-swiftRed Hat:openstack:17.0::el9 |
before 0:2.27.1-0.20230201120900.6a1a8ce.el9ost | 0:2.27.1-0.20230201120900.6a1a8ce.el9ost |
openstack-swift-plugin-swift3Red Hat:openstack:13::el7 |
before 0:1.12.1-1.el7ost | 0:1.12.1-1.el7ost |
openstack-swiftRed Hat:openstack:16.1::el8 |
before 0:2.23.2-1.20230201163512.eef87ee.el8ost | 0:2.23.2-1.20230201163512.eef87ee.el8ost |
openstack-swift-accountRed Hat:openstack:16.1::el8 |
before 0:2.23.2-1.20230201163512.eef87ee.el8ost | 0:2.23.2-1.20230201163512.eef87ee.el8ost |
openstack-swift-containerRed Hat:openstack:16.1::el8 |
before 0:2.23.2-1.20230201163512.eef87ee.el8ost | 0:2.23.2-1.20230201163512.eef87ee.el8ost |
openstack-swift-objectRed Hat:openstack:16.1::el8 |
before 0:2.23.2-1.20230201163512.eef87ee.el8ost | 0:2.23.2-1.20230201163512.eef87ee.el8ost |
openstack-swift-proxyRed Hat:openstack:16.1::el8 |
before 0:2.23.2-1.20230201163512.eef87ee.el8ost | 0:2.23.2-1.20230201163512.eef87ee.el8ost |
python3-swiftRed Hat:openstack:16.1::el8 |
before 0:2.23.2-1.20230201163512.eef87ee.el8ost | 0:2.23.2-1.20230201163512.eef87ee.el8ost |
openstack-swiftRed Hat:openstack:16.2::el8 |
before 0:2.23.4-2.20220422185313.2829195.el8ost | 0:2.23.4-2.20220422185313.2829195.el8ost |
openstack-swift-accountRed Hat:openstack:16.2::el8 |
before 0:2.23.4-2.20220422185313.2829195.el8ost | 0:2.23.4-2.20220422185313.2829195.el8ost |
openstack-swift-containerRed Hat:openstack:16.2::el8 |
before 0:2.23.4-2.20220422185313.2829195.el8ost | 0:2.23.4-2.20220422185313.2829195.el8ost |
openstack-swift-objectRed Hat:openstack:16.2::el8 |
before 0:2.23.4-2.20220422185313.2829195.el8ost | 0:2.23.4-2.20220422185313.2829195.el8ost |
openstack-swift-proxyRed Hat:openstack:16.2::el8 |
before 0:2.23.4-2.20220422185313.2829195.el8ost | 0:2.23.4-2.20220422185313.2829195.el8ost |
python3-swiftRed Hat:openstack:16.2::el8 |
before 0:2.23.4-2.20220422185313.2829195.el8ost | 0:2.23.4-2.20220422185313.2829195.el8ost |
python-swift3SUSE:HPE Helion OpenStack 8 |
before 1.7.0.dev372-3.3.1 | 1.7.0.dev372-3.3.1 |
python-swift3SUSE:OpenStack Cloud 8 |
before 1.7.0.dev372-3.3.1 | 1.7.0.dev372-3.3.1 |
python-swift3SUSE:OpenStack Cloud Crowbar 8 |
before 1.7.0.dev372-3.3.1 | 1.7.0.dev372-3.3.1 |
openstack-heatSUSE:OpenStack Cloud 9 From an advisory covering 3 CVEs |
before 11.0.4~dev4-3.24.4 | 11.0.4~dev4-3.24.4 |
openstack-swiftSUSE:OpenStack Cloud 9 From an advisory covering 3 CVEs |
before 2.19.3~dev3-3.6.3 | 2.19.3~dev3-3.6.3 |
python-WerkzeugSUSE:OpenStack Cloud 9 From an advisory covering 3 CVEs |
before 0.14.1-3.6.2 | 0.14.1-3.6.2 |
venv-openstack-designateSUSE:OpenStack Cloud 9 From an advisory covering 3 CVEs |
before 7.0.2~dev2-3.41.2 | 7.0.2~dev2-3.41.2 |
venv-openstack-heatSUSE:OpenStack Cloud 9 From an advisory covering 3 CVEs |
before 11.0.4~dev4-3.43.2 | 11.0.4~dev4-3.43.2 |
venv-openstack-keystoneSUSE:OpenStack Cloud 9 From an advisory covering 3 CVEs |
before 14.2.1~dev9-3.42.2 | 14.2.1~dev9-3.42.2 |
venv-openstack-magnumSUSE:OpenStack Cloud 9 From an advisory covering 3 CVEs |
before 7.2.1~dev1-4.41.3 | 7.2.1~dev1-4.41.3 |
venv-openstack-octaviaSUSE:OpenStack Cloud 9 From an advisory covering 3 CVEs |
before 3.2.3~dev7-4.41.2 | 3.2.3~dev7-4.41.2 |
venv-openstack-saharaSUSE:OpenStack Cloud 9 From an advisory covering 3 CVEs |
before 9.0.2~dev15-3.41.2 | 9.0.2~dev15-3.41.2 |
venv-openstack-swiftSUSE:OpenStack Cloud 9 From an advisory covering 3 CVEs |
before 2.19.3~dev3-2.36.3 | 2.19.3~dev3-2.36.3 |
openstack-heatSUSE:OpenStack Cloud Crowbar 9 From an advisory covering 3 CVEs |
before 11.0.4~dev4-3.24.4 | 11.0.4~dev4-3.24.4 |
openstack-swiftSUSE:OpenStack Cloud Crowbar 9 From an advisory covering 3 CVEs |
before 2.19.3~dev3-3.6.3 | 2.19.3~dev3-3.6.3 |
python-WerkzeugSUSE:OpenStack Cloud Crowbar 9 From an advisory covering 3 CVEs |
before 0.14.1-3.6.2 | 0.14.1-3.6.2 |
swiftUbuntu:16.04:LTS |
All versions, plus listed versions 2.5.0-0ubuntu12.7.0-0ubuntu22.7.0-0ubuntu2.12.7.1-0ubuntu12.7.1-0ubuntu2 |
None known |
swiftUbuntu:20.04:LTS |
before 2.25.2-0ubuntu1.1, plus listed versions 2.23.0-0ubuntu12.23.1-0ubuntu12.24.0~git2019121715.e890b0f0f-0ubuntu12.24.0-0ubuntu12.24.1~git2020032711.712bf3c9f-0ubuntu2 Show 4 moreShow less2.24.1~git2020041316.a495f1e32-0ubuntu12.25.0-0ubuntu0.20.04.12.25.1-0ubuntu12.25.2-0ubuntu1 |
2.25.2-0ubuntu1.1 |
swiftUbuntu:22.04:LTS |
before 2.29.2-0ubuntu1, plus listed versions 2.28.0+git2021090911.5d52afbe4-0ubuntu12.28.0+git2021120815.1859f2e16-0ubuntu12.28.0+git2021121320.876377435-0ubuntu12.28.0+git2022011309.32da73f5c-0ubuntu12.29.0+git2022030314.3ff3076ce-0ubuntu12.29.0+git2022030314.3ff3076ce-0ubuntu22.29.1-0ubuntu1 |
2.29.2-0ubuntu1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-47950 is a medium vulnerability (CVSS 6.5) in Openstack Swift, published January 18, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.02%, the 63rd percentile. Fixed in swift 2.28.1.
References
launchpad.net/bugs/1998625
security.openstack.org/ossa/OSSA-2023-001.html
lists.debian.org/debian-lts-announce/2023/01/msg00021.html
debian.org/security/2023/dsa-5327
nvd.nist.gov/vuln/detail/CVE-2022-47950
github.com/openstack/swift/commit/12e54391861e7d182d58f89fb88b027e65842640
Show 31 moreShow less
github.com/openstack/swift/commit/7d13d1a82e1f5d01205a13184907501b4fcbe2b0
github.com/openstack/swift/commit/8dd96470a859dc7b189404fb67bd3899ae9c617f
github.com/openstack/swift/commit/b8467e190f6fc67fd8fb6a8c5e32b2aa6a10fd8e
github.com/openstack/swift/commit/baa98848451b5c234443a068691e12841a5a8383
github.com/openstack/swift/commit/c834e7a53d5a33a3fd13ffd954e6f4f4ee953dfc
github.com/openstack/swift/commit/d8d04ef43c90079d436b2e49617b4425ba39c28e
github.com/openstack/swift/commit/f10672514217adadfc776d9ea2ffb20a37ce073b
github.com/advisories/GHSA-274c-rx2j-2v3x
github.com/CVEProject/cvelistV5/tree/main/cves/2022/47xxx/CVE-2022-47950.json
security-tracker.debian.org/tracker/CVE-2022-47950
github.com/openstack/swift
pypi.org/project/swift
access.redhat.com/errata/RHSA-2023:1013
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2160618
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1013.json
access.redhat.com/security/cve/CVE-2022-47950
cve.org/CVERecord?id=CVE-2022-47950
access.redhat.com/errata/RHSA-2023:1277
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1277.json
suse.com/support/update/announcement/2023/suse-su-20230323-1
bugzilla.suse.com/1207035
suse.com/security/cve/CVE-2022-47950
suse.com/support/update/announcement/2023/suse-su-20232378-1
bugzilla.suse.com/1208283
bugzilla.suse.com/1209774
suse.com/security/cve/CVE-2023-1625
suse.com/security/cve/CVE-2023-25577
ubuntu.com/security/CVE-2022-47950
openwall.com/lists/oss-security/2023/01/17/1
ubuntu.com/security/notices/USN-5852-1