{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-39320",
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "state": "PUBLISHED",
        "assignerShortName": "Go",
        "dateReserved": "2023-07-27T17:05:55.186Z",
        "datePublished": "2023-09-08T16:13:26.609Z",
        "dateUpdated": "2024-09-26T17:28:41.807Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
                "shortName": "Go",
                "dateUpdated": "2023-09-08T16:13:26.609Z"
            },
            "title": "Arbitrary code execution via go.mod toolchain directive in cmd/go",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "The go.mod toolchain directive, introduced in Go 1.21, can be leveraged to execute scripts and binaries relative to the root of the module when the \"go\" command was executed within the module. This applies to modules downloaded using the \"go\" command from the module proxy, as well as modules downloaded directly using VCS software."
                }
            ],
            "affected": [
                {
                    "vendor": "Go toolchain",
                    "product": "cmd/go",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "cmd/go",
                    "versions": [
                        {
                            "version": "1.21.0-0",
                            "lessThan": "1.21.1",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "CWE-94: Improper Control of Generation of Code ('Code Injection')"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://go.dev/issue/62198"
                },
                {
                    "url": "https://go.dev/cl/526158"
                },
                {
                    "url": "https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ"
                },
                {
                    "url": "https://pkg.go.dev/vuln/GO-2023-2042"
                },
                {
                    "url": "https://security.netapp.com/advisory/ntap-20231020-0004/"
                },
                {
                    "url": "https://security.gentoo.org/glsa/202311-09"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Juho Nurminen of Mattermost"
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T18:02:06.849Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://go.dev/issue/62198",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://go.dev/cl/526158",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://pkg.go.dev/vuln/GO-2023-2042",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://security.netapp.com/advisory/ntap-20231020-0004/",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://security.gentoo.org/glsa/202311-09",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            },
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-09-26T17:28:10.391044Z",
                                "id": "CVE-2023-39320",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-26T17:28:41.807Z"
                }
            }
        ]
    }
}