Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/miekg/dns
  4. ›
  5. CVE-2019-19794

CVE-2019-19794: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

May 18, 2021

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.

References

  • github.com/advisories/GHSA-44r7-7p62-q3fr
  • github.com/coredns/coredns/issues/3519
  • github.com/coredns/coredns/issues/3547
  • github.com/miekg/dns/commit/8ebf2e419df7857ac8919baa05248789a8ffbf33
  • github.com/miekg/dns/compare/v1.1.24...v1.1.25
  • github.com/miekg/dns/issues/1043
  • github.com/miekg/dns/pull/1044
  • nvd.nist.gov/vuln/detail/CVE-2019-19794

Code Behaviors & Features

Detect and mitigate CVE-2019-19794 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.1.25

Fixed versions

  • 1.1.25

Solution

Upgrade to version 1.1.25 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

Source file

go/github.com/miekg/dns/CVE-2019-19794.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:34 +0000.