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).
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (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 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-47950
- https://github.com/openstack/swift/commit/12e54391861e7d182d58f89fb88b027e65842640
- https://github.com/openstack/swift/commit/7d13d1a82e1f5d01205a13184907501b4fcbe2b0
- https://github.com/openstack/swift/commit/8dd96470a859dc7b189404fb67bd3899ae9c617f
- https://github.com/openstack/swift/commit/b8467e190f6fc67fd8fb6a8c5e32b2aa6a10fd8e
- https://github.com/openstack/swift/commit/baa98848451b5c234443a068691e12841a5a8383
- https://github.com/openstack/swift/commit/c834e7a53d5a33a3fd13ffd954e6f4f4ee953dfc
- https://github.com/openstack/swift/commit/d8d04ef43c90079d436b2e49617b4425ba39c28e
- https://github.com/openstack/swift/commit/f10672514217adadfc776d9ea2ffb20a37ce073b
- https://github.com/openstack/swift
- https://launchpad.net/bugs/1998625
- https://lists.debian.org/debian-lts-announce/2023/01/msg00021.html
- https://security.openstack.org/ossa/OSSA-2023-001.html
- https://www.debian.org/security/2023/dsa-5327
- https://pypi.org/project/swift
- https://github.com/advisories/GHSA-274c-rx2j-2v3x
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-552, CWE-611- Platform
- Python (PyPI)
- Package
swift- Disclosed
- 18.01.2023
- Updated
- 11.10.2026 13:18
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-927 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-274c-rx2j-2v3x - CC BY 4.0
Vulnerability history: swift
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 14
- First → latest
- 01.2014 06.2026
- Without a fix
- 1
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 5
- Medium 7
- Low 1
Disclosures per year
- 2017: 0
- 2018: 0
- 2019: 0
- 2020: 0
- 2021: 1
- 2022: 9
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 2
earlier: 1
-
OpenStack Swift XML external entities (XXE) Injection this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.