Skip to main content
← All vulnerabilities
CVE-2022-32190GO-2022-0988BIT-GOLANG-2022-32190

Failure to strip relative path components in net/url

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.19.1
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • net/url

    From 1.19.0-0 · fixed in 1.19.1

  • stdlibGo

    From 1.19.0-0 · fixed in 1.19.1

References 4

groups.google.com

go.dev

pkg.go.dev