{"id":"GHSA-gv9j-4w24-q7vx","aliases":["GO-2022-0368"],"summary":"Improper random number generation in github.com/coredns/coredns","published_at":"2022-03-01T21:03:11Z","modified_at":"2026-09-10T03:49:28.357767Z","products":[{"slug":"coredns","name":"CoreDNS","category":"kubernetes-container"}],"rating":{"severity":"unknown","attack_path":"unknown","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"priority":3,"record_count":2,"vendors":["GitHub","Go"],"details":"### 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.","affected_stack":[{"ecosystem":"Go","package":"github.com/coredns/coredns","purl":"pkg:golang/github.com/coredns/coredns","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.6.6"}]}],"fixed":["1.6.6"],"provider":"osv","source":"GHSA-gv9j-4w24-q7vx","relation":"self"},{"ecosystem":"Go","package":"github.com/coredns/coredns","purl":"pkg:golang/github.com/coredns/coredns","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.6.6"}]}],"fixed":["1.6.6"],"provider":"osv","source":"GO-2022-0368","relation":"self"}],"affected_other":[],"product_status":[],"records":[{"provider":"osv","source_id":"GHSA-gv9j-4w24-q7vx","relation":"self","url":"https://osv.dev/vulnerability/GHSA-gv9j-4w24-q7vx","license":"CC-BY-4.0","published_at":"2022-03-01T21:03:11Z","modified_at":"2026-09-10T03:49:28.357767Z","summary":"Improper random number generation in github.com/coredns/coredns","details":"### 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.","severity":[],"affected":[{"ecosystem":"Go","package":"github.com/coredns/coredns","purl":"pkg:golang/github.com/coredns/coredns","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.6.6"}]}],"fixed":["1.6.6"],"provider":"osv","source":"GHSA-gv9j-4w24-q7vx","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/coredns/coredns/security/advisories/GHSA-gv9j-4w24-q7vx"},{"type":"PACKAGE","url":"github.com/coredns/coredns"}]},{"provider":"osv","source_id":"GO-2022-0368","relation":"self","url":"https://osv.dev/vulnerability/GO-2022-0368","license":"CC-BY-4.0","published_at":"2024-08-21T14:30:31Z","modified_at":"2026-02-04T04:17:25.74952Z","summary":"Improper random number generation in github.com/coredns/coredns","details":"Improper random number generation in github.com/coredns/coredns","severity":[],"affected":[{"ecosystem":"Go","package":"github.com/coredns/coredns","purl":"pkg:golang/github.com/coredns/coredns","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.6.6"}]}],"fixed":["1.6.6"],"provider":"osv","source":"GO-2022-0368","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/coredns/coredns/security/advisories/GHSA-gv9j-4w24-q7vx"}]}],"references":[{"type":"WEB","url":"https://github.com/coredns/coredns/security/advisories/GHSA-gv9j-4w24-q7vx"},{"type":"PACKAGE","url":"github.com/coredns/coredns"}],"sources":[{"provider":"osv","source_id":"GHSA-gv9j-4w24-q7vx","url":"https://osv.dev/vulnerability/GHSA-gv9j-4w24-q7vx","license":"CC-BY-4.0","modified_at":"2026-09-10T03:49:28.357767Z","relation":"self"},{"provider":"osv","source_id":"GO-2022-0368","url":"https://osv.dev/vulnerability/GO-2022-0368","license":"CC-BY-4.0","modified_at":"2026-02-04T04:17:25.74952Z","relation":"self"}]}
