Live threats

All CVEs / Miekg-dns Project

CVE-2019-19794Miekg-dns Project Miekg-dns

Medium 5.9 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Miekg-dns.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
miekg-dns_projectmiekg-dns< 1.1.25

Official sources

References

Links published by the sources. Open them with care.