{
    "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"
            }
        ]
    }
}