Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. swift
  4. ›
  5. CVE-2022-47950

CVE-2022-47950: OpenStack Swift XML external entities (XXE) Injection

January 18, 2023 (updated April 4, 2025)

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

References

  • github.com/advisories/GHSA-274c-rx2j-2v3x
  • github.com/openstack/swift
  • github.com/openstack/swift/commit/12e54391861e7d182d58f89fb88b027e65842640
  • github.com/openstack/swift/commit/7d13d1a82e1f5d01205a13184907501b4fcbe2b0
  • github.com/openstack/swift/commit/8dd96470a859dc7b189404fb67bd3899ae9c617f
  • github.com/openstack/swift/commit/b8467e190f6fc67fd8fb6a8c5e32b2aa6a10fd8e
  • github.com/openstack/swift/commit/baa98848451b5c234443a068691e12841a5a8383
  • github.com/openstack/swift/commit/c834e7a53d5a33a3fd13ffd954e6f4f4ee953dfc
  • github.com/openstack/swift/commit/d8d04ef43c90079d436b2e49617b4425ba39c28e
  • github.com/openstack/swift/commit/f10672514217adadfc776d9ea2ffb20a37ce073b
  • launchpad.net/bugs/1998625
  • lists.debian.org/debian-lts-announce/2023/01/msg00021.html
  • nvd.nist.gov/vuln/detail/CVE-2022-47950
  • security.openstack.org/ossa/OSSA-2023-001.html
  • www.debian.org/security/2023/dsa-5327

Code Behaviors & Features

Detect and mitigate CVE-2022-47950 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.28.1, all versions starting from 2.29.0 before 2.29.2, all versions starting from 2.30.0 before 2.30.1, version 2.30.0

Fixed versions

  • 2.28.1
  • 2.29.2
  • 2.30.1

Solution

Upgrade to versions 2.28.1, 2.29.2, 2.30.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-552: Files or Directories Accessible to External Parties
  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

pypi/swift/CVE-2022-47950.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:50 +0000.