{"answers":{"affected":"1 open source package ship an affected version, including salt. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-33226 exists.","fix":"Upgrade salt to 3003.1 or later.","what":"CVE-2021-33226 is a critical code injection vulnerability in Saltstack Salt, published on 17 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-33226 and fix it if it is affected.\n\nWhat it is: CVE-2021-33226 is a critical code injection vulnerability in Saltstack Salt, published on 17 Feb 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-33226 exists.\n\nAffected packages and fixed versions:\n- salt (PyPI): affected all versions; fixed in 3003.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-2021-33226/ (Markdown: https://insights.sbomify.com/CVE-2021-33226/index.md)","id":"CVE-2021-33226","markdown":"https://insights.sbomify.com/CVE-2021-33226/index.md","name":"CVE-2021-33226","record":{"aliases":["GHSA-3cjm-9wq5-p7gj","PYSEC-2023-47"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"SaltStack configuration management","requires_auth":"none","summary":"An attacker could potentially execute arbitrary code via the func variable in SaltStack, though the exploitability is disputed.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"salt","vendor":"saltstack"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"description":"Buffer Overflow vulnerability in Saltstack v.3003 and before allows attacker to execute arbitrary code via the func variable in salt/salt/modules/status.py file. NOTE: this is disputed by third parties because an attacker cannot influence the eval input","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Code injection in n/a","id":"CVE-2021-33226","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"saltstack:salt","products":["saltstack:salt"],"type":"code_injection","year":"2021"},"n_packages":1,"n_references":2,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-33231"},"packages":[{"ecosystem":"PyPI","fixed":["3003.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:pypi/salt","source":"PYSEC-2023-47"}],"prev":{"headline":"File upload in n/a","id":"CVE-2021-33224"},"products":["n/a"],"published":"2023-02-17","related":[{"cvss_score":10,"headline":"SaltStack insecurely uses /tmp","id":"CVE-2013-4437","kev_date_added":null,"published":"2013-11-05"},{"cvss_score":10,"headline":"SaltStack Privilege Escalation vulnerability","id":"CVE-2013-6617","kev_date_added":null,"published":"2013-11-05"},{"cvss_score":9.8,"headline":"salt-api unauthenticated remote code execution","id":"CVE-2021-25315","kev_date_added":null,"published":"2021-03-03"},{"cvss_score":9.8,"headline":"SaltStack Salt Remote command execution and incorrect access control when using salt-api","id":"CVE-2018-15751","kev_date_added":null,"published":"2018-10-24"},{"cvss_score":9.8,"headline":"SaltStack Salt allows compromised salt-minions to impersonate the salt-master","id":"CVE-2017-7893","kev_date_added":null,"published":"2018-04-23"},{"cvss_score":9.8,"headline":"SaltStack Salt Directory traversal vulnerability in minion id validation","id":"CVE-2017-14695","kev_date_added":null,"published":"2017-10-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-18","vendors":["n/a"]},"summary":"An attacker could potentially execute arbitrary code via the func variable in SaltStack, though the exploitability is disputed.","url":"https://insights.sbomify.com/CVE-2021-33226/"}