GO-2022-0533

See a problem?
Source
https://pkg.go.dev/vuln/GO-2022-0533
Import Source
https://vuln.go.dev/ID/GO-2022-0533.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2022-0533
Aliases
Published
2022-07-28T17:25:07Z
Modified
2024-05-20T16:03:47Z
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.

For example, Clean(".\c:") returns "c:".

References
Credits
    • Unrud

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.17.11
Introduced
1.18.0-0
Fixed
1.18.3

Ecosystem specific

{
    "imports": [
        {
            "path": "path/filepath",
            "symbols": [
                "Clean"
            ],
            "goos": [
                "windows"
            ]
        }
    ]
}