CVE-2023-46122 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 11, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a | CVE | Patch |
| https://github.com/sbt/io/issues/358 | CVE | Issue TrackingPatch |
| https://github.com/sbt/io/pull/360 | CVE | Patch |
| https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf | CVE | ExploitPatchThird Party Advisory |
| https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a | [email protected] | Patch |
| https://github.com/sbt/io/issues/358 | [email protected] | Issue TrackingPatch |
| https://github.com/sbt/io/pull/360 | [email protected] | Patch |
| https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf | [email protected] | ExploitPatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| scala-sbt io | >= 1.0.0, < 1.9.7 |
CPE
Remediation
| |
| scala-sbt sbt | >= 0.3.4, < 1.9.7 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Oct 31, 2023 | Initial Analysis | [email protected] |