{"answers":{"affected":"3 open source packages ship an affected version, including salt. It affects 3 products.","exploited":"There is no known exploitation of CVE-2021-21996 in the wild and no public exploit code.","fix":"Upgrade salt to 3003.3 or later.","what":"CVE-2021-21996 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 8 Sep 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-21996 and fix it if it is affected.\n\nWhat it is: CVE-2021-21996 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 8 Sep 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-21996 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- salt (PyPI): affected all versions; fixed in 3003.3\n- salt (PyPI): affected all versions; fixed in 3003.3\n- salt (PyPI): affected all versions; fixed in 3003.3\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-2021-21996/ (Markdown: https://insights.sbomify.com/CVE-2021-21996/index.md)","id":"CVE-2021-21996","markdown":"https://insights.sbomify.com/CVE-2021-21996/index.md","name":"CVE-2021-21996","record":{"aliases":["DLA-2823-1","DSA-5011-1","GHSA-pf7h-h2wq-m7pg","PYSEC-2021-318","SUSE-SU-2021:14833-1","SUSE-SU-2021:3550-1","SUSE-SU-2021:3553-1","SUSE-SU-2021:3555-1","SUSE-SU-2021:3556-1","SUSE-SU-2021:3557-1","SUSE-SU-2021:3621-1","SUSE-SU-2021:3906-1","UBUNTU-CVE-2021-21996","openSUSE-SU-2021:1443-1","openSUSE-SU-2021:3557-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"SaltStack Salt","requires_auth":"low_privilege","summary":"Attackers controlling source URLs can gain root file system access on Salt minions, requiring immediate upgrades to SaltStack Salt.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"salt","vendor":"saltstack"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"An issue was discovered in SaltStack Salt before 3003.3. A user who has control of the source, and source_hash URLs can gain full file system access as root on a salt minion.","ecosystems":["PyPI","SUSE:Enterprise Storage 6","SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Micro 5.0","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Module for Advanced Systems Management 12","SUSE:Linux Enterprise Module for Basesystem 15 SP2","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Server Applications 15 SP2","SUSE:Linux Enterprise Module for Server Applications 15 SP3","SUSE:Linux Enterprise Module for Transactional Server 15 SP2","SUSE:Linux Enterprise Module for Transactional Server 15 SP3","SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLS","SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLS","SUSE:Linux Enterprise Server 15 SP1-BCL","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Manager Client Tools 12","SUSE:Manager Server Module 4.1","openSUSE:Leap 15.2","openSUSE:Leap 15.3"],"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":"Exposure of Resource to Wrong Sphere in salt","id":"CVE-2021-21996","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora","saltstack:salt"],"type":"path_traversal","year":"2021"},"n_packages":47,"n_references":8,"next":{"headline":"Denial of service in VMware Tools for Windows","id":"CVE-2021-21997"},"packages":[{"ecosystem":"PyPI","fixed":["3003.3"],"introduced":["0"],"last_affected":[],"package":"salt","purl":null,"source":"GHSA-pf7h-h2wq-m7pg"},{"ecosystem":"PyPI","fixed":["3003.3"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:pypi/salt","source":"GHSA-pf7h-h2wq-m7pg"},{"ecosystem":"PyPI","fixed":["3003.3"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:pypi/salt","source":"PYSEC-2021-318"},{"ecosystem":"SUSE:Enterprise Storage 6","fixed":["3002.2-48.4"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Enterprise%20Storage%206","source":"SUSE-SU-2021:3555-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","fixed":["3002.2-48.4"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOS","source":"SUSE-SU-2021:3555-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["3002.2-48.4"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2021:3555-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-ESPOS","fixed":["3002.2-8.41.17.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOS","source":"SUSE-SU-2021:3553-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-LTSS","fixed":["3002.2-8.41.17.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSS","source":"SUSE-SU-2021:3553-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.0","fixed":["3002.2-49.2"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.0","source":"SUSE-SU-2021:3556-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["3002.2-50.1.15.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2021:3557-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Advanced Systems Management 12","fixed":["3000-46.151.2"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Advanced%20Systems%20Management%2012","source":"SUSE-SU-2021:3550-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP2","fixed":["3002.2-49.2"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2","source":"SUSE-SU-2021:3556-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["3002.2-50.1.15.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2021:3557-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP2","fixed":["3002.2-49.2"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP2","source":"SUSE-SU-2021:3556-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP3","fixed":["3002.2-50.1.15.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP3","source":"SUSE-SU-2021:3557-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Transactional Server 15 SP2","fixed":["3002.2-49.2"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Transactional%20Server%2015%20SP2","source":"SUSE-SU-2021:3556-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Transactional Server 15 SP3","fixed":["3002.2-50.1.15.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Transactional%20Server%2015%20SP3","source":"SUSE-SU-2021:3557-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLS","fixed":["2016.11.10-43.84.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP3-CLIENT-TOOLS","source":"SUSE-SU-2021:14833-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLS","fixed":["4.2.13-18.93.1"],"introduced":["0"],"last_affected":[],"package":"spacecmd","purl":"pkg:rpm/suse/spacecmd\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP3-CLIENT-TOOLS","source":"SUSE-SU-2021:14833-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP3-CLIENT-TOOLS","fixed":["4.2.14-27.59.1"],"introduced":["0"],"last_affected":[],"package":"spacewalk-client-tools","purl":"pkg:rpm/suse/spacewalk-client-tools\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP3-CLIENT-TOOLS","source":"SUSE-SU-2021:14833-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLS","fixed":["2016.11.10-43.84.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-CLIENT-TOOLS","source":"SUSE-SU-2021:14833-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLS","fixed":["4.2.13-18.93.1"],"introduced":["0"],"last_affected":[],"package":"spacecmd","purl":"pkg:rpm/suse/spacecmd\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-CLIENT-TOOLS","source":"SUSE-SU-2021:14833-1"},{"ecosystem":"SUSE:Linux Enterprise Server 11 SP4-CLIENT-TOOLS","fixed":["4.2.14-27.59.1"],"introduced":["0"],"last_affected":[],"package":"spacewalk-client-tools","purl":"pkg:rpm/suse/spacewalk-client-tools\u0026distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-CLIENT-TOOLS","source":"SUSE-SU-2021:14833-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-BCL","fixed":["3002.2-48.4"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCL","source":"SUSE-SU-2021:3555-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","fixed":["3002.2-48.4"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSS","source":"SUSE-SU-2021:3555-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15-LTSS","fixed":["3002.2-8.41.17.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSS","source":"SUSE-SU-2021:3553-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15","fixed":["3002.2-8.41.17.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015","source":"SUSE-SU-2021:3553-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP1","fixed":["3002.2-48.4"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1","source":"SUSE-SU-2021:3555-1"},{"ecosystem":"SUSE:Manager Client Tools 12","fixed":["3000-46.151.2"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Manager%20Client%20Tools%2012","source":"SUSE-SU-2021:3550-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["0.4.2-3.12.2"],"introduced":["0"],"last_affected":[],"package":"grafana-formula","purl":"pkg:rpm/suse/grafana-formula\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2021:3621-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["0.3.4-3.12.2"],"introduced":["0"],"last_affected":[],"package":"prometheus-formula","purl":"pkg:rpm/suse/prometheus-formula\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2021:3621-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["2016.11.10-17.2"],"introduced":["0"],"last_affected":[],"package":"py26-compat-salt","purl":"pkg:rpm/suse/py26-compat-salt\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2021:3621-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.2.1-3.3.2"],"introduced":["0"],"last_affected":[],"package":"py26-compat-tornado","purl":"pkg:rpm/suse/py26-compat-tornado\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2021:3621-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["3000.3-6.15.2"],"introduced":["0"],"last_affected":[],"package":"py27-compat-salt","purl":"pkg:rpm/suse/py27-compat-salt\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2021:3621-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.15-4.30.2"],"introduced":["0"],"last_affected":[],"package":"spacecmd","purl":"pkg:rpm/suse/spacecmd\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2021:3621-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.29-4.44.2"],"introduced":["0"],"last_affected":[],"package":"spacewalk-backend","purl":"pkg:rpm/suse/spacewalk-backend\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2021:3621-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.19-3.22.2"],"introduced":["0"],"last_affected":[],"package":"spacewalk-certs-tools","purl":"pkg:rpm/suse/spacewalk-certs-tools\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2021:3621-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.41-3.58.2"],"introduced":["0"],"last_affected":[],"package":"spacewalk-java","purl":"pkg:rpm/suse/spacewalk-java\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2021:3621-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.4-3.6.2"],"introduced":["0"],"last_affected":[],"package":"spacewalk-reports","purl":"pkg:rpm/suse/spacewalk-reports\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2021:3621-1"},{"ecosystem":"SUSE:Manager Server Module 4.1","fixed":["4.1.30-3.36.1"],"introduced":["0"],"last_affected":[],"package":"spacewalk-web","purl":"pkg:rpm/suse/spacewalk-web\u0026distro=SUSE%20Manager%20Server%20Module%204.1","source":"SUSE-SU-2021:3621-1"}],"prev":{"headline":"Denial of service in VMware ESXi and VMware Cloud Foundation","id":"CVE-2021-21995"},"products":["Saltstack Salt"],"published":"2021-09-08","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":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers controlling source URLs can gain root file system access on Salt minions, requiring immediate upgrades to SaltStack Salt.","url":"https://insights.sbomify.com/CVE-2021-21996/"}