{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-46122","id":"CVE-2023-46122","title":"Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt","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 ","descriptionLong":"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.","published":"2023-10-23T15:51:02.875Z","updated":"2026-10-28T02:30:33.159545840Z","reserved":"2023-10-16T17:51:35.571Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","rating":"low","source":"GitHub_M"},"metrics":[{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","rating":"low","source":"GitHub_M"},{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","rating":"low","source":"github.com"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","rating":"low","source":"OSV"},{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","rating":"low","source":"GitHub"}],"rating":"low","products":["sbt"],"affectedProducts":[{"vendor":"sbt","product":"sbt","defaultStatus":null,"versions":[{"version":">= 0.3.4, < 1.9.7","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.scala-sbt:sbt","purl":"pkg:maven/org.scala-sbt/sbt","ranges":[">=0.3.4 <1.9.7"],"fixed":["1.9.7"],"advisory":"GHSA-h9mw-grgx-2fhf"},{"ecosystem":"Maven","name":"org.scala-sbt:io_2.12","purl":"pkg:maven/org.scala-sbt/io_2.12","ranges":[">=1.0.0 <1.9.7"],"fixed":["1.9.7"],"advisory":"GHSA-h9mw-grgx-2fhf"},{"ecosystem":"Maven","name":"org.scala-sbt:io_2.13","purl":"pkg:maven/org.scala-sbt/io_2.13","ranges":[">=1.0.0 <1.9.7"],"fixed":["1.9.7"],"advisory":"GHSA-h9mw-grgx-2fhf"},{"ecosystem":"Maven","name":"org.scala-sbt:io_3","purl":"pkg:maven/org.scala-sbt/io_3","ranges":[">=1.0.0 <1.9.7"],"fixed":["1.9.7"],"advisory":"GHSA-h9mw-grgx-2fhf"}],"cwes":["CWE-22"],"aliases":["GHSA-h9mw-grgx-2fhf"],"references":[{"url":"https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Third Party Advisory","advisory","web"]},{"url":"https://github.com/sbt/io/issues/358","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","report","web"]},{"url":"https://github.com/sbt/io/pull/360","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46122.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46122","tags":["advisory"]},{"url":"https://github.com/sbt/sbt","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00369,"epssPercentile":0,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-46122","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46122","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-46122","ok":true,"note":"4 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-h9mw-grgx-2fhf","ok":true,"note":"GHSA-h9mw-grgx-2fhf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-46122","ok":true,"note":"scored "}],"aiTitle":false,"tech":[],"critical":[],"attention":null}