cve.bz

CVE-2023-46122

7.1 highEPSS 0.4%

High (7.1) in scala-sbt. EPSS 0.4% chance of exploitation in the next 30 days. Fixed in org.scala-sbt:sbt 1.9.7.

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.

Severity

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
EPSS
0.4% chance of exploitation in the next 30 days; higher than 30% of CVEs (scores of 2026-10-31)
CWE
CWE-22
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h9mw-grgx-2fhfMavenorg.scala-sbt:sbt>=0.3.4 <1.9.71.9.7
GHSA-h9mw-grgx-2fhfMavenorg.scala-sbt:io_2.12>=1.0.0 <1.9.71.9.7
GHSA-h9mw-grgx-2fhfMavenorg.scala-sbt:io_2.13>=1.0.0 <1.9.71.9.7
GHSA-h9mw-grgx-2fhfMavenorg.scala-sbt:io_3>=1.0.0 <1.9.71.9.7

References

Check your stackJSON