GO-2022-0533
Dashboard / Vulnerabilities / GO-2022-0533
GO-2022-0533
Published: 28 Jul 2022Last Modified: 20 May 2024
Aliases:
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: https://go.dev/cl/401595, https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290, https://go.dev/issue/52476, https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ
Affected packages
Package
Name: stdlib
Purl: pkg:golang/stdlib
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.17.11
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
