{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2022-41716",
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "state": "PUBLISHED",
        "assignerShortName": "Go",
        "requesterUserId": "7d08541a-cd0a-42e2-8f81-76e6ceb65fc3",
        "dateReserved": "2022-09-28T17:00:06.607Z",
        "datePublished": "2022-11-02T15:28:19.574Z",
        "dateUpdated": "2024-08-03T12:49:43.904Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
                "shortName": "Go",
                "dateUpdated": "2023-06-12T19:12:49.198Z"
            },
            "title": "Unsanitized NUL in environment variables on Windows in syscall and os/exec",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Due to unsanitized NUL values, attackers may be able to maliciously set environment variables on Windows. In syscall.StartProcess and os/exec.Cmd, invalid environment variable values containing NUL values are not properly checked for. A malicious environment variable value can exploit this behavior to set a value for a different environment variable. For example, the environment variable string \"A=B\\x00C=D\" sets the variables \"A=B\" and \"C=D\"."
                }
            ],
            "affected": [
                {
                    "vendor": "Go standard library",
                    "product": "syscall",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "syscall",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "1.18.8",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "1.19.0-0",
                            "lessThan": "1.19.3",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "platforms": [
                        "windows"
                    ],
                    "programRoutines": [
                        {
                            "name": "StartProcess"
                        }
                    ],
                    "defaultStatus": "unaffected"
                },
                {
                    "vendor": "Go standard library",
                    "product": "os/exec",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "os/exec",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "1.18.8",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "1.19.0-0",
                            "lessThan": "1.19.3",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "platforms": [
                        "windows"
                    ],
                    "programRoutines": [
                        {
                            "name": "Cmd.environ"
                        },
                        {
                            "name": "dedupEnv"
                        },
                        {
                            "name": "dedupEnvCase"
                        },
                        {
                            "name": "Cmd.CombinedOutput"
                        },
                        {
                            "name": "Cmd.Environ"
                        },
                        {
                            "name": "Cmd.Output"
                        },
                        {
                            "name": "Cmd.Run"
                        },
                        {
                            "name": "Cmd.Start"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "CWE-158: Improper Neutralization of Null Byte or NUL Character"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://go.dev/issue/56284"
                },
                {
                    "url": "https://go.dev/cl/446916"
                },
                {
                    "url": "https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ"
                },
                {
                    "url": "https://pkg.go.dev/vuln/GO-2022-1095"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "RyotaK (https://twitter.com/ryotkak)"
                }
            ]
        },
        "adp": [
            {
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://security.netapp.com/advisory/ntap-20230120-0007/"
                    },
                    {
                        "url": "https://go.dev/issue/56284",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://go.dev/cl/446916",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://pkg.go.dev/vuln/GO-2022-1095",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ],
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T12:49:43.904Z"
                }
            },
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-08-01T14:02:04.861393Z",
                                "id": "CVE-2022-41716",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-08-01T14:02:16.092Z"
                }
            }
        ]
    }
}