# CVE-2026-50221: OpenStack Swift vulnerable to authenticated server-side request forgery

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: Low; User interaction: None; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low; Confidentiality impact on other systems: Low; Integrity impact on other systems: Low; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-918
- **Aliases:** GHSA-h8rc-w822-q8vq, PYSEC-2026-4173
- **Published:** 2026-06-23T17:03:32.971Z
- **Modified:** 2026-10-25T23:10:00.167Z

## Who should check

- Projects that depend on PyPI package swift (\< 2.37.2)
- Anyone running OpenStack Swift \>= 2.0.0, \< 2.35.3; \>= 2.36.0, \< 2.36.2; \>= 2.37.0, \< 2.37.2

## Description

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 and fixed versions

- PyPI `swift`: affected \< 2.37.2; fixed 2.37.2 (osv)
- OpenStack Swift: \>= 2.0.0, \< 2.35.3; \>= 2.36.0, \< 2.36.2; \>= 2.37.0, \< 2.37.2 (cvelist)

## Mitigation

- Upgrade swift to 2.37.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-50221. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-50221.md
Affected: swift < 2.37.2
Fixed in: 2.37.2

Steps:
1. Search this machine and project for swift (PyPI), OpenStack Swift: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-50221 being exploited?

There is no confirmed exploitation: CVE-2026-50221 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-50221?

Medium: CVSS 5.3 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-50221?

swift \< 2.37.2.

### Is there a fix for CVE-2026-50221?

Yes. Fixed in 2.37.2. Upgrade swift to 2.37.2 or later.

### How do I check if I'm affected by CVE-2026-50221?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-50221>
- vendor: <https://github.com/advisories/GHSA-h8rc-w822-q8vq>
- patch: <https://www.openwall.com/lists/oss-security/2026/06/23/5>
- patch: <https://security.openstack.org/ossa/OSSA-2026-024.html>
- patch: <http://www.openwall.com/lists/oss-security/2026/06/23/5>
- patch: <https://github.com/openstack/swift/commit/75b050fdb1d1a6096f3765faa3b2059e28065d13>
- patch: <https://opendev.org/openstack/swift/commit/75b050fdb1d1a6096f3765faa3b2059e28065d13>
- exploit: <https://launchpad.net/bugs/2150261>
- other: <https://pypi.org/project/swift>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-50221>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-h8rc-w822-q8vq> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-4173> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-50221> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-50221>
