{"id":"CVE-2023-46122","published":"2023-10-23T15:51:02Z","modified":"2024-09-17T13:45:20Z","title":"Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt","vendor":"sbt","product":"sbt","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.9,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00362,"percentile":0.2228,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sbt/io/issues/358","tags":["x_refsource_MISC"]},{"url":"https://github.com/sbt/io/pull/360","tags":["x_refsource_MISC"]},{"url":"https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a","tags":["x_refsource_MISC"]}],"priority":{"score":7.2,"factors":[{"name":"EPSS percentile","points":4.46},{"name":"CVSS severity","points":2.73}]},"vendorSlug":"sbt","affectedVersions":[{"vendor":"sbt","product":"sbt","versions":[">= 0.3.4, < 1.9.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-09-11T20:11:11.780221Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.scala-sbt:sbt","vulnerableRanges":[">=0.3.4, <1.9.7"],"patched":["1.9.7"],"from":["GHSA-h9mw-grgx-2fhf"],"provenance":"source"},{"ecosystem":"Maven","package":"org.scala-sbt:io_2.12","vulnerableRanges":[">=1.0.0, <1.9.7"],"patched":["1.9.7"],"from":["GHSA-h9mw-grgx-2fhf"],"provenance":"source"},{"ecosystem":"Maven","package":"org.scala-sbt:io_2.13","vulnerableRanges":[">=1.0.0, <1.9.7"],"patched":["1.9.7"],"from":["GHSA-h9mw-grgx-2fhf"],"provenance":"source"},{"ecosystem":"Maven","package":"org.scala-sbt:io_3","vulnerableRanges":[">=1.0.0, <1.9.7"],"patched":["1.9.7"],"from":["GHSA-h9mw-grgx-2fhf"],"provenance":"source"}],"summary":{"text":"The sbt build tool contains a Zip Slip path traversal flaw in its IO.unzip function, which extracts archives without restricting output paths to the intended directory. An attacker who can supply a specially crafted zip or JAR file, such as through a project that is built or a task that unpacks it, can write arbitrary files on the system, potentially overwriting sensitive files like authorized SSH keys, and this requires that a user interacts with or processes the malicious archive.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:21Z"},"euvd":{"id":"EUVD-2023-2746","exploited":false,"provenance":"source"}}