{"cve":"CVE-2023-46122","nvd":{"published":"2023-10-23T16:15:09.383","modified":"2026-06-17T06:30:11.763","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","score":7.1},"cwes":["CWE-22"],"references":["https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a","https://github.com/sbt/io/issues/358","https://github.com/sbt/io/pull/360","https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf","https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a"],"products":["scala-sbt:io","scala-sbt:sbt"],"source":"nvd","synced_at":"2026-10-19T21:40:11.519948003+00:00"},"epss":{"cve":"CVE-2023-46122","score":0.00369,"percentile":0.30808,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-h9mw-grgx-2fhf","url":"https://osv.dev/vulnerability/GHSA-h9mw-grgx-2fhf","summary":"sbt vulnerable to arbitrary file write via archive extraction (Zip Slip)","modified":"2024-02-16T08:15:38.939403Z","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"]},{"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"]},{"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"]},{"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"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}