{"api_version":"1","generated_at":"2026-07-23T13:42:45+00:00","cve":"CVE-2023-46122","urls":{"html":"https://cve.report/CVE-2023-46122","api":"https://cve.report/api/cve/CVE-2023-46122.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-46122","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-46122"},"summary":{"title":"CVE-2023-46122","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-10-23 16:15:00","updated_at":"2023-10-31 14:52:00"},"problem_types":["CWE-22"],"metrics":[],"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","refsource":"MISC","tags":[],"title":"Arbitrary file write via archive extraction (Zip Slip) · Advisory · sbt/sbt · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a","name":"https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a","refsource":"MISC","tags":[],"title":"Merge pull request #360 from eed3si9n/wip/zip_issue · sbt/io@1245383 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/sbt/io/issues/358","name":"https://github.com/sbt/io/issues/358","refsource":"MISC","tags":[],"title":"zip slip vulnerability · Issue #358 · sbt/io · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/sbt/io/pull/360","name":"https://github.com/sbt/io/pull/360","refsource":"MISC","tags":[],"title":"Fixes zip-slip vulnerability by eed3si9n · Pull Request #360 · sbt/io · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-46122","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-46122","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"46122","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"scala-sbt","cpe5":"io","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"sbt","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"46122","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"scala-sbt","cpe5":"sbt","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-46122","qid":"755322","title":"SUSE Enterprise Linux Security Update for maven, maven-resolver, sbt, xmvn (SUSE-SU-2023:4527-1)"},{"cve":"CVE-2023-46122","qid":"995698","title":"Java (Maven) Security Update for org.scala-sbt:io_2.12 (GHSA-h9mw-grgx-2fhf)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-46122","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","cweId":"CWE-22"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"sbt","product":{"product_data":[{"product_name":"sbt","version":{"version_data":[{"version_affected":"=","version_value":">= 0.3.4, < 1.9.7"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf","refsource":"MISC","name":"https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf"},{"url":"https://github.com/sbt/io/issues/358","refsource":"MISC","name":"https://github.com/sbt/io/issues/358"},{"url":"https://github.com/sbt/io/pull/360","refsource":"MISC","name":"https://github.com/sbt/io/pull/360"},{"url":"https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a","refsource":"MISC","name":"https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a"}]},"source":{"advisory":"GHSA-h9mw-grgx-2fhf","discovery":"UNKNOWN"},"impact":{"cvss":[{"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"}]}},"nvd":{"publishedDate":"2023-10-23 16:15:00","lastModifiedDate":"2023-10-31 14:52:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.1,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.2}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:scala-sbt:sbt:*:*:*:*:*:*:*:*","versionStartIncluding":"0.3.4","versionEndExcluding":"1.9.7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:scala-sbt:io:*:*:*:*:*:sbt:*:*","versionStartIncluding":"1.0.0","versionEndExcluding":"1.9.7","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}