WaratekVRT Sign in

CVE-2023-46122

Affected software2 products, listed below
Severity7.1 High CVSS 3.1 2 scores
Fixed in1.9.7
WeaknessPath traversal (CWE-22)
Published23 Oct 2023
Updated17 Jun 2026

Description

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 3 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 0.37% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR path-traversal security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-22: Path Traversal.
Candidate fix https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a : a commit: the change itself

How to mitigate CVE-2023-46122

Upgrade the affected software to 1.9.7 or later. Until you can, Waratek RASP blocks exploitation with its path traversal rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

7.1 HIGH v3.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
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 NVD Primary published
CVSS 3.1 3.9 LOW CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L security-advisories@github.com Secondary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.scala-sbt:sbt 0.3.4 1.9.7 unbounded
org.scala-sbt:io_2.12 1.0.0 1.9.7 unbounded
org.scala-sbt:io_2.13 1.0.0 1.9.7 unbounded
org.scala-sbt:io_3 1.0.0 1.9.7 unbounded

Products and versions

6 products, 6 version entries
SourceVendorProductSchemeAffected versions
osv org.scala-sbt io_2.12 generic ≥ 1.0.0 and < 1.9.7
osv org.scala-sbt io_2.13 generic ≥ 1.0.0 and < 1.9.7
osv org.scala-sbt io_3 generic ≥ 1.0.0 and < 1.9.7
osv org.scala-sbt sbt generic ≥ 0.3.4 and < 1.9.7
nvd scala-sbt io generic ≥ 1.0.0 and < 1.9.7
nvd scala-sbt sbt generic ≥ 0.3.4 and < 1.9.7

References

URLTags
https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a commit
https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf WEB
https://github.com/sbt/io/issues/358 WEB
https://github.com/sbt/io/pull/360 WEB
https://github.com/sbt/sbt PACKAGE

Timeline

Published2023-10-23By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.