{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2019-19794","id":"CVE-2019-19794","title":"miekg/dns insecurely generates random numbers","description":"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.","descriptionLong":"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":"2019-12-13T21:46:59.000Z","updated":"2026-10-20T10:52:32.796616154Z","reserved":"2019-12-13T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/miekg/dns","purl":"pkg:golang/github.com/miekg/dns","ranges":["<1.1.25","<1.1.25-0.20191211073109-8ebf2e419df7"],"fixed":["1.1.25","1.1.25-0.20191211073109-8ebf2e419df7"],"advisory":"GHSA-44r7-7p62-q3fr"}],"cwes":["CWE-338","CWE-330"],"aliases":["GHSA-44r7-7p62-q3fr","GO-2020-0008"],"references":[{"url":"https://github.com/miekg/dns/issues/1043","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/coredns/coredns/issues/3519","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/miekg/dns/pull/1044","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/miekg/dns/compare/v1.1.24...v1.1.25","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://github.com/coredns/coredns/issues/3547","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19794","tags":["advisory"]},{"url":"https://github.com/miekg/dns/issues/1037","tags":["web"]},{"url":"https://github.com/miekg/dns/commit/8ebf2e419df7857ac8919baa05248789a8ffbf33","tags":["web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0008","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02066,"epssPercentile":0.81769,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2019-19794","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19794","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2019-19794","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-44r7-7p62-q3fr","ok":true,"note":"GHSA-44r7-7p62-q3fr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-19794","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}