CVE-2019-19794
MEDIUM 5.9CVSS 3.1miekg/dns insecurely generates random numbers
The miekg Go DNS package before 1.1.25, as used in CoreDNS before 1.6.6 and other products, improperly generates random numbers because math/rand is used. The TXID becomes predictable, leading to response forgeries.
- Published
- 13 Dec 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-330CWE-338
- Also known as
- GHSA-44r7-7p62-q3frGO-2020-0008
- Sources
- NVDJSONOSV GHSA-44r7-7p62-q3frJSONOSV GO-2020-0008JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | miekg-dns_project | miekg-dnscpe:2.3:a:miekg-dns_project:miekg-dns:*:*:*:*:*:*:*:* |
< 1.1.25 | 1.1.25 |
| OSV | Go | github.com/miekg/dns | < 1.1.25 | 1.1.25 |
| OSV | Go | github.com/miekg/dns | < 1.1.25-0.20191211073109-8ebf2e419df7 | 1.1.25-0.20191211073109-8ebf2e419df7 |
References
- https://github.com/coredns/coredns/issues/3519 · Issue Tracking, Third Party Advisory, WEB
- https://github.com/coredns/coredns/issues/3547 · Third Party Advisory, WEB
- https://github.com/miekg/dns/compare/v1.1.24...v1.1.25 · Release Notes, Third Party Advisory, WEB
- https://github.com/miekg/dns/issues/1043 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/miekg/dns/pull/1044 · Patch, Third Party Advisory, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2019-19794 · ADVISORY
- https://github.com/miekg/dns/issues/1037 · WEB
- https://github.com/miekg/dns/commit/8ebf2e419df7857ac8919baa05248789a8ffbf33 · WEB, FIX
- https://pkg.go.dev/vuln/GO-2020-0008 · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 13 Dec 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 18 May 2021)