{"id":"CVE-2021-33195","aliases":["CVE-2021-33195","GO-2021-0239","BIT-GOLANG-2021-33195"],"related":[],"kind":"vulnerability","state":"published","title":"Improper sanitization when resolving values from DNS in net","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"go"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-08-02T18:51:34.000Z","modified":"2026-09-08T08:47:48.215Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.15.13"},{"type":"semver","introduced":"1.16.0-0","status":"affected","fixed":"1.16.5"}],"ecosystem":"Go","package":"stdlib","purl":"pkg:golang/stdlib","source":"go"},{"ranges":[{"status":"affected","fixed":"1.15.13"},{"status":"affected","introduced":"1.16.0","fixed":"1.16.5"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"cloud_insights_telegraf_agent","cpe":"cpe:2.3:a:netapp:cloud_insights_telegraf_agent:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.15.13"},{"type":"semver","introduced":"1.16.0","status":"affected","fixed":"1.16.5"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://groups.google.com/g/golang-announce","tags":["advisory","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://groups.google.com/g/golang-announce/c/RgCMkAEQjSI","tags":["advisory","exploit","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20210902-0005/","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202208-02","tags":["advisory","third-party-advisory","vendor-advisory","x-refsource-gentoo","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://go.dev/cl/320949","tags":["fix"],"sources":["go"]},{"url":"https://go.googlesource.com/go/+/c89f1224a544cde464fcb86e78ebb0cc97eedba2","tags":["fix"],"sources":["go"]},{"url":"https://go.dev/issue/46241","tags":["report"],"sources":["go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33195","tags":["web"],"sources":["bitnami"]}],"credits":["Philipp Jeitner","Haya Shulman from Fraunhofer SIT"],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-33195","url":"https://www.cve.org/CVERecord?id=CVE-2021-33195","licence":"CVE Terms of Use","modified":"2024-08-03T23:42:20.281Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2021-0239","url":"https://pkg.go.dev/vuln/GO-2021-0239","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-33195","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33195","licence":"Public domain","modified":"2026-06-17T03:54:20.203Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2021-33195","url":"https://osv.dev/vulnerability/BIT-GOLANG-2021-33195","licence":"Apache-2.0","modified":"2026-09-08T08:47:48.215Z"}],"updatedAt":"2026-11-25T22:58:02.933Z","epss":{"score":0.03204,"percentile":0.88482,"date":"2026-12-01T12:00:22.000Z"}}