Live threats

All CVEs / Scala-sbt

CVE-2023-46122Scala-sbt Io

High 7.1

Priority
43
CVSS 3.1
7.1
EPSS
0.4%
probability of exploitation in 30 days · percentile 22
Auth required
Yes
Published
Oct 23, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Io.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.scala-sbt:io_2.12 ≥ 1.0.0 < 1.9.7 1.9.7 —
Maven org.scala-sbt:io_2.13 ≥ 1.0.0 < 1.9.7 1.9.7 —
Maven org.scala-sbt:io_3 ≥ 1.0.0 < 1.9.7 1.9.7 —
Maven org.scala-sbt:sbt ≥ 0.3.4 < 1.9.7 1.9.7 —

Per OSV / GitHub Advisories (GHSA-h9mw-grgx-2fhf). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
scala-sbtio≥ 1.0.0 < 1.9.7
scala-sbtsbt≥ 0.3.4 < 1.9.7

Official sources

References

Links published by the sources. Open them with care.