Advisory

PYSEC-2026-927

Also known as: CVE-2022-47950, GHSA-274c-rx2j-2v3x

Summary

OpenStack Swift XML external entities (XXE) Injection

Details

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).

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2026-07-07 10:17 UTC
Modified
2026-07-07 11:45 UTC

Affected packages and fixes

swift

PyPI · All systems

Affected

  • introduced 0, fixed 2.28.1, introduced 2.29.0, fixed 2.29.2, introduced 2.30.0, fixed 2.30.1 (ecosystem)

Fixed versions

2.28.1, 2.29.2, 2.30.1

Fix

  • Fixed version 2.28.1
    pip install --upgrade swift==2.28.1
  • Fixed version 2.29.2
    pip install --upgrade swift==2.29.2
  • Fixed version 2.30.1
    pip install --upgrade swift==2.30.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences