{"answers":{"affected":"7 open source packages ship an affected version, including swift. It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-47950 in the wild and no public exploit code.","fix":"Upgrade swift to a fixed version for your release line: 2.28.1, 2.29.2 or 2.30.1.","what":"CVE-2022-47950 is a medium-severity path traversal vulnerability in Debian Debian Linux, published on 18 Jan 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-47950 and fix it if it is affected.\n\nWhat it is: CVE-2022-47950 is a medium-severity path traversal vulnerability in Debian Debian Linux, published on 18 Jan 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-47950 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- swift (PyPI): affected all versions; fixed in 2.28.1, 2.29.2, 2.30.1\n- swift (PyPI): affected all versions; fixed in 2.28.1\n- swift (PyPI): affected all versions; fixed in 2.28.1\n- swift (PyPI): affected from 2.29.0; fixed in 2.29.2\n- swift (PyPI): affected from 2.29.0; fixed in 2.29.2\n- swift (PyPI): affected from 2.30.0; fixed in 2.30.1\n- swift (PyPI): affected from 2.30.0; fixed in 2.30.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-47950/ (Markdown: https://insights.sbomify.com/CVE-2022-47950/index.md)","id":"CVE-2022-47950","markdown":"https://insights.sbomify.com/CVE-2022-47950/index.md","name":"CVE-2022-47950","record":{"aliases":["DEBIAN-CVE-2022-47950","DLA-3281-1","DSA-5327-1","GHSA-274c-rx2j-2v3x","PYSEC-2026-927","RHSA-2023:1013","RHSA-2023:1277","SUSE-SU-2023:0323-1","UBUNTU-CVE-2022-47950","USN-5852-1"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenStack Swift S3 API","requires_auth":"low_privilege","summary":"Authenticated users can read arbitrary files from the host server via crafted XML requests in the S3 API, exposing sensitive data.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"swift","vendor":"openstack"}],"cvss":{"score":6.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"}],"description":"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).","ecosystems":["PyPI","Red Hat:openstack:13::el7","Red Hat:openstack:16.1::el8","Red Hat:openstack:16.2::el8","Red Hat:openstack:17.0::el9","SUSE:HPE Helion OpenStack 8","SUSE:OpenStack Cloud 8","SUSE:OpenStack Cloud Crowbar 8"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"OpenStack Swift XML external entities (XXE) Injection","id":"CVE-2022-47950","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"path_traversal","year":"2022"},"n_packages":29,"n_references":4,"next":{"headline":"OpenStack Cinder, glance, and Nova vulnerable to Path Traversal","id":"CVE-2022-47951"},"packages":[{"ecosystem":"PyPI","fixed":["2.28.1","2.29.2","2.30.1"],"introduced":["0","2.29.0","2.30.0"],"last_affected":[],"package":"swift","purl":"pkg:pypi/swift","source":"PYSEC-2026-927"},{"ecosystem":"PyPI","fixed":["2.28.1"],"introduced":["0"],"last_affected":[],"package":"swift","purl":null,"source":"GHSA-274c-rx2j-2v3x"},{"ecosystem":"PyPI","fixed":["2.28.1"],"introduced":["0"],"last_affected":[],"package":"swift","purl":"pkg:pypi/swift","source":"GHSA-274c-rx2j-2v3x"},{"ecosystem":"PyPI","fixed":["2.29.2"],"introduced":["2.29.0"],"last_affected":[],"package":"swift","purl":null,"source":"GHSA-274c-rx2j-2v3x"},{"ecosystem":"PyPI","fixed":["2.29.2"],"introduced":["2.29.0"],"last_affected":[],"package":"swift","purl":"pkg:pypi/swift","source":"GHSA-274c-rx2j-2v3x"},{"ecosystem":"PyPI","fixed":["2.30.1"],"introduced":["2.30.0"],"last_affected":[],"package":"swift","purl":null,"source":"GHSA-274c-rx2j-2v3x"},{"ecosystem":"PyPI","fixed":["2.30.1"],"introduced":["2.30.0"],"last_affected":[],"package":"swift","purl":"pkg:pypi/swift","source":"GHSA-274c-rx2j-2v3x"},{"ecosystem":"Red Hat:openstack:13::el7","fixed":["0:1.12.1-1.el7ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-plugin-swift3","purl":"pkg:rpm/redhat/openstack-swift-plugin-swift3","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["0:2.23.2-1.20230201163512.eef87ee.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift","purl":"pkg:rpm/redhat/openstack-swift","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["0:2.23.2-1.20230201163512.eef87ee.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-account","purl":"pkg:rpm/redhat/openstack-swift-account","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["0:2.23.2-1.20230201163512.eef87ee.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-container","purl":"pkg:rpm/redhat/openstack-swift-container","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["0:2.23.2-1.20230201163512.eef87ee.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-object","purl":"pkg:rpm/redhat/openstack-swift-object","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["0:2.23.2-1.20230201163512.eef87ee.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-proxy","purl":"pkg:rpm/redhat/openstack-swift-proxy","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:16.1::el8","fixed":["0:2.23.2-1.20230201163512.eef87ee.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-swift","purl":"pkg:rpm/redhat/python3-swift","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["0:2.23.4-2.20220422185313.2829195.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift","purl":"pkg:rpm/redhat/openstack-swift","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["0:2.23.4-2.20220422185313.2829195.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-account","purl":"pkg:rpm/redhat/openstack-swift-account","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["0:2.23.4-2.20220422185313.2829195.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-container","purl":"pkg:rpm/redhat/openstack-swift-container","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["0:2.23.4-2.20220422185313.2829195.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-object","purl":"pkg:rpm/redhat/openstack-swift-object","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["0:2.23.4-2.20220422185313.2829195.el8ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-proxy","purl":"pkg:rpm/redhat/openstack-swift-proxy","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:16.2::el8","fixed":["0:2.23.4-2.20220422185313.2829195.el8ost"],"introduced":["0"],"last_affected":[],"package":"python3-swift","purl":"pkg:rpm/redhat/python3-swift","source":"RHSA-2023:1277"},{"ecosystem":"Red Hat:openstack:17.0::el9","fixed":["0:2.27.1-0.20230201120900.6a1a8ce.el9ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift","purl":"pkg:rpm/redhat/openstack-swift","source":"RHSA-2023:1013"},{"ecosystem":"Red Hat:openstack:17.0::el9","fixed":["0:2.27.1-0.20230201120900.6a1a8ce.el9ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-account","purl":"pkg:rpm/redhat/openstack-swift-account","source":"RHSA-2023:1013"},{"ecosystem":"Red Hat:openstack:17.0::el9","fixed":["0:2.27.1-0.20230201120900.6a1a8ce.el9ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-container","purl":"pkg:rpm/redhat/openstack-swift-container","source":"RHSA-2023:1013"},{"ecosystem":"Red Hat:openstack:17.0::el9","fixed":["0:2.27.1-0.20230201120900.6a1a8ce.el9ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-object","purl":"pkg:rpm/redhat/openstack-swift-object","source":"RHSA-2023:1013"},{"ecosystem":"Red Hat:openstack:17.0::el9","fixed":["0:2.27.1-0.20230201120900.6a1a8ce.el9ost"],"introduced":["0"],"last_affected":[],"package":"openstack-swift-proxy","purl":"pkg:rpm/redhat/openstack-swift-proxy","source":"RHSA-2023:1013"},{"ecosystem":"Red Hat:openstack:17.0::el9","fixed":["0:2.27.1-0.20230201120900.6a1a8ce.el9ost"],"introduced":["0"],"last_affected":[],"package":"python3-swift","purl":"pkg:rpm/redhat/python3-swift","source":"RHSA-2023:1013"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["1.7.0.dev372-3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-swift3","purl":"pkg:rpm/suse/python-swift3\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2023:0323-1"},{"ecosystem":"SUSE:OpenStack Cloud 8","fixed":["1.7.0.dev372-3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-swift3","purl":"pkg:rpm/suse/python-swift3\u0026distro=SUSE%20OpenStack%20Cloud%208","source":"SUSE-SU-2023:0323-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 8","fixed":["1.7.0.dev372-3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-swift3","purl":"pkg:rpm/suse/python-swift3\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%208","source":"SUSE-SU-2023:0323-1"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2022-47949"},"products":["n/a"],"published":"2023-01-18","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-04","vendors":["n/a"]},"summary":"Authenticated users can read arbitrary files from the host server via crafted XML requests in the S3 API, exposing sensitive data.","url":"https://insights.sbomify.com/CVE-2022-47950/"}