CVE-2023-46122
HIGH 7.1CVSS 3.1sbt vulnerable to arbitrary file write via archive extraction (Zip Slip)
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
- 23 Oct 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-h9mw-grgx-2fhf
- Sources
- NVDJSONOSV GHSA-h9mw-grgx-2fhfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.9 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | LOW 3.9 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | scala-sbt | iocpe:2.3:a:scala-sbt:io:*:*:*:*:*:sbt:*:* |
>= 1.0.0, < 1.9.7 | 1.9.7 |
| NVD | scala-sbt | sbtcpe:2.3:a:scala-sbt:sbt:*:*:*:*:*:*:*:* |
>= 0.3.4, < 1.9.7 | 1.9.7 |
| OSV | Maven | org.scala-sbt:sbt | >= 0.3.4, < 1.9.7 | 1.9.7 |
| OSV | Maven | org.scala-sbt:io_2.12 | >= 1.0.0, < 1.9.7 | 1.9.7 |
| OSV | Maven | org.scala-sbt:io_2.13 | >= 1.0.0, < 1.9.7 | 1.9.7 |
| OSV | Maven | org.scala-sbt:io_3 | >= 1.0.0, < 1.9.7 | 1.9.7 |
References
- https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a · Patch, WEB
- https://github.com/sbt/io/issues/358 · Issue Tracking, Patch, WEB
- https://github.com/sbt/io/pull/360 · Patch, WEB
- https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-46122 · ADVISORY
- https://github.com/sbt/sbt · PACKAGE
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 23 Oct 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 Oct 2023)