---
id: CVE-2026-50221
aliases:
  - GHSA-h8rc-w822-q8vq
title: OpenStack Swift vulnerable to authenticated server-side request forgery
summary: OpenStack Swift vulnerable to authenticated server-side request forgery
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'
vendor: swift
product: swift
ecosystem: pip
affected:
  - swift < 2.37.2
patched:
  - swift 2.37.2
published: '2026-06-23'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T19:15:05.739225906Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-h8rc-w822-q8vq'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-50221'
  - url: >-
      https://github.com/openstack/swift/commit/75b050fdb1d1a6096f3765faa3b2059e28065d13
  - url: 'https://launchpad.net/bugs/2150261'
  - url: >-
      https://opendev.org/openstack/swift/commit/75b050fdb1d1a6096f3765faa3b2059e28065d13
  - url: 'https://security.openstack.org/ossa/OSSA-2026-024.html'
  - url: 'https://www.openwall.com/lists/oss-security/2026/06/23/5'
  - url: 'http://www.openwall.com/lists/oss-security/2026/06/23/5'
  - url: 'https://github.com/advisories/GHSA-h8rc-w822-q8vq'
tags:
  - osv
  - pip
  - ghsa
epss: 0.00217
epssPercentile: 0.10751
cwe:
  - CWE-918
ingestedAt: '2026-09-24T19:50:30.724Z'
---

## Overview

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 packages

- `swift < 2.37.2`

## Remediation

Upgrade to a patched release:

- `swift 2.37.2`
