{"id":"CVE-2023-46122","state":"PUBLISHED","title":"Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt","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.","publishedAt":"2023-10-23T15:51:02.875Z","updatedAt":"2024-09-17T13:45:20.258Z","severity":{"score":3.9,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["sbt sbt"],"affected":[{"vendor":"sbt","product":"sbt","versions":[{"version":">= 0.3.4, < 1.9.7","status":"affected"}]}],"references":["https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf","https://github.com/sbt/io/issues/358","https://github.com/sbt/io/pull/360","https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:06:24.729Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/46xxx/CVE-2023-46122.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-46122","state":"PUBLISHED","datePublished":"2023-10-23T15:51:02.875Z","dateUpdated":"2024-09-17T13:45:20.258Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-10-16T17:51:35.571Z"},"containers":{"cna":{"title":"Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"sbt","product":"sbt","versions":[{"version":">= 0.3.4, < 1.9.7","status":"affected"}]}],"references":[{"url":"https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf","name":"https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sbt/io/issues/358","name":"https://github.com/sbt/io/issues/358","tags":["x_refsource_MISC"]},{"url":"https://github.com/sbt/io/pull/360","name":"https://github.com/sbt/io/pull/360","tags":["x_refsource_MISC"]},{"url":"https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a","name":"https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":3.9,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-10-23T15:51:02.875Z"},"source":{"advisory":"GHSA-h9mw-grgx-2fhf","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf","name":"https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/sbt/io/issues/358","name":"https://github.com/sbt/io/issues/358","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/sbt/io/pull/360","name":"https://github.com/sbt/io/pull/360","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a","name":"https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T20:37:39.266Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-11T20:11:11.780221Z","id":"CVE-2023-46122","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-17T13:45:20.258Z"}}]}}}