CVE-2022-47950
OpenStack Swift XML external entities (XXE) Injection
Reported by mitre · Published January 18, 2023
swift is fixed in 2.30.1, 2.29.2 and 2.28.1 (PyPI)
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).
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| swift | PyPI | 2.30.1, 2.29.2, 2.28.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| PyPI | swift | 0, 2.29.0, 2.30.0 |
| n/a | n/a | * |
Timeline
- Jan 18, 2023 CVE Published
- Jan 18, 2023 PoC Published
- Jan 19, 2023 EPSS Score (30 in total, the first dated here)
- Apr 4, 2025 CVE Updated
- Mar 9, 2026 Security Advisory (10 in total, the first dated here)
- Mar 21, 2026 Distribution Patch (9 in total, the first dated here)
- May 24, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-47950
vulnetix vdb fixes CVE-2022-47950
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-47950/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20230125 [SECURITY] [DLA 3281-1] swift security update mailing-list
- DSA-5327 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-47950 advisory
- https://github.com/advisories/GHSA-274c-rx2j-2v3x advisory
- https://github.com/openstack/swift/commit/12e54391861e7d182d58f89fb88b027e65842640 patch
- https://github.com/openstack/swift/commit/7d13d1a82e1f5d01205a13184907501b4fcbe2b0 patch
- https://github.com/openstack/swift/commit/8dd96470a859dc7b189404fb67bd3899ae9c617f patch
- https://github.com/openstack/swift/commit/b8467e190f6fc67fd8fb6a8c5e32b2aa6a10fd8e patch
- https://github.com/openstack/swift/commit/baa98848451b5c234443a068691e12841a5a8383 patch
- https://github.com/openstack/swift/commit/c834e7a53d5a33a3fd13ffd954e6f4f4ee953dfc patch
- https://github.com/openstack/swift/commit/d8d04ef43c90079d436b2e49617b4425ba39c28e patch
- https://github.com/openstack/swift/commit/f10672514217adadfc776d9ea2ffb20a37ce073b patch
- https://github.com/openstack/swift url