CVE-2021-33195
JSON

7.3high

Improper sanitization when resolving values from DNS in net

Severity
7.3high CVSS:3.1 by NVD
Exploit likelihood
3.20% (higher than 88% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GO-2021-0239BIT-GOLANG-2021-33195

Description

Go before 1.15.13 and 1.16.x before 1.16.5 has functions for DNS lookups that do not validate replies from DNS servers, and thus a return value may contain an unsafe injection (e.g., XSS) that does not conform to the RFC1035 format.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
stdlib (Go)before 1.15.13, from 1.16.0-0 before 1.16.5Go Vulnerability Database
golang gobefore 1.15.13, from 1.16.0 before 1.16.5NVD
netapp cloud_insights_telegraf_agentNot specifiedNVD
golang (Bitnami)before 1.15.13, from 1.16.0 before 1.16.5Bitnami Vulnerability Database

All scores

NVD7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

Go before 1.15.13 and 1.16.x before 1.16.5 has functions for DNS lookups that do not validate replies from DNS servers, and thus a return value may contain an unsafe injection (e.g., XSS) that does not conform to the RFC1035 format.

Go Vulnerability Database

The LookupCNAME, LookupSRV, LookupMX, LookupNS, and LookupAddr functions and their respective methods on the Resolver type may return arbitrary values retrieved from DNS which do not follow the established RFC 1035 rules for domain names. If these names are used without further sanitization, for instance unsafely included in HTML, they may allow for injection of unexpected content. Note that LookupTXT may still return arbitrary values that could require sanitization before further use.

NVD (es)

Go versiones anteriores a 1.15.13 y versiones 1.16.x anteriores a 1.16.5 tiene funciones para las búsquedas de DNS que no validan las respuestas de los servidores DNS, y por lo tanto un valor de retorno puede contener una inyección insegura (por ejemplo, XSS) que no se ajusta al formato RFC1035

References

Sources

SourceRecordLicence
CVE ListCVE-2021-33195 changed 2024-08-03CVE Terms of Use
Go Vulnerability DatabaseGO-2021-0239 changed 2024-05-20CC-BY-4.0
NVDCVE-2021-33195 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2021-33195 changed 2026-09-08Apache-2.0