Red Hat VEX
RHVEX-CVE-2019-14809
golang: malformed hosts in URLs leads to authorization bypass
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | golang | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | golang-bin | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | golang-docs | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | golang-misc | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | golang-src | All versions, will not be fixed |
| Red Hat:enterprise_linux:7 | golang-tests | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2019-14809
- https://bugzilla.redhat.com/show_bug.cgi?id=1743129
- https://www.cve.org/CVERecord?id=CVE-2019-14809
- https://nvd.nist.gov/vuln/detail/CVE-2019-14809
- https://github.com/golang/go/commit/61bb56ad63992a3199acc55b2537c8355ef887b6
- https://github.com/golang/go/issues/29098