CVE-2022-29804

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.
Configurations

Configuration 1 (hide)

AND
OR cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*

History

07 Nov 2023, 03:46

Type Values Removed Values Added
References (MISC) https://go.dev/cl/401595 - Patch, Vendor Advisory () https://go.dev/cl/401595 -
References (MISC) https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290 - Mailing List, Patch, Vendor Advisory () https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290 -
References (MISC) https://go.dev/issue/52476 - Patch, Vendor Advisory () https://go.dev/issue/52476 -
References (MISC) https://pkg.go.dev/vuln/GO-2022-0533 - Patch, Vendor Advisory () https://pkg.go.dev/vuln/GO-2022-0533 -
References (MISC) https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ - Mailing List, Release Notes () https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ -

28 Feb 2023, 14:56

Type Values Removed Values Added
References (MISC) https://go.dev/cl/401595 - (MISC) https://go.dev/cl/401595 - Patch, Vendor Advisory
References (MISC) https://pkg.go.dev/vuln/GO-2022-0533 - (MISC) https://pkg.go.dev/vuln/GO-2022-0533 - Patch, Vendor Advisory
References (MISC) https://go.dev/issue/52476 - (MISC) https://go.dev/issue/52476 - Patch, Vendor Advisory
References (MISC) https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290 - (MISC) https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290 - Mailing List, Patch, Vendor Advisory
References (MISC) https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ - (MISC) https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ - Mailing List, Release Notes

29 Dec 2022, 18:15

Type Values Removed Values Added
Summary In filepath.Clean in path/filepath in Go before 1.17.11 and 1.18.x before 1.18.3 on Windows, invalid paths such as .\c: could be converted to valid paths (such as c: in this example). 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.
References
  • {'url': 'https://groups.google.com/g/golang-announce', 'name': 'https://groups.google.com/g/golang-announce', 'tags': [], 'refsource': 'MISC'}
  • {'url': 'https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg', 'name': 'https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg', 'tags': [], 'refsource': 'CONFIRM'}
  • (MISC) https://go.dev/issue/52476 -
  • (MISC) https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ -
  • (MISC) https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290 -
  • (MISC) https://go.dev/cl/401595 -
  • (MISC) https://pkg.go.dev/vuln/GO-2022-0533 -

06 Sep 2022, 18:15

Type Values Removed Values Added
Summary 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. In filepath.Clean in path/filepath in Go before 1.17.11 and 1.18.x before 1.18.3 on Windows, invalid paths such as .\c: could be converted to valid paths (such as c: in this example).
References
  • {'url': 'https://go.dev/cl/401595', 'name': 'https://go.dev/cl/401595', 'tags': ['Patch', 'Vendor Advisory'], 'refsource': 'MISC'}
  • {'url': 'https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ', 'name': 'https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ', 'tags': ['Release Notes', 'Vendor Advisory'], 'refsource': 'MISC'}
  • {'url': 'https://pkg.go.dev/vuln/GO-2022-0533', 'name': 'https://pkg.go.dev/vuln/GO-2022-0533', 'tags': ['Patch', 'Vendor Advisory'], 'refsource': 'MISC'}
  • {'url': 'https://go.dev/issue/52476', 'name': 'https://go.dev/issue/52476', 'tags': ['Exploit', 'Issue Tracking', 'Patch', 'Vendor Advisory'], 'refsource': 'MISC'}
  • {'url': 'https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290', 'name': 'https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290', 'tags': ['Patch', 'Vendor Advisory'], 'refsource': 'MISC'}
  • (MISC) https://groups.google.com/g/golang-announce -
  • (CONFIRM) https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg -

15 Aug 2022, 17:07

Type Values Removed Values Added
References (MISC) https://go.dev/cl/401595 - (MISC) https://go.dev/cl/401595 - Patch, Vendor Advisory
References (MISC) https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ - (MISC) https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ - Release Notes, Vendor Advisory
References (MISC) https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290 - (MISC) https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290 - Patch, Vendor Advisory
References (MISC) https://pkg.go.dev/vuln/GO-2022-0533 - (MISC) https://pkg.go.dev/vuln/GO-2022-0533 - Patch, Vendor Advisory
References (MISC) https://go.dev/issue/52476 - (MISC) https://go.dev/issue/52476 - Exploit, Issue Tracking, Patch, Vendor Advisory
CPE cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*
First Time Microsoft
Golang
Microsoft windows
Golang go
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.5
CWE CWE-22

10 Aug 2022, 20:15

Type Values Removed Values Added
New CVE

Information

Published : 2022-08-10 20:15

Updated : 2023-12-10 14:35


NVD link : CVE-2022-29804

Mitre link : CVE-2022-29804

CVE.ORG link : CVE-2022-29804


JSON object : View

Products Affected

golang

  • go

microsoft

  • windows
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')