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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| stdlib (Go) | before 1.15.13, from 1.16.0-0 before 1.16.5 | Go Vulnerability Database |
| golang go | before 1.15.13, from 1.16.0 before 1.16.5 | NVD |
| netapp cloud_insights_telegraf_agent | Not specified | NVD |
| golang (Bitnami) | before 1.15.13, from 1.16.0 before 1.16.5 | Bitnami Vulnerability Database |
All scores
| NVD | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | high 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
| https://groups.google.com/g/golang-announce | advisory, third-party-advisory | |
| https://groups.google.com/g/golang-announce/c/RgCMkAEQjSI | advisory, exploit, patch, third-party-advisory, web | |
| https://security.netapp.com/advisory/ntap-20210902-0005/ | advisory, third-party-advisory | |
| https://security.gentoo.org/glsa/202208-02 | advisory, third-party-advisory, vendor-advisory | |
| https://go.dev/cl/320949 | fix | |
| https://go.googlesource.com/go/+/c89f1224a544cde464fcb86e78ebb0cc97eedba2 | fix | |
| https://go.dev/issue/46241 | report | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-33195 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-33195 changed 2024-08-03 | CVE Terms of Use |
| Go Vulnerability Database | GO-2021-0239 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2021-33195 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2021-33195 changed 2026-09-08 | Apache-2.0 |