CVE-2019-19794Miekg-dns Project Miekg-dns
Medium 5.9 No auth needed
Follow: this CVE · Miekg-dns Project · Miekg-dns Project Miekg-dns We alert you by email or Slack (account required).
- Priority
- 51
- CVSS 3.1
- 5.9
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 82
- Auth required
- No
- Published
- Dec 13, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-338
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Miekg-dns.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/miekg/dns |
< 1.1.25 |
1.1.25 |
go get github.com/miekg/dns@v1.1.25 |
| Go | github.com/miekg/dns |
< 1.1.25-0.20191211073109-8ebf2e419df7 |
1.1.25-0.20191211073109-8ebf2e419df7 |
go get github.com/miekg/dns@v1.1.25-0.20191211073109-8ebf2e419df7 |
Per OSV / GitHub Advisories (GHSA-44r7-7p62-q3fr, GO-2020-0008). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| miekg-dns_project | miekg-dns | < 1.1.25 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking Third Party Advisory
- github.com Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Exploit Issue Tracking Third Party Advisory
- github.com Patch Third Party Advisory