Security mailing lists by PureSourceCode

CVE-2019-19794

MEDIUM 5.9CVSS 3.1

miekg/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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD miekg-dns_project miekg-dns
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.