{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2022-41722",
        "ASSIGNER": "security@golang.org",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as \"a/../c:/b\" into the valid path \"c:\\b\". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path \".\\c:\\b\"."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-22: Improper Limitation of a Pathname to a Restricted\nDirectory (\"Path Traversal\")\n"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "Go standard library",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "path/filepath",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<",
                                            "version_name": "0",
                                            "version_value": "1.19.6"
                                        },
                                        {
                                            "version_affected": "<",
                                            "version_name": "1.20.0-0",
                                            "version_value": "1.20.1"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://go.dev/issue/57274",
                "refsource": "MISC",
                "name": "https://go.dev/issue/57274"
            },
            {
                "url": "https://go.dev/cl/468123",
                "refsource": "MISC",
                "name": "https://go.dev/cl/468123"
            },
            {
                "url": "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E",
                "refsource": "MISC",
                "name": "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E"
            },
            {
                "url": "https://pkg.go.dev/vuln/GO-2023-1568",
                "refsource": "MISC",
                "name": "https://pkg.go.dev/vuln/GO-2023-1568"
            }
        ]
    },
    "credits": [
        {
            "lang": "en",
            "value": "RyotaK (https://ryotak.net)"
        }
    ]
}