{"answers":{"affected":"5 open source packages ship an affected version, including salt.","exploited":"There is no known exploitation of CVE-2023-34049 in the wild and no public exploit code.","fix":"Upgrade salt to a fixed version for your release line: 3005.4 or 3006.4.","what":"CVE-2023-34049 is a medium-severity path traversal vulnerability in SALT, published on 14 Nov 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-34049 and fix it if it is affected.\n\nWhat it is: CVE-2023-34049 is a medium-severity path traversal vulnerability in SALT, published on 14 Nov 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-34049 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- salt (PyPI): affected all versions; fixed in 3005.4, 3006.4\n- salt (PyPI): affected all versions; fixed in 3005.4\n- salt (PyPI): affected all versions; fixed in 3005.4\n- salt (PyPI): affected from 3006.0rc1; fixed in 3006.4\n- salt (PyPI): affected from 3006.0rc1; fixed in 3006.4\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-2023-34049/ (Markdown: https://insights.sbomify.com/CVE-2023-34049/index.md)","id":"CVE-2023-34049","markdown":"https://insights.sbomify.com/CVE-2023-34049/index.md","name":"CVE-2023-34049","record":{"aliases":["GHSA-4277-m35q-7c9w","PYSEC-2026-1892","SUSE-EL-9-CLIENT-TOOLS-2023-4757","SUSE-SU-2023:4386-1","SUSE-SU-2023:4387-1","SUSE-SU-2023:4388-1","SUSE-SU-2023:4389-1","SUSE-SU-2023:4390-1","SUSE-SU-2023:4412-1","SUSE-SU-2023:4748-1","SUSE-SU-2023:4749-1","SUSE-SU-2023:4757-1","UBUNTU-CVE-2023-34049","openSUSE-SU-2024:13630-1"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Salt configuration management","requires_auth":"low_privilege","summary":"Attackers with target access can execute arbitrary code via predictable Salt-SSH pre-flight script paths, requiring immediate patching.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"vmware","cpe":[],"cvss":{"score":6.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"The Salt-SSH pre-flight option copies the script to the target at a predictable path, which allows an attacker to force Salt-SSH to run their script. If an attacker has access to the target VM and knows the path to the pre-flight script before it runs they can ensure Salt-SSH runs their script with the privileges of the user running Salt-SSH. Do not make the copy path on the target predictable and ensure we check return codes of the scp command if the copy fails.","ecosystems":["PyPI","SUSE:EL-9:Update:Products:SaltBundle:Update","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Server Applications 15 SP4","SUSE:Linux Enterprise Module for Server Applications 15 SP5","SUSE:Linux Enterprise Module for Transactional Server 15 SP4","SUSE:Linux Enterprise Module for Transactional Server 15 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Manager Client Tools 12","SUSE:Manager Client Tools 15","SUSE:Manager Client Tools for RHEL, Liberty and Clones 9-CLIENT-TOOLS","SUSE:Manager Client Tools for SLE Micro 5","SUSE:Manager Proxy 4.3","SUSE:Manager Proxy Module 4.3","SUSE:Manager Server 4.3","SUSE:Manager Server Module 4.3","openSUSE:Leap 15.4","openSUSE:Leap 15.5","openSUSE:Leap Micro 5.3","openSUSE:Leap Micro 5.4"],"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":"Salt security advisory release - 2023-OCT-27","id":"CVE-2023-34049","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":87,"n_references":1,"next":{"headline":"Spring AMQP Deserialization Vulnerability","id":"CVE-2023-34050"},"packages":[{"ecosystem":"PyPI","fixed":["3005.4","3006.4"],"introduced":["0","3006.0rc1"],"last_affected":[],"package":"salt","purl":"pkg:pypi/salt","source":"PYSEC-2026-1892"},{"ecosystem":"PyPI","fixed":["3005.4"],"introduced":["0"],"last_affected":[],"package":"salt","purl":null,"source":"GHSA-4277-m35q-7c9w"},{"ecosystem":"PyPI","fixed":["3005.4"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:pypi/salt","source":"GHSA-4277-m35q-7c9w"},{"ecosystem":"PyPI","fixed":["3006.4"],"introduced":["3006.0rc1"],"last_affected":[],"package":"salt","purl":null,"source":"GHSA-4277-m35q-7c9w"},{"ecosystem":"PyPI","fixed":["3006.4"],"introduced":["3006.0rc1"],"last_affected":[],"package":"salt","purl":"pkg:pypi/salt","source":"GHSA-4277-m35q-7c9w"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["4.1.1-1.9.1"],"introduced":["0"],"last_affected":[],"package":"saltbundle-swig","purl":"pkg:rpm/suse/saltbundle-swig\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["1.4.4-1.6.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-appdirs","purl":"pkg:rpm/suse/saltbundlepy-appdirs\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["2018.1.18-1.9.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-certifi","purl":"pkg:rpm/suse/saltbundlepy-certifi\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["1.15.1-1.9.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-cffi","purl":"pkg:rpm/suse/saltbundlepy-cffi\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["2.8.1-1.3.4"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-dateutil","purl":"pkg:rpm/suse/saltbundlepy-dateutil\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["0.3-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-editables","purl":"pkg:rpm/suse/saltbundlepy-editables\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["1.1.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-exceptiongroup","purl":"pkg:rpm/suse/saltbundlepy-exceptiongroup\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["1.1.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-exceptiongroup-test","purl":"pkg:rpm/suse/saltbundlepy-exceptiongroup-test\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["3.8.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-flit-core","purl":"pkg:rpm/suse/saltbundlepy-flit-core\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["1.7.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-flit-scm","purl":"pkg:rpm/suse/saltbundlepy-flit-scm\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["0.3.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-hatch-vcs","purl":"pkg:rpm/suse/saltbundlepy-hatch-vcs\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["0.3.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-hatch-vcs-test","purl":"pkg:rpm/suse/saltbundlepy-hatch-vcs-test\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["1.13.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-hatchling","purl":"pkg:rpm/suse/saltbundlepy-hatchling\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["2.0.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-iniconfig","purl":"pkg:rpm/suse/saltbundlepy-iniconfig\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["2.0.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-iniconfig-test","purl":"pkg:rpm/suse/saltbundlepy-iniconfig-test\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["4.9.3-1.12.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-lxml","purl":"pkg:rpm/suse/saltbundlepy-lxml\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["8.10.0-1.6.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-more-itertools","purl":"pkg:rpm/suse/saltbundlepy-more-itertools\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["23.1-1.6.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-packaging","purl":"pkg:rpm/suse/saltbundlepy-packaging\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["0.11.1-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-pathspec","purl":"pkg:rpm/suse/saltbundlepy-pathspec\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["20.2.4-1.6.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-pip","purl":"pkg:rpm/suse/saltbundlepy-pip\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["1.0.0-1.6.4"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-pluggy","purl":"pkg:rpm/suse/saltbundlepy-pluggy\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["1.0.0-1.6.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-pluggy-test","purl":"pkg:rpm/suse/saltbundlepy-pluggy-test\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["1.10.0-1.9.4"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-py","purl":"pkg:rpm/suse/saltbundlepy-py\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["7.3.2-1.6.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-pytest","purl":"pkg:rpm/suse/saltbundlepy-pytest\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["7.1.0-1.6.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-setuptools-scm","purl":"pkg:rpm/suse/saltbundlepy-setuptools-scm\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["1.2.3-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-tomli","purl":"pkg:rpm/suse/saltbundlepy-tomli\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["4.5.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-typing-extensions","purl":"pkg:rpm/suse/saltbundlepy-typing-extensions\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["4.5.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-typing-extensions-test","purl":"pkg:rpm/suse/saltbundlepy-typing-extensions-test\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["0.40.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-wheel","purl":"pkg:rpm/suse/saltbundlepy-wheel\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["0.40.0-1.3.1"],"introduced":["0"],"last_affected":[],"package":"saltbundlepy-wheel-test","purl":"pkg:rpm/suse/saltbundlepy-wheel-test\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:EL-9:Update:Products:SaltBundle:Update","fixed":["3006.0-1.30.3"],"introduced":["0"],"last_affected":[],"package":"venv-salt-minion","purl":"pkg:rpm/suse/venv-salt-minion\u0026distro=SUSE:EL-9:Update:Products:SaltBundle:Update","source":"SUSE-SU-2023:4757-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["3.17.2-150300.3.4.1"],"introduced":["0"],"last_affected":[],"package":"python-simplejson","purl":"pkg:rpm/suse/python-simplejson\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:4388-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["3006.0-150300.53.65.2"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:4388-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["3006.0-150100.112.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2023:4390-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["3006.0-150200.113.1"],"introduced":["0"],"last_affected":[],"package":"salt","purl":"pkg:rpm/suse/salt\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:4389-1"}],"prev":{"headline":"VMware vCenter Server Out-of-Bounds Write","id":"CVE-2023-34048"},"products":["SALT"],"published":"2024-11-14","related":[],"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":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-14","vendors":["Salt"]},"summary":"Attackers with target access can execute arbitrary code via predictable Salt-SSH pre-flight script paths, requiring immediate patching.","url":"https://insights.sbomify.com/CVE-2023-34049/"}