{"id":"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.","aliases":["GHSA-h9mw-grgx-2fhf"],"modified":"2026-08-12T03:51:15.173315789Z","published":"2023-10-23T15:51:02.875Z","related":["SUSE-SU-2023:4527-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/46xxx/CVE-2023-46122.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-22"]},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sbt/io","events":[{"introduced":"748d6c0de75b2ea8150666826ef11f1d546975bd"},{"fixed":"124538348db0713c80793cb57b915f97ec13188a"},{"introduced":"0"},{"fixed":"124538348db0713c80793cb57b915f97ec13188a"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":["cpe:2.3:a:scala-sbt:io:*:*:*:*:*:sbt:*:*","cpe:2.3:a:scala-sbt:sbt:*:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"1.0.0"},{"fixed":"1.9.7"},{"introduced":"0.3.4"}]}}],"versions":["v1.9.1","v1.9.0-RC3","v1.9.0","v1.8.1","v1.9.0-M1","v1.8.0","v1.7.0","v1.6.0-M2","v1.6.0","v1.6.0-M1","v1.5.1","v1.5.0","v1.5.0-M1","v1.4.0","v1.4.0-M8","v1.4.0-M7","v1.4.0-M6","v1.4.0-M5","v1.4.0-M4","v1.4.0-M3","v1.4.0-M2","v1.4.0-M1","v1.3.0-M18","v1.3.0","v1.3.0-M17","v1.3.0-M16","v1.3.0-M15","v1.3.0-M14","v1.3.0-M13","v1.3.0-M12","v1.3.0-M11","v1.3.0-M10","v1.3.0-M9","v1.3.0-M8","v1.3.0-M7","v1.3.0-M6","v1.3.0-M5","v1.3.0-M4","v1.3.0-M3","v1.3.0-M2","v1.3.0-M1","v1.2.0-M2","v1.2.0","v1.2.0-M1","v1.1.0","v1.0.0-M13","v1.0.0-M12","v1.0.0-M11","v1.0.0-M10","v1.0.0-M9","v1.0.0-M8","v1.0.0-M5","v1.0.0-M4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-46122.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L"}]}