Home / sbt / sbt / CVE-2023-46122
CVE-2023-46122: is it exploited, and which versions of sbt are affected and fixed?
CVE-2023-46122 is a path traversal (reading or writing files outside the intended folder) vulnerability in sbt. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:09 UTC). Affected: org.scala-sbt:sbt from 0.3.4 before 1.9.7, org.scala-sbt:io_2.12 from 1.0.0 before 1.9.7, org.scala-sbt:io_2.13 from 1.0.0 before 1.9.7 and 1 more (GitHub advisory GHSA-h9mw-grgx-2fhf). Fixed in 1.9.7 (GitHub advisory GHSA-h9mw-grgx-2fhf). Severity: Low (3.9, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:35 UTC.
What is CVE-2023-46122?
Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt
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.
From the CVE record by GitHub_M, last updated September 17, 2024, 13:45 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| sbt | sbt | >= 0.3.4, < 1.9.7 |
As the CVE record by GitHub_M states it, last updated September 17, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.scala-sbt:sbt | >= 0.3.4, < 1.9.7 | 1.9.7 | GHSA-h9mw-grgx-2fhf |
| Maven | org.scala-sbt:io_2.12 | >= 1.0.0, < 1.9.7 | 1.9.7 | GHSA-h9mw-grgx-2fhf |
| Maven | org.scala-sbt:io_2.13 | >= 1.0.0, < 1.9.7 | 1.9.7 | GHSA-h9mw-grgx-2fhf |
| Maven | org.scala-sbt:io_3 | >= 1.0.0, < 1.9.7 | 1.9.7 | GHSA-h9mw-grgx-2fhf |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 1, 2023. Summary: sbt vulnerable to arbitrary file write via archive extraction (Zip Slip).
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| scala-sbt | io | from 1.0.0 before 1.9.7 | application |
| scala-sbt | sbt | from 0.3.4 before 1.9.7 | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:30 UTC.
How severe is CVE-2023-46122?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 3.9 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L | GitHub_M |
| High 7.1 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-46122 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, September 11, 2024)
- EPSS
- 0.37% probability of exploitation activity in the next 30 days, percentile 32.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Where are the vendor advisories and references?
- https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf x_refsource_CONFIRM
- https://github.com/sbt/io/issues/358 x_refsource_MISC
- https://github.com/sbt/io/pull/360 x_refsource_MISC
- https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- October 16, 2023
- Published
- October 23, 2023, 15:51 UTC
- CVE record updated
- September 17, 2024, 13:45 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 06:30 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:35 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect sbt?
- Mar 24, 2026CVE-2026-32948 sbt: OS command injection
Questions about CVE-2023-46122
Is CVE-2023-46122 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 0.37% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of sbt are affected by CVE-2023-46122?
org.scala-sbt:sbt from 0.3.4 before 1.9.7, org.scala-sbt:io_2.12 from 1.0.0 before 1.9.7, org.scala-sbt:io_2.13 from 1.0.0 before 1.9.7 and org.scala-sbt:io_3 from 1.0.0 before 1.9.7, per the GitHub advisory GHSA-h9mw-grgx-2fhf. The tables above give every range the sources list.
Which version fixes CVE-2023-46122?
1.9.7, per the GitHub advisory GHSA-h9mw-grgx-2fhf. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-46122?
Low (3.9, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-46122?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.