OpenStack Swift vulnerable to authenticated server-side request forgery
In OpenStack Swift before 2.37.2, proxy-server does not strip internal update headers (X-Container-Host, X-Container-Device, X-Delete-At-Host, X-Delete-At-Device) from client requests before forwarding them to object-servers. An authenticated user with write access can inject these headers to redirect container update requests to an attacker-controlled server, enabling server-side request forgery. The SSRF requests expose internal cluster metadata including storage policy indexes, partition mappings, device names, and when at rest encryption is enabled, cipher text and initialization vectors for the container-level encryption key. The attacker can also cause "ghost listings" in arbitrary containers via the shard-range redirect mechanism.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | swift | < 2.37.2 | 2.37.2 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-50221
- https://github.com/openstack/swift/commit/75b050fdb1d1a6096f3765faa3b2059e28065d13
- https://launchpad.net/bugs/2150261
- https://opendev.org/openstack/swift/commit/75b050fdb1d1a6096f3765faa3b2059e28065d13
- https://security.openstack.org/ossa/OSSA-2026-024.html
- https://www.openwall.com/lists/oss-security/2026/06/23/5
- http://www.openwall.com/lists/oss-security/2026/06/23/5
- https://pypi.org/project/swift
- https://github.com/advisories/GHSA-h8rc-w822-q8vq
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N- Weakness (CWE)
CWE-918- Platform
- Python (PyPI)
- Package
swift- Disclosed
- 23.06.2026
- Updated
- 11.10.2026 15:18
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-4173 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-h8rc-w822-q8vq - 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 vulnerable to authenticated server-side request forgery 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.