Skip to main content
← All vulnerabilities
CVE-2023-46122GHSA-H9MW-GRGX-2FHF

Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.9.7
None on Exploit-DB, Metasploit or GitHub
  • 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

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

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

References 4

GitHub · sbt/sbt

GitHub · sbt/io