VulnerabilityModified
CVE-2022-32190
JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative path.
HIGH 7.5EPSS 2.15%
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (2.15%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative path. For example, JoinPath("https://go.dev", "../go") returns the URL "https://go.dev/../go", despite the JoinPath documentation stating that ../ path elements are removed from the result.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 2.15% probability · 81th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-22
- Affected
- golang/go
- Source
- security@golang.org
References
- https://go.dev/cl/423514Patch, Release Notes
- https://go.dev/issue/54385Issue Tracking, Patch, Vendor Advisory
- https://groups.google.com/g/golang-announce/c/x49AQzIVX-sMailing List, Third Party Advisory
- https://pkg.go.dev/vuln/GO-2022-0988Issue Tracking, Patch, Vendor Advisory
- https://go.dev/cl/423514Patch, Release Notes
- https://go.dev/issue/54385Issue Tracking, Patch, Vendor Advisory
- https://groups.google.com/g/golang-announce/c/x49AQzIVX-sMailing List, Third Party Advisory
- https://pkg.go.dev/vuln/GO-2022-0988Issue Tracking, Patch, Vendor Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.