CVE-2019-14809
golang: malformed hosts in URLs leads to authorization bypass
Overview
Description
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Go | stdlib | <1.11.13>=1.12.0-0, <1.12.8 | 1.11.131.12.8 |
Open a package to see all its vulnerabilities.
Operating systems · 17 fixes
Oracle Linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | go-toolset | 1.12.8-1.module+el8.1.0+5435+cbe0acb5 |
| 8 | golang +6 | 1.12.8-2.0.1.module+el8.1.0+5435+cbe0acb5 |
Red Hat 3 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| golang +5 | affected | — | |
| 7 | golang +2 | eol | — |
| 7 | golang +5 | wont fix | — |
| 7 | go-toolset-1-12 +9 | 0:1.12.8-2.el7 | RHEA-2019:4179 |
| 8 (go-toolset:rhel8) | go-toolset | 0:1.12.8-1.module+el8.1.0+4089+be929cf8 | RHSA-2019:3433 |
| 8 (go-toolset:rhel8) | golang +6 | 0:1.12.8-2.module+el8.1.0+4089+be929cf8 | RHSA-2019:3433 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.12.8-r0 |
| 3.23 | go | 1.12.8-r0 |
| 3.24 | go | 1.12.8-r0 |
| edge | go | 1.12.8-r0 |
debian 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-1-11 | 1.11.6-1+deb10u1 |
| 9 | golang-1-7 +1 | affected |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | go1-11 +2 | 1.11.13-10.5 | openSUSE-SU-2024:10804-1 |
| Tumbleweed | go1-12 +2 | 1.12.17-4.8 | openSUSE-SU-2024:10805-1 |
ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | golang-1-10 +2 | affected |
References
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00076.html
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00002.html
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00011.html
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00021.html
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00038.html
- access.redhat.com https://access.redhat.com/errata/RHSA-2019:3433
- access.redhat.com https://access.redhat.com/security/cve/CVE-2019-14809
- github.com https://github.com/golang/go/commit/3226f2d492963d361af9dfc6714ef141ba606713 (golang-1.12)
- github.com https://github.com/golang/go/commit/61bb56ad63992a3199acc55b2537c8355ef887b6
- github.com https://github.com/golang/go/commit/c1d9ca70995dc232a2145e3214f94e03409f6fcc (golang-1.11)
Show all 28 references
- github.com https://github.com/golang/go/issues/29098
- go.dev https://go.dev/cl/189258
- go.dev https://go.dev/issue/29098
- go.googlesource.com https://go.googlesource.com/go/+/61bb56ad63992a3199acc55b2537c8355ef887b6
- groups.google.com https://groups.google.com/forum/#!topic/golang-announce/0uuMm1BwpHE
- groups.google.com https://groups.google.com/forum/#!topic/golang-announce/65QixT3tcmg
- groups.google.com https://groups.google.com/forum/#%21topic/golang-announce/0uuMm1BwpHE
- groups.google.com https://groups.google.com/forum/#%21topic/golang-announce/65QixT3tcmg
- groups.google.com https://groups.google.com/g/golang-announce/c/65QixT3tcmg
- linux.oracle.com https://linux.oracle.com/cve/CVE-2019-14809.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2019-3433.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4BBP27PZGSY6OP6D26E5FW4GZKBFHNU7/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LYO6E3H34C346D2E443GLXK7OK6KIYIQ/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2019-14809
- pkg.go.dev https://pkg.go.dev/vuln/GO-2022-0211
- seclists.org https://seclists.org/bugtraq/2019/Aug/31
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2019-14809
- www.debian.org https://www.debian.org/security/2019/dsa-4503
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.