CVE-2019-14809

NameCVE-2019-14809
Descriptionnet/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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDSA-4503-1
NVD severityhigh (attack range: remote)
Debian Bugs934954

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang (PTS)jessie2:1.3.3-1vulnerable
jessie (security)2:1.3.3-1+deb8u2vulnerable
golang-1.11 (PTS)buster1.11.6-1+deb10u1fixed
buster (security)1.11.6-1+deb10u2fixed
golang-1.12 (PTS)bullseye, sid1.12.10-1fixed
golang-1.13 (PTS)bullseye, sid1.13.1-1fixed
golang-1.7 (PTS)stretch1.7.4-2vulnerable
stretch (security)1.7.4-2+deb9u1vulnerable
golang-1.8 (PTS)stretch1.8.1-1vulnerable
stretch (security)1.8.1-1+deb9u1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golangsource(unstable)(unfixed)high
golang-1.11source(unstable)1.11.13-1high
golang-1.11sourcebuster1.11.6-1+deb10u1highDSA-4503-1
golang-1.12source(unstable)1.12.8-1high
golang-1.13source(unstable)1.13~beta1-3high934954
golang-1.7source(unstable)(unfixed)high
golang-1.8source(unstable)(unfixed)high

Notes

[stretch] - golang-1.8 <ignored> (Minor issue)
[stretch] - golang-1.7 <ignored> (Minor issue)
[jessie] - golang <ignored> (Fix too invasive to backport, url.go file in jessie too far behind upstream)
Issue: https://github.com/golang/go/issues/29098
https://github.com/golang/go/commit/c1d9ca70995dc232a2145e3214f94e03409f6fcc (golang-1.11)
https://github.com/golang/go/commit/3226f2d492963d361af9dfc6714ef141ba606713 (golang-1.12)

Search for package or bug name: Reporting problems