{"id":"CVE-2019-14809","published":"2019-08-13T20:54:24Z","modified":"2024-08-05T00:26:39Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.08359,"percentile":0.95091,"provenance":"source"},"cwes":[],"references":[{"url":"https://groups.google.com/forum/#%21topic/golang-announce/0uuMm1BwpHE","tags":["x_refsource_MISC"]},{"url":"https://groups.google.com/forum/#%21topic/golang-announce/65QixT3tcmg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/golang/go/issues/29098","tags":["x_refsource_CONFIRM"]},{"url":"https://seclists.org/bugtraq/2019/Aug/31","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"https://www.debian.org/security/2019/dsa-4503","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00076.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00002.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00011.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LYO6E3H34C346D2E443GLXK7OK6KIYIQ/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4BBP27PZGSY6OP6D26E5FW4GZKBFHNU7/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00021.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00038.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3433","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":19.0,"factors":[{"name":"EPSS percentile","points":19.02}]},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.11.13",">=1.12.0-0, <1.12.8"],"patched":["1.11.13","1.12.8"],"from":["GO-2022-0211"],"provenance":"source"}],"summary":{"text":"The flaw is in the net/url package of the Go standard library, in versions before 1.11.13 and 1.12.x before 1.12.8, where malformed hosts in URLs are mishandled, specifically a Host field suffix that appears in neither Hostname() nor Port() when the port is non-numeric. An attacker can exploit this by crafting a URL such as a javascript:// URL that yields a hostname of google.com, which can lead to an authorization bypass in some applications that rely on the parsed host.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:54:37Z"},"euvd":{"id":"EUVD-2019-5938","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-16875","published":"2018-12-14","fixed":"1.11.3","kev":false},{"cve":"CVE-2019-6486","published":"2019-01-24","fixed":"1.11.5","kev":false},{"cve":"CVE-2019-9634","published":"2019-03-08","fixed":"1.12.2","kev":false,"link":{"from":"CVE-2019-9634","to":"CVE-2019-14809","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.11.10","toFixed":"1.11.13","daysApart":158}]}},{"cve":"CVE-2019-14809","published":"2019-08-13","fixed":"1.12.8","kev":false},{"cve":"CVE-2019-9512","published":"2019-08-13","fixed":"1.12.8","kev":false},{"cve":"CVE-2019-9514","published":"2019-08-13","fixed":"1.12.8","kev":false},{"cve":"CVE-2019-16276","published":"2019-09-30","fixed":"1.13.1","kev":false}],"package":"Go:stdlib"}}