Improper Input Validation Affecting golang-docs package, versions <0:1.12.8-2.module+el8.1.0+4089+be929cf8


Severity

Recommended
medium

Based on CentOS security rating.

Threat Intelligence

EPSS
3.74% (93rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CENTOS8-GOLANGDOCS-1997701
  • published26 Jul 2021
  • disclosed13 Aug 2019

Introduced: 13 Aug 2019

CVE-2019-14809  (opens in a new tab)
CWE-20  (opens in a new tab)
CWE-285  (opens in a new tab)

How to fix?

Upgrade Centos:8 golang-docs to version 0:1.12.8-2.module+el8.1.0+4089+be929cf8 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-docs package and not the golang-docs package as distributed by Centos. See How to fix? for Centos:8 relevant fixed versions and status.

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.