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

21 Nov 2024, 08:27

Type Values Removed Values Added
CVSS v2 : unknown
v3 : 7.1
v2 : unknown
v3 : 3.9
References () https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a - Patch () https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a - Patch
References () https://github.com/sbt/io/issues/358 - Issue Tracking, Patch () https://github.com/sbt/io/issues/358 - Issue Tracking, Patch
References () https://github.com/sbt/io/pull/360 - Patch () https://github.com/sbt/io/pull/360 - Patch
References () https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf - Exploit, Patch, Third Party Advisory () https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf - Exploit, Patch, Third Party Advisory

Information

Published : 2023-10-23 16:15

Updated : 2024-11-21 08:27


NVD link : CVE-2023-46122

Mitre link : CVE-2023-46122

CVE.ORG link : CVE-2023-46122


JSON object : View

Products Affected

scala-sbt

  • sbt
  • io
CWE
CWE-22

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