Skip to main content
← All vulnerabilities
CVE-2019-14809GO-2022-0211

net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization bypass in some applica

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

Summary

net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization bypass in some applications. This is related to a Host field with a suffix appearing in neither Hostname() nor Port(), and is related to a non-numeric port number. For example, an attacker can compose a crafted javascript:// URL that results in a hostname of google.com.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • stdlibGo

    fixed in 1.11.13; From 1.12.0-0 · fixed in 1.12.8

References 13

groups.google.com

GitHub · golang/go

seclists.org

debian.org

lists.opensuse.org

lists.fedoraproject.org

access.redhat.com