{"id":"GHSA-gv9j-4w24-q7vx","aliases":["GHSA-gv9j-4w24-q7vx","GO-2022-0368"],"related":["CGA-wm3p-xqrc-3fg6"],"kind":"vulnerability","state":"published","title":"Improper random number generation in github.com/coredns/coredns","summary":"### Impact\n\nCoreDNS before 1.6.6 (using go DNS package < 1.1.25) improperly generates random numbers because math/rand is used. The TXID becomes predictable, leading to response forgeries.\n\n### Patches\nThe problem has been fixed in 1.6.6+.\n\n### References\n- [CVE-2019-19794](https://nvd.nist.gov/vuln/detail/CVE-2019-19794)\n\n### For more information\nPlease consult [our security guide](https://github.com/coredns/coredns/blob/master/.github/SECURITY.md) for more information regarding our security process.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n\nCoreDNS before 1.6.6 (using go DNS package < 1.1.25) improperly generates random numbers because math/rand is used. The TXID becomes predictable, leading to response forgeries.\n\n### Patches\nThe problem has been fixed in 1.6.6+.\n\n### References\n- [CVE-2019-19794](https://nvd.nist.gov/vuln/detail/CVE-2019-19794)\n\n### For more information\nPlease consult [our security guide](https://github.com/coredns/coredns/blob/master/.github/SECURITY.md) for more information regarding our security process.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Improper random number generation in github.com/coredns/coredns","format":"markdown","source":"go"}],"published":"2022-03-01T21:03:11.000Z","modified":"2026-09-10T03:49:28.357Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-330"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.6.6"}],"ecosystem":"Go","package":"github.com/coredns/coredns","purl":"pkg:golang/github.com/coredns/coredns","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.6.6"}],"ecosystem":"Go","package":"github.com/coredns/coredns","purl":"pkg:golang/github.com/coredns/coredns","source":"go"}],"references":[{"url":"https://github.com/coredns/coredns/security/advisories/GHSA-gv9j-4w24-q7vx","tags":["advisory","web"],"sources":["ghsa","go"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gv9j-4w24-q7vx","url":"https://github.com/advisories/GHSA-gv9j-4w24-q7vx","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:28.357Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0368","url":"https://pkg.go.dev/vuln/GO-2022-0368","licence":"CC-BY-4.0","modified":"2026-02-04T04:17:25.749Z"}],"updatedAt":"2026-11-25T22:56:23.062Z"}