CVE-2023-46122CWE-22

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

Low · published October 23, 2023

CVSS v3.1
3.9
EPSS
0%
Percentile
26.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
3.9 · LOW
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.00343 · 26.5th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2023-10-23T15:51Z
EPSS history
Timeline
  • 23 OCT 15:51Z
    Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt
    cvelistv5