Skip to content
OpenAdvisories
Unscored CVE-2019-14809 EUVD-2019-5938GHSA-2xf8-4fv6-m993GO-2022-0211

Incorrect parsing validation in net/url

Published Aug 13, 2019 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 10 golang-1.11 1.11.6-1+deb10u1 DSA-4503-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS golang-1.8 +2 No fix yet —
Ubuntu 16.04 LTS golang-1.6 +1 No fix yet —
Ubuntu 14.04 LTS golang-1.10 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 go-toolset 1.12.8-1.module+el8.1.0+4089+be929cf8 RHSA-2019:3433
RHEL 8 golang +6 1.12.8-2.module+el8.1.0+4089+be929cf8 RHSA-2019:3433
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Devtools 2019 go-toolset-1.12 +9 1.12.8-2.el7 RHEA-2019:4179
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed go1.11 1.11.13-10.5 openSUSE-SU-2024:10804-1
openSUSE Tumbleweed go1.12 1.12.17-4.8 openSUSE-SU-2024:10805-1
openSUSE Leap 15.1 go1.11 1.11.13-lp151.2.9.1 openSUSE-SU-2019:2072-1
openSUSE Leap 15.1 go1.12 1.12.9-lp151.2.9.1 openSUSE-SU-2019:2130-1, openSUSE-SU-2019:2085-1, openSUSE-SU-2019:2056-1
openSUSE Leap 15.0 go1.11 1.11.13-lp151.2.9.1 openSUSE-SU-2019:2072-1
openSUSE Leap 15.0 go1.12 1.12.9-lp151.2.13.1 openSUSE-SU-2019:2056-1
ReleasePackageFixed inAdvisory
Alpine v3.24 go 1.12.8-r0 —
Alpine v3.23 go 1.12.8-r0 —
Alpine v3.22 go 1.12.8-r0 —
Alpine v3.21 go 1.12.8-r0 —
Alpine v3.20 go 1.12.8-r0 —
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 go 1.12.8-r0 —
Alpine v3.18 go 1.12.8-r0 —
Alpine v3.17 go 1.12.8-r0 —
Alpine v3.16 go 1.12.8-r0 —
Alpine v3.15 go 1.12.8-r0 —
Alpine v3.14 go 1.12.8-r0 —
Alpine v3.13 go 1.12.8-r0 —
Alpine v3.12 go 1.12.8-r0 —
Alpine v3.11 go 1.12.8-r0 —
Alpine v3.10 go 1.12.8-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 golang +5 1.9.4-3.amzn2.0.3 ALAS2-2019-1309

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 golang No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 go-toolset 1.12.8-1.module+el8.1.0+5435+cbe0acb5 ELSA-2019-3433
Oracle Linux 8 golang +6 1.12.8-2.0.1.module+el8.1.0+5435+cbe0acb5 ELSA-2019-3433

Affected packages

EcosystemPackageAffectedFixedRecord
Go stdlib < 1.11.13 · >= 1.12.0-0, < 1.12.8 1.11.13, 1.12.8 GO-2022-0211

Advisories 12

References