{"id":"CVE-2022-32190","state":"PUBLISHED","title":"Failure to strip relative path components in net/url","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.","publishedAt":"2022-09-13T17:08:57.000Z","updatedAt":"2024-08-03T07:32:56.001Z","severity":null,"assigner":"Go","products":["Go standard library net/url"],"affected":[{"vendor":"Go standard library","product":"net/url","packageName":"net/url","defaultStatus":"unaffected","versions":[{"version":"1.19.0-0","status":"affected","lessThan":"1.19.1","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"URL.JoinPath"},{"name":"JoinPath"}]}],"references":["https://groups.google.com/g/golang-announce/c/x49AQzIVX-s","https://go.dev/issue/54385","https://go.dev/cl/423514","https://pkg.go.dev/vuln/GO-2022-0988"],"weaknesses":[],"ingestedAt":"2026-10-29T19:50:09.278Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/32xxx/CVE-2022-32190.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-32190","state":"PUBLISHED","datePublished":"2022-09-13T17:08:57.000Z","dateUpdated":"2024-08-03T07:32:56.001Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2022-05-31T00:00:00.000Z"},"containers":{"cna":{"title":"Failure to strip relative path components in net/url","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Go standard library","product":"net/url","packageName":"net/url","defaultStatus":"unaffected","versions":[{"version":"1.19.0-0","status":"affected","lessThan":"1.19.1","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"URL.JoinPath"},{"name":"JoinPath"}]}],"references":[{"url":"https://groups.google.com/g/golang-announce/c/x49AQzIVX-s"},{"url":"https://go.dev/issue/54385"},{"url":"https://go.dev/cl/423514"},{"url":"https://pkg.go.dev/vuln/GO-2022-0988"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2023-06-12T19:05:24.713Z"},"credits":[{"lang":"en","value":"@q0jt"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://groups.google.com/g/golang-announce/c/x49AQzIVX-s","tags":["x_transferred"]},{"url":"https://go.dev/issue/54385","tags":["x_transferred"]},{"url":"https://go.dev/cl/423514","tags":["x_transferred"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0988","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T07:32:56.001Z"}}]}}}