CVE-2023-46122 (GCVE-0-2023-46122)
Vulnerability from cvelistv5 – Published: 2023-10-23 15:51 – Updated: 2024-09-17 13:45
VLAI
EPSS
VEX
Title
Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt
Summary
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.
Severity
SSVC
Exploitation: none
Automatable: no
Technical Impact: total
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2024-09-11 20:11 UTC
CWE
- CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Assigner
References
4 references
| URL | Tags |
|---|---|
| https://github.com/sbt/sbt/security/advisories/GH… | x_refsource_CONFIRM |
| https://github.com/sbt/io/issues/358 | x_refsource_MISC |
| https://github.com/sbt/io/pull/360 | x_refsource_MISC |
| https://github.com/sbt/io/commit/124538348db0713c… | x_refsource_MISC |
Impacted products
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-02T20:37:39.266Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"name": "https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
],
"url": "https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf"
},
{
"name": "https://github.com/sbt/io/issues/358",
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/sbt/io/issues/358"
},
{
"name": "https://github.com/sbt/io/pull/360",
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/sbt/io/pull/360"
},
{
"name": "https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a",
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2023-46122",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-09-11T20:11:11.780221Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-09-17T13:45:20.258Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "sbt",
"vendor": "sbt",
"versions": [
{
"status": "affected",
"version": "\u003e= 0.3.4, \u003c 1.9.7"
}
]
}
],
"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\u0027s 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": [
{
"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",
"description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2023-10-23T15:51:02.875Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf"
},
{
"name": "https://github.com/sbt/io/issues/358",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sbt/io/issues/358"
},
{
"name": "https://github.com/sbt/io/pull/360",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sbt/io/pull/360"
},
{
"name": "https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a"
}
],
"source": {
"advisory": "GHSA-h9mw-grgx-2fhf",
"discovery": "UNKNOWN"
},
"title": "Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2023-46122",
"datePublished": "2023-10-23T15:51:02.875Z",
"dateReserved": "2023-10-16T17:51:35.571Z",
"dateUpdated": "2024-09-17T13:45:20.258Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2023-46122",
"date": "2026-09-21",
"epss": "0.0034",
"percentile": "0.27458"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"product": "sbt",
"vendor": "sbt",
"versions": [
{
"status": "affected",
"version": "\u003e= 0.3.4, \u003c 1.9.7"
}
]
}
],
"source": "security-advisories@github.com"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:scala-sbt:io:*:*:*:*:*:sbt:*:*",
"matchCriteriaId": "E26E7679-8BEF-4E54-9908-CD46A514E6CB",
"versionEndExcluding": "1.9.7",
"versionStartIncluding": "1.0.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:scala-sbt:sbt:*:*:*:*:*:*:*:*",
"matchCriteriaId": "5520A3FF-F431-48C6-B5E7-C238800BF059",
"versionEndExcluding": "1.9.7",
"versionStartIncluding": "0.3.4",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"cveTags": [],
"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\u0027s 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."
},
{
"lang": "es",
"value": "sbt es una herramienta de compilaci\u00f3n para Scala, Java y otros. Dado un archivo zip o JAR especialmente manipulado, `IO.unzip` permite escribir archivos arbitrarios. Esto tendr\u00eda potencial para sobrescribir `/root/.ssh/authorized_keys`. Dentro del c\u00f3digo principal de sbt, `IO.unzip` se usa en la tarea `pullRemoteCache` y `Resolvers.remote`; sin embargo, muchos proyectos utilizan `IO.unzip(...)` directamente para implementar tareas personalizadas. Esta vulnerabilidad ha sido parcheada en la versi\u00f3n 1.9.7."
}
],
"id": "CVE-2023-46122",
"lastModified": "2026-06-17T06:30:11.763",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"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"
},
"exploitabilityScore": 1.3,
"impactScore": 2.5,
"source": "security-advisories@github.com",
"type": "Secondary"
},
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 7.1,
"baseSeverity": "HIGH",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 5.2,
"source": "nvd@nist.gov",
"type": "Primary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2023-46122",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-09-11T20:11:11.780221Z",
"version": "2.0.3"
}
}
]
},
"published": "2023-10-23T16:15:09.383",
"references": [
{
"source": "security-advisories@github.com",
"tags": [
"Patch"
],
"url": "https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a"
},
{
"source": "security-advisories@github.com",
"tags": [
"Issue Tracking",
"Patch"
],
"url": "https://github.com/sbt/io/issues/358"
},
{
"source": "security-advisories@github.com",
"tags": [
"Patch"
],
"url": "https://github.com/sbt/io/pull/360"
},
{
"source": "security-advisories@github.com",
"tags": [
"Exploit",
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Patch"
],
"url": "https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Issue Tracking",
"Patch"
],
"url": "https://github.com/sbt/io/issues/358"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Patch"
],
"url": "https://github.com/sbt/io/pull/360"
},
{
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Exploit",
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf"
}
],
"sourceIdentifier": "security-advisories@github.com",
"vulnStatus": "Modified",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-22"
}
],
"source": "security-advisories@github.com",
"type": "Secondary"
},
{
"description": [
{
"lang": "en",
"value": "CWE-22"
}
],
"source": "nvd@nist.gov",
"type": "Primary"
}
]
}
},
"redhat_vex": {
"current_release_date": "2025-05-29T00:10:20+00:00",
"cve": "CVE-2023-46122",
"id": "CVE-2023-46122",
"initial_release_date": "2023-01-01T00:00:00+00:00",
"product_status:known_not_affected": "1",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-46122.json",
"version": "3"
},
"vulnrichment": {
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-02T20:37:39.266Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"name": "https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
],
"url": "https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf"
},
{
"name": "https://github.com/sbt/io/issues/358",
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/sbt/io/issues/358"
},
{
"name": "https://github.com/sbt/io/pull/360",
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/sbt/io/pull/360"
},
{
"name": "https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a",
"tags": [
"x_refsource_MISC",
"x_transferred"
],
"url": "https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2023-46122",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-09-11T20:11:11.780221Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-09-17T13:45:17.051Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"product": "sbt",
"vendor": "sbt",
"versions": [
{
"status": "affected",
"version": "\u003e= 0.3.4, \u003c 1.9.7"
}
]
}
],
"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\u0027s 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": [
{
"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",
"description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2023-10-23T15:51:02.875Z",
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M"
},
"references": [
{
"name": "https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf",
"tags": [
"x_refsource_CONFIRM"
],
"url": "https://github.com/sbt/sbt/security/advisories/GHSA-h9mw-grgx-2fhf"
},
{
"name": "https://github.com/sbt/io/issues/358",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sbt/io/issues/358"
},
{
"name": "https://github.com/sbt/io/pull/360",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sbt/io/pull/360"
},
{
"name": "https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a",
"tags": [
"x_refsource_MISC"
],
"url": "https://github.com/sbt/io/commit/124538348db0713c80793cb57b915f97ec13188a"
}
],
"source": {
"advisory": "GHSA-h9mw-grgx-2fhf",
"discovery": "UNKNOWN"
},
"title": "Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt"
}
},
"cveMetadata": {
"assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"assignerShortName": "GitHub_M",
"cveId": "CVE-2023-46122",
"datePublished": "2023-10-23T15:51:02.875Z",
"dateReserved": "2023-10-16T17:51:35.571Z",
"dateUpdated": "2024-09-17T13:45:20.258Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…