{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2022-29804",
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "dateUpdated": "2024-08-03T06:33:42.804Z",
        "dateReserved": "2022-04-26T00:00:00",
        "datePublished": "2022-08-09T00:00:00"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
                "shortName": "Go",
                "dateUpdated": "2024-01-04T18:08:46.071Z"
            },
            "title": "Path traversal via Clean on Windows in path/filepath",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Incorrect conversion of certain invalid paths to valid, absolute paths in Clean in path/filepath before Go 1.17.11 and Go 1.18.3 on Windows allows potential directory traversal attack."
                }
            ],
            "affected": [
                {
                    "vendor": "Go standard library",
                    "product": "path/filepath",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "path/filepath",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "1.17.11",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "1.18.0-0",
                            "lessThan": "1.18.3",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "platforms": [
                        "windows"
                    ],
                    "programRoutines": [
                        {
                            "name": "Clean"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://go.dev/cl/401595"
                },
                {
                    "url": "https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290"
                },
                {
                    "url": "https://go.dev/issue/52476"
                },
                {
                    "url": "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ"
                },
                {
                    "url": "https://pkg.go.dev/vuln/GO-2022-0533"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Unrud"
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T06:33:42.804Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://go.dev/cl/401595",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://go.dev/issue/52476",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://pkg.go.dev/vuln/GO-2022-0533",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}