# CVE-2022-47950: PYSEC-2026-927 - OpenStack Swift XML external entities (XXE) Injection

Source: https://junglewise.ai/threats/cve-2022-47950-openstack-swift-xxe-injection-in-s3-api  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2022-47950 · Severity: low · CVSS 3.1 · Published 2026-07-07

OpenStack Swift is an object storage service that provides S3-compatible APIs. An XML external entity (XXE) injection vulnerability in the S3 API allows authenticated users to read arbitrary files from the server, potentially exposing sensitive data such as credentials and secrets stored on the host system.

Technologies: [OpenStack Swift](https://junglewise.ai/threats/technologies/swift), [swift (PyPI)](https://junglewise.ai/threats/technologies/pypi-swift). Vendors: [OpenStack](https://junglewise.ai/threats/vendors/openstack), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2022-47950 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-47950 being exploited in the wild.

**How severe is CVE-2022-47950?** Low severity, with a CVSS score of 3.1, published 7 July 2026.

**Which products and versions are affected?** OpenStack Swift before 2.28.1, 2.29.0–2.29.1, 2.30.0; swift (PyPI) ECOSYSTEM:introduced=0,fixed=2.28.1,introduced=2.29.0,fixed=2.29.2,introduced=2.30.0,fixed=2.30.1.

**Is there a fix for CVE-2022-47950?** Yes. swift (PyPI): upgrade to 2.30.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2022-47950 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2022-47950?** Check whether you run OpenStack Swift or swift (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- swift (PyPI): upgrade to 2.30.1 or later

  ```sh
  pip install "swift>=2.30.1"
  ```


## Technical details

OpenStack Swift versions before 2.28.1, 2.29.x before 2.29.2, and 2.30.0 fail to disable XML external entity (XXE) resolution in the S3 API middleware. An authenticated attacker can supply crafted XML in S3 API requests to trigger entity resolution, allowing arbitrary file read from the server's filesystem. The vulnerability affects both s3api (Rocky and later) and swift3 (Queens and earlier) deployments. The fix disables entity resolution, replacing unknown entities with empty strings. Patches are available in versions 2.28.1, 2.29.2, and 2.30.1 and later.

## Affected products

- OpenStack Swift before 2.28.1, 2.29.0–2.29.1, 2.30.0

## Identifiers

- CVE-2022-47950
- GHSA-274c-rx2j-2v3x
- PYSEC-2026-927

## Timeline

- 2023-01-18: disclosed
- 2023-01-18: patched: Patches released for versions 2.28.1, 2.29.2, and 2.30.1

## References

- [https://github.com/openstack/swift/commit/12e54391861e7d182d58f89fb88b027e65842640](https://github.com/openstack/swift/commit/12e54391861e7d182d58f89fb88b027e65842640)

## Related threats

- [OpenStack Swift tempurl information disclosure via X-Copy-From](https://junglewise.ai/threats/cve-2026-97149-in-openstack-swift-before-2-38-2-the-tempurl-middleware-does-not)
- [PYSEC-2026-935 - OpenStack Swift allows authenticated users to cause a denial of service](https://junglewise.ai/threats/cve-2013-4155-openstack-swift-allows-authenticated-users-to-cause-a-denial-of)
- [PYSEC-2026-928 - OpenStack Swift Cross-site Scriping vulnerability](https://junglewise.ai/threats/cve-2014-3497-openstack-swift-cross-site-scriping-vulnerability)
- [PYSEC-2026-929 - OpenStack Object Storage (Swift) allows remote attackers to cause a denial of service](https://junglewise.ai/threats/cve-2016-0737-openstack-object-storage-swift-allows-remote-attackers-to-cause-a)
- [PYSEC-2026-932 - OpenStack Object Storage (Swift) allows remote attackers to cause a denial of service](https://junglewise.ai/threats/cve-2016-0738-openstack-object-storage-swift-allows-remote-attackers-to-cause-a)
