{"answers":{"affected":"8 open source packages ship an affected version, including org.scala-sbt:io_2.12, org.scala-sbt:io_2.13 and org.scala-sbt:io_3. It affects 2 products.","exploited":"There is no known exploitation of CVE-2023-46122 in the wild and no public exploit code.","fix":"Upgrade org.scala-sbt:io_2.12 to 1.9.7 or later.","what":"CVE-2023-46122 is a low-severity path traversal vulnerability in sbt, published on 23 Oct 2023. 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-46122 and fix it if it is affected.\n\nWhat it is: CVE-2023-46122 is a low-severity path traversal vulnerability in sbt, published on 23 Oct 2023. 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-46122 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.scala-sbt:io_2.12 (Maven): affected from 1.0.0; fixed in 1.9.7\n- org.scala-sbt:io_2.12 (Maven): affected from 1.0.0; fixed in 1.9.7\n- org.scala-sbt:io_2.13 (Maven): affected from 1.0.0; fixed in 1.9.7\n- org.scala-sbt:io_2.13 (Maven): affected from 1.0.0; fixed in 1.9.7\n- org.scala-sbt:io_3 (Maven): affected from 1.0.0; fixed in 1.9.7\n- org.scala-sbt:io_3 (Maven): affected from 1.0.0; fixed in 1.9.7\n- org.scala-sbt:sbt (Maven): affected from 0.3.4; fixed in 1.9.7\n- org.scala-sbt:sbt (Maven): affected from 0.3.4; fixed in 1.9.7\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-46122/ (Markdown: https://insights.sbomify.com/CVE-2023-46122/index.md)","id":"CVE-2023-46122","markdown":"https://insights.sbomify.com/CVE-2023-46122/index.md","name":"CVE-2023-46122","record":{"aliases":["GHSA-h9mw-grgx-2fhf","OESA-2024-2422","SUSE-SU-2023:4527-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Scala build tool","requires_auth":"low_privilege","summary":"Attackers can write arbitrary files via crafted archives in sbt, potentially overwriting SSH keys to gain unauthorized access.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"io","vendor":"scala-sbt"},{"product":"sbt","vendor":"scala-sbt"}],"cvss":{"score":3.9,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"sbt is a build tool for Scala, Java, and others. Given a specially crafted zip or JAR file, `IO.unzip` allows writing of arbitrary file. This would have potential to overwrite `/root/.ssh/authorized_keys`. Within sbt's main code, `IO.unzip` is used in `pullRemoteCache` task and `Resolvers.remote`; however many projects use `IO.unzip(...)` directly to implement custom tasks. This vulnerability has been patched in version 1.9.7.","ecosystems":["Maven","SUSE:Enterprise Storage 7.1","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 Module for Development Tools 15 SP4","SUSE:Linux Enterprise Module for Development Tools 15 SP5","SUSE:Linux Enterprise Module for Package Hub 15 SP5","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","openSUSE:Leap 15.4","openSUSE:Leap 15.5"],"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":"Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt","id":"CVE-2023-46122","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":88,"n_references":4,"next":{"headline":"jumpserver is vulnerable to password brute-force protection bypass via arbitrary IP values","id":"CVE-2023-46123"},"packages":[{"ecosystem":"Maven","fixed":["1.9.7"],"introduced":["1.0.0"],"last_affected":[],"package":"org.scala-sbt:io_2.12","purl":null,"source":"GHSA-h9mw-grgx-2fhf"},{"ecosystem":"Maven","fixed":["1.9.7"],"introduced":["1.0.0"],"last_affected":[],"package":"org.scala-sbt:io_2.12","purl":"pkg:maven/org.scala-sbt/io_2.12","source":"GHSA-h9mw-grgx-2fhf"},{"ecosystem":"Maven","fixed":["1.9.7"],"introduced":["1.0.0"],"last_affected":[],"package":"org.scala-sbt:io_2.13","purl":null,"source":"GHSA-h9mw-grgx-2fhf"},{"ecosystem":"Maven","fixed":["1.9.7"],"introduced":["1.0.0"],"last_affected":[],"package":"org.scala-sbt:io_2.13","purl":"pkg:maven/org.scala-sbt/io_2.13","source":"GHSA-h9mw-grgx-2fhf"},{"ecosystem":"Maven","fixed":["1.9.7"],"introduced":["1.0.0"],"last_affected":[],"package":"org.scala-sbt:io_3","purl":null,"source":"GHSA-h9mw-grgx-2fhf"},{"ecosystem":"Maven","fixed":["1.9.7"],"introduced":["1.0.0"],"last_affected":[],"package":"org.scala-sbt:io_3","purl":"pkg:maven/org.scala-sbt/io_3","source":"GHSA-h9mw-grgx-2fhf"},{"ecosystem":"Maven","fixed":["1.9.7"],"introduced":["0.3.4"],"last_affected":[],"package":"org.scala-sbt:sbt","purl":null,"source":"GHSA-h9mw-grgx-2fhf"},{"ecosystem":"Maven","fixed":["1.9.7"],"introduced":["0.3.4"],"last_affected":[],"package":"org.scala-sbt:sbt","purl":"pkg:maven/org.scala-sbt/sbt","source":"GHSA-h9mw-grgx-2fhf"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["3.9.4-150200.4.18.1"],"introduced":["0"],"last_affected":[],"package":"maven","purl":"pkg:rpm/suse/maven\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["1.9.15-150200.3.14.2"],"introduced":["0"],"last_affected":[],"package":"maven-resolver","purl":"pkg:rpm/suse/maven-resolver\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn","purl":"pkg:rpm/suse/xmvn\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-connector","purl":"pkg:rpm/suse/xmvn-connector\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-mojo","purl":"pkg:rpm/suse/xmvn-mojo\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-tools","purl":"pkg:rpm/suse/xmvn-tools\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["3.9.4-150200.4.18.1"],"introduced":["0"],"last_affected":[],"package":"maven","purl":"pkg:rpm/suse/maven\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["1.9.15-150200.3.14.2"],"introduced":["0"],"last_affected":[],"package":"maven-resolver","purl":"pkg:rpm/suse/maven-resolver\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn","purl":"pkg:rpm/suse/xmvn\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-connector","purl":"pkg:rpm/suse/xmvn-connector\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-mojo","purl":"pkg:rpm/suse/xmvn-mojo\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-tools","purl":"pkg:rpm/suse/xmvn-tools\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["3.9.4-150200.4.18.1"],"introduced":["0"],"last_affected":[],"package":"maven","purl":"pkg:rpm/suse/maven\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["1.9.15-150200.3.14.2"],"introduced":["0"],"last_affected":[],"package":"maven-resolver","purl":"pkg:rpm/suse/maven-resolver\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn","purl":"pkg:rpm/suse/xmvn\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-connector","purl":"pkg:rpm/suse/xmvn-connector\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-mojo","purl":"pkg:rpm/suse/xmvn-mojo\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-tools","purl":"pkg:rpm/suse/xmvn-tools\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["3.9.4-150200.4.18.1"],"introduced":["0"],"last_affected":[],"package":"maven","purl":"pkg:rpm/suse/maven\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["1.9.15-150200.3.14.2"],"introduced":["0"],"last_affected":[],"package":"maven-resolver","purl":"pkg:rpm/suse/maven-resolver\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn","purl":"pkg:rpm/suse/xmvn\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-connector","purl":"pkg:rpm/suse/xmvn-connector\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-mojo","purl":"pkg:rpm/suse/xmvn-mojo\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-tools","purl":"pkg:rpm/suse/xmvn-tools\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP4","fixed":["3.9.4-150200.4.18.1"],"introduced":["0"],"last_affected":[],"package":"maven","purl":"pkg:rpm/suse/maven\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP4","fixed":["1.9.15-150200.3.14.2"],"introduced":["0"],"last_affected":[],"package":"maven-resolver","purl":"pkg:rpm/suse/maven-resolver\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP4","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn","purl":"pkg:rpm/suse/xmvn\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP4","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-connector","purl":"pkg:rpm/suse/xmvn-connector\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP4","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-mojo","purl":"pkg:rpm/suse/xmvn-mojo\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP4","fixed":["4.2.0-150200.3.14.1"],"introduced":["0"],"last_affected":[],"package":"xmvn-tools","purl":"pkg:rpm/suse/xmvn-tools\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP5","fixed":["3.9.4-150200.4.18.1"],"introduced":["0"],"last_affected":[],"package":"maven","purl":"pkg:rpm/suse/maven\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP5","source":"SUSE-SU-2023:4527-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP5","fixed":["1.9.15-150200.3.14.2"],"introduced":["0"],"last_affected":[],"package":"maven-resolver","purl":"pkg:rpm/suse/maven-resolver\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP5","source":"SUSE-SU-2023:4527-1"}],"prev":{"headline":"Generic Extractor MITM Vulnerability in yt-dlp","id":"CVE-2023-46121"},"products":["sbt"],"published":"2023-10-23","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":"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":"total"},"state":"PUBLISHED","updated":"2024-09-17","vendors":["sbt"]},"summary":"Attackers can write arbitrary files via crafted archives in sbt, potentially overwriting SSH keys to gain unauthorized access.","url":"https://insights.sbomify.com/CVE-2023-46122/"}