CVE-2023-46122

high

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.

References

https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf

https://github.com/sbt/io/pull/360

https://github.com/sbt/io/issues/358

https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a

Details

Source: Mitre, NVD

Published: 2023-10-23

Updated: 2023-10-31

Risk Information

CVSS v2

Base Score: 6.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:N/I:C/A:C

Severity: Medium

CVSS v3

Base Score: 7.1

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Severity: High