Live threats

All CVEs / Golang

CVE-2019-14809Golang Go

Critical 9.8 No auth needed

Priority
75
CVSS 3.0
9.8
EPSS
8.4%
probability of exploitation in 30 days · percentile 96
Auth required
No
Published
Aug 13, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go stdlib < 1.11.13 1.11.13 go get stdlib@v1.11.13
Go stdlib ≥ 1.12.0-0 < 1.12.8 1.12.8 go get stdlib@v1.12.8

Per OSV / GitHub Advisories (GO-2022-0211). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golanggo< 1.11.13
golanggo≥ 1.12.0 < 1.12.8
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.