{"id":"CVE-2023-46122","aliases":["GHSA-h9mw-grgx-2fhf"],"url":"https://o3.security/vulnerability/CVE-2023-46122","summary":"Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt","details":"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","modified":"2026-07-15T01:49:04.507600782Z","cvss":{"score":3.9,"severity":"LOW","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Maven","name":"org.scala-sbt:sbt","fixedVersion":"1.9.7"},{"ecosystem":"Maven","name":"org.scala-sbt:io_2.12","fixedVersion":"1.9.7"},{"ecosystem":"Maven","name":"org.scala-sbt:io_2.13","fixedVersion":"1.9.7"},{"ecosystem":"Maven","name":"org.scala-sbt:io_3","fixedVersion":"1.9.7"}],"fix":{"url":"https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a","label":"sbt/io@1245383"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46122.json"},{"type":"ADVISORY","url":"https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46122"},{"type":"REPORT","url":"https://github.com/sbt/io/issues/358"},{"type":"FIX","url":"https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a"},{"type":"FIX","url":"https://github.com/sbt/io/pull/360"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:49:04.507600782Z"}}