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
New CVE

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')