CVE-2019-19794
miekg/dns insecurely generates random numbers
Reported by mitre · Published December 13, 2019
github.com/miekg/dns is fixed in 1.1.25-0.20191211073109-8ebf2e419df7 and 1.1.25 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/miekg/dns | Go Modules | 1.1.25-0.20191211073109-8ebf2e419df7, 1.1.25 |
| miekg-dns | miekg-dns_project | 1.1.25 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| github.com | miekg/dns | 0 |
| n/a | n/a | * |
Timeline
- Dec 13, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- May 18, 2021 CVE Updated
- Mar 10, 2026 Security Advisory
- Sep 12, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-19794
vulnetix vdb fixes CVE-2019-19794
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-19794/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2019-19794 advisory
- https://github.com/miekg/dns/commit/8ebf2e419df7857ac8919baa05248789a8ffbf33 patch
- https://github.com/advisories/GHSA-44r7-7p62-q3fr advisory