CVE-2023-46122

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:scala-sbt:io:*:*:*:*:*:sbt:*:*
cpe:2.3:a:scala-sbt:sbt:*:*:*:*:*:*:*:*

History

31 Oct 2023, 14:52

Type Values Removed Values Added
CPE cpe:2.3:a:scala-sbt:sbt:*:*:*:*:*:*:*:*
cpe:2.3:a:scala-sbt:io:*:*:*:*:*:sbt:*:*
First Time Scala-sbt io
Scala-sbt sbt
Scala-sbt
CWE CWE-22
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.1
References (MISC) https://github.com/sbt/io/issues/358 - (MISC) https://github.com/sbt/io/issues/358 - Issue Tracking, Patch
References (MISC) https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf - (MISC) https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf - Exploit, Patch, Third Party Advisory
References (MISC) https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a - (MISC) https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a - Patch
References (MISC) https://github.com/sbt/io/pull/360 - (MISC) https://github.com/sbt/io/pull/360 - Patch

23 Oct 2023, 16:15

Type Values Removed Values Added
New CVE

Information

Published : 2023-10-23 16:15

Updated : 2024-02-28 20:33


NVD link : CVE-2023-46122

Mitre link : CVE-2023-46122

CVE.ORG link : CVE-2023-46122


JSON object : View

Products Affected

scala-sbt

  • io
  • sbt
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')