blob: 678a39e65dfb76da8a9736e52e2be7953bbe681c [file] [log] [blame]
{
"schema_version": "1.3.1",
"id": "GO-2022-0533",
"modified": "0001-01-01T00:00:00Z",
"published": "2022-07-28T17:25:07Z",
"aliases": [
"CVE-2022-29804"
],
"summary": "Path traversal via Clean on Windows in path/filepath",
"details": "On Windows, the filepath.Clean function can convert certain invalid paths to valid, absolute paths, potentially allowing a directory traversal attack.\n\nFor example, Clean(\".\\c:\") returns \"c:\".",
"affected": [
{
"package": {
"name": "stdlib",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.17.11"
},
{
"introduced": "1.18.0-0"
},
{
"fixed": "1.18.3"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "path/filepath",
"goos": [
"windows"
],
"symbols": [
"Clean"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://go.dev/cl/401595"
},
{
"type": "FIX",
"url": "https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290"
},
{
"type": "REPORT",
"url": "https://go.dev/issue/52476"
},
{
"type": "WEB",
"url": "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ"
}
],
"credits": [
{
"name": "Unrud"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-0533"
}
}