# CVE-2023-46122: Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt

- Severity: Low 3.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-10-23T15:51:02.875Z
- Modified: 2026-06-17T06:30:11.763Z
- Also known as: GHSA-h9mw-grgx-2fhf
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- sbt sbt: >= 0.3.4, < 1.9.7
- org.scala-sbt:sbt (Maven): from 0.3.4 before 1.9.7
- org.scala-sbt:io_2.12 (Maven): from 1.0.0 before 1.9.7
- org.scala-sbt:io_2.13 (Maven): from 1.0.0 before 1.9.7
- org.scala-sbt:io_3 (Maven): from 1.0.0 before 1.9.7
- scala-sbt io: from 1.0.0 before 1.9.7
- scala-sbt sbt: from 0.3.4 before 1.9.7

## Every score

- GitHub_M: CVSS:3.1 3.9 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 3.9 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`

## References

- <https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf> (exploit, patch, third-party-advisory, 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/io/commit/124538348db0713c80793cb57b915f97ec13188a> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-46122> (advisory)
- <https://github.com/sbt/sbt> (package)

## Sources

- CVE List: [CVE-2023-46122](https://www.cve.org/CVERecord?id=CVE-2023-46122), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-h9mw-grgx-2fhf](https://github.com/advisories/GHSA-h9mw-grgx-2fhf), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-46122](https://nvd.nist.gov/vuln/detail/CVE-2023-46122), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-46122 · Whole record: https://cve.day/CVE-2023-46122.json · Rebuilt by cve.day 2026-11-25T22:58:29.021Z
