CVE-2023-46122GHSA-H9MW-GRGX-2FHF
Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 1.9.7
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
CISA's decision points: whether it is exploited, whether attacks can be automated, and how much control an attacker gets. Assessed (SSVC 2.0.3).What do these mean? →
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- sbt sbt
From 0.3.4 · fixed in 1.9.7
- org.scala-sbt:sbtMaven
From 0.3.4 · fixed in 1.9.7
- org.scala-sbt:io_2.12Maven
From 1.0.0 · fixed in 1.9.7
- org.scala-sbt:io_2.13Maven
From 1.0.0 · fixed in 1.9.7
- org.scala-sbt:io_3Maven
From 1.0.0 · fixed in 1.9.7