Advisory

GHSA-274c-rx2j-2v3x

Also known as: CVE-2022-47950, PYSEC-2026-927

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: The source's own band: MODERATE

Dates

Published
2023-01-18 18:30 UTC
Modified
2026-07-07 11:56 UTC

Affected packages and fixes

swift

PyPI · All systems

Affected

  • introduced 0, fixed 2.28.1 (ecosystem)

Fixed versions

2.28.1

Fix

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

swift

PyPI · All systems

Affected

  • introduced 2.29.0, fixed 2.29.2 (ecosystem)

Fixed versions

2.29.2

Fix

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

swift

PyPI · All systems

Affected

  • introduced 2.30.0, fixed 2.30.1 (ecosystem)

Fixed versions

2.30.1

Fix

  • 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences