# GHSA-gv9j-4w24-q7vx: Improper random number generation in github.com/coredns/coredns

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-03-01T21:03:11.000Z
- Modified: 2026-09-10T03:49:28.357Z
- Also known as: GO-2022-0368
- Related: CGA-wm3p-xqrc-3fg6
- Weaknesses: CWE-330

## Description

### 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
- [CVE-2019-19794](https://nvd.nist.gov/vuln/detail/CVE-2019-19794)

### For more information
Please consult [our security guide](https://github.com/coredns/coredns/blob/master/.github/SECURITY.md) for more information regarding our security process.

(As written by GitHub Advisory Database.)

## Affected

- github.com/coredns/coredns (Go): before 1.6.6

## References

- <https://github.com/coredns/coredns/security/advisories/GHSA-gv9j-4w24-q7vx> (advisory, web)

## Sources

- GitHub Advisory Database: [GHSA-gv9j-4w24-q7vx](https://github.com/advisories/GHSA-gv9j-4w24-q7vx), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2022-0368](https://pkg.go.dev/vuln/GO-2022-0368), CC-BY-4.0, modified 2026-02-04

---

Page: https://cve.day/GHSA-gv9j-4w24-q7vx · Whole record: https://cve.day/GHSA-gv9j-4w24-q7vx.json · Rebuilt by cve.day 2026-11-25T22:56:23.062Z
