{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2022-41716",
        "ASSIGNER": "security@golang.org",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "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\"."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-158: Improper Neutralization of Null Byte or NUL Character"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "Go standard library",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "syscall",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "0",
                                            "version_value": "1.18.8"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "1.19.0-0",
                                            "version_value": "1.19.3"
                                        }
                                    ]
                                }
                            },
                            {
                                "product_name": "os/exec",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "0",
                                            "version_value": "1.18.8"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "1.19.0-0",
                                            "version_value": "1.19.3"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://go.dev/issue/56284",
                "refsource": "MISC",
                "name": "https://go.dev/issue/56284"
            },
            {
                "url": "https://go.dev/cl/446916",
                "refsource": "MISC",
                "name": "https://go.dev/cl/446916"
            },
            {
                "url": "https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ",
                "refsource": "MISC",
                "name": "https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ"
            },
            {
                "url": "https://pkg.go.dev/vuln/GO-2022-1095",
                "refsource": "MISC",
                "name": "https://pkg.go.dev/vuln/GO-2022-1095"
            }
        ]
    },
    "credits": [
        {
            "lang": "en",
            "value": "RyotaK (https://twitter.com/ryotkak)"
        }
    ]
}