GO-2022-0368
MEDIUMImproper random number generation in github.com/coredns/coredns
Impact
CoreDNS 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.
Patches
The problem has been fixed in 1.6.6+.
References
For more information
Please consult our security guide for more information regarding our security process.
- Published
- 1 Mar 2022
- Last modified
- 10 Sep 2026
- Weakness
- CWE-330
- Also known as
- GHSA-gv9j-4w24-q7vx
- Sources
- OSV GHSA-gv9j-4w24-q7vxJSONOSVJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/coredns/coredns | < 1.6.6 | 1.6.6 |
References
- https://github.com/coredns/coredns/security/advisories/GHSA-gv9j-4w24-q7vx · WEB, ADVISORY
- github.com/coredns/coredns · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Mar 2022)