CVE-2023-46122 (GCVE-0-2023-46122)
Vulnerability from cvelistv5
Published
2023-10-23 15:51
Modified
2024-09-17 13:45
Severity ?
VLAI Severity ?
EPSS score ?
CWE
- CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
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.
References
| URL | Tags | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
{
"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": {
"vulnrichment": {
"containers": "{\"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\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T20:37:39.266Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2023-46122\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-11T20:11:11.780221Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-17T13:45:17.051Z\"}}], \"cna\": {\"title\": \"Arbitrary file write via archive extraction (Zip Slip) vulnerability in sbt\", \"source\": {\"advisory\": \"GHSA-h9mw-grgx-2fhf\", \"discovery\": \"UNKNOWN\"}, \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 3.9, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"LOW\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L\", \"integrityImpact\": \"LOW\", \"userInteraction\": \"REQUIRED\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"LOW\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"NONE\"}}], \"affected\": [{\"vendor\": \"sbt\", \"product\": \"sbt\", \"versions\": [{\"status\": \"affected\", \"version\": \"\u003e= 0.3.4, \u003c 1.9.7\"}]}], \"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\"]}], \"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.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-22\", \"description\": \"CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)\"}]}], \"providerMetadata\": {\"orgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"shortName\": \"GitHub_M\", \"dateUpdated\": \"2023-10-23T15:51:02.875Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2023-46122\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-09-17T13:45:20.258Z\", \"dateReserved\": \"2023-10-16T17:51:35.571Z\", \"assignerOrgId\": \"a0819718-46f1-4df5-94e2-005712e83aaa\", \"datePublished\": \"2023-10-23T15:51:02.875Z\", \"assignerShortName\": \"GitHub_M\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…