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
| Link | Resource |
|---|---|
| https://github.com/sbt/io/issues/358 | Issue Tracking Patch |
| https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf | Exploit Patch Third Party Advisory |
| https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a | Patch |
| https://github.com/sbt/io/pull/360 | Patch |
Configurations
Configuration 1 (hide)
|
History
31 Oct 2023, 14:52
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:scala-sbt:io:*:*:*:*:*:sbt:*:* cpe:2.3:a:scala-sbt:sbt:*:*:*:*:*:*:*:* |
|
| First Time |
Scala-sbt io
Scala-sbt Scala-sbt sbt |
|
| CWE | CWE-22 | |
| References | (MISC) https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a - Patch | |
| References | (MISC) https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf - Exploit, Patch, Third Party Advisory | |
| References | (MISC) https://github.com/sbt/io/pull/360 - Patch | |
| References | (MISC) https://github.com/sbt/io/issues/358 - Issue Tracking, Patch | |
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 7.1 |
23 Oct 2023, 16:15
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2023-10-23 16:15
Updated : 2023-10-31 14:52
NVD link : CVE-2023-46122
Mitre 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')
