OpenStack Swift XML external entities (XXE) Injection
Date: 2023-01
Affected: pip/swift, pip/swift, pip/swift
Attack vector: other
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2022-47950
CWE: CWE-552
CWE-611
CVSS: 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)

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


Mitigations:

Architectural layers (MAESTRO):