Vulnerabilities / CVE-2019-14809

critical

CVE-2019-14809

golang: malformed hosts in URLs leads to authorization bypass

Published Modified
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Amazon (medium), Oracle (medium), Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 1.0go1.11.13-1.ph1
Photon OS 2.0go1.11.13-1.ph2
Photon OS 3.0go1.11.13-1.ph3
alpine 3.10go1.12.8-r0
alpine 3.11go1.12.8-r0
alpine 3.12go1.12.8-r0
alpine 3.13go1.12.8-r0
alpine 3.14go1.12.8-r0
alpine 3.15go1.12.8-r0
alpine 3.16go1.12.8-r0
alpine 3.17go1.12.8-r0
alpine 3.18go1.12.8-r0
Show all 54 entries from 28 sources
SourcePackageFixed in
Photon OS 1.0go1.11.13-1.ph1
Photon OS 2.0go1.11.13-1.ph2
Photon OS 3.0go1.11.13-1.ph3
alpine 3.10go1.12.8-r0
alpine 3.11go1.12.8-r0
alpine 3.12go1.12.8-r0
alpine 3.13go1.12.8-r0
alpine 3.14go1.12.8-r0
alpine 3.15go1.12.8-r0
alpine 3.16go1.12.8-r0
alpine 3.17go1.12.8-r0
alpine 3.18go1.12.8-r0
alpine 3.19go1.12.8-r0
alpine 3.20go1.12.8-r0
alpine 3.21go1.12.8-r0
alpine 3.22go1.12.8-r0
alpine 3.23go1.12.8-r0
alpine 3.24go1.12.8-r0
alpine edgego1.12.8-r0
amazon linux 1golang1.12.8-1.51.amzn1
amazon linux 1golang-bin1.12.8-1.51.amzn1
amazon linux 1golang-docs1.12.8-1.51.amzn1
amazon linux 1golang-misc1.12.8-1.51.amzn1
amazon linux 1golang-race1.12.8-1.51.amzn1
amazon linux 1golang-src1.12.8-1.51.amzn1
amazon linux 1golang-tests1.12.8-1.51.amzn1
amazon linux 2golang1.9.4-3.amzn2.0.3
amazon linux 2golang-bin1.9.4-3.amzn2.0.3
amazon linux 2golang-docs1.9.4-3.amzn2.0.3
amazon linux 2golang-misc1.9.4-3.amzn2.0.3
amazon linux 2golang-src1.9.4-3.amzn2.0.3
amazon linux 2golang-tests1.9.4-3.amzn2.0.3
debian 10golang-1.111.11.6-1+deb10u1
debian 8golangno fix listed
debian 9golang-1.7no fix listed
debian 9golang-1.8no fix listed
go::The Go Vulnerability Databasestdlib1.11.13, 1.12.8
Oracle Linux 8go-toolset1.12.8-1.module+el8.1.0+5435+cbe0acb5
Oracle Linux 8golang1.12.8-2.0.1.module+el8.1.0+5435+cbe0acb5
Oracle Linux 8golang-bin1.12.8-2.0.1.module+el8.1.0+5435+cbe0acb5
Oracle Linux 8golang-docs1.12.8-2.0.1.module+el8.1.0+5435+cbe0acb5
Oracle Linux 8golang-misc1.12.8-2.0.1.module+el8.1.0+5435+cbe0acb5
Oracle Linux 8golang-race1.12.8-2.0.1.module+el8.1.0+5435+cbe0acb5
Oracle Linux 8golang-src1.12.8-2.0.1.module+el8.1.0+5435+cbe0acb5
Oracle Linux 8golang-tests1.12.8-2.0.1.module+el8.1.0+5435+cbe0acb5
Red Hatgolangno fix listed
Red Hatgolang-binno fix listed
Red Hatgolang-docsno fix listed
Red Hatgolang-miscno fix listed
Red Hatgolang-srcno fix listed
Red Hatgolang-testsno fix listed
ubuntu 18.04-ESMgolang-1.10no fix listed
ubuntu 18.04-ESMgolang-1.8no fix listed
ubuntu 18.04-ESMgolang-1.9no fix listed

References

All 28 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.