{"id":"CVE-2019-19794","aliases":["DEBIAN-CVE-2019-19794","EUVD-2021-0929","GHSA-44r7-7p62-q3fr","GO-2020-0008","UBUNTU-CVE-2019-19794"],"status":"published","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.","severity":{"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","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02066,"percentile":0.81523,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-330","CWE-338"],"published":"2019-12-13T21:46:59Z","modified":"2026-10-20T10:52:32Z","fixes":[{"ecosystem":"Go","package":"github.com/miekg/dns","fixed_in":["1.1.25","1.1.25-0.20191211073109-8ebf2e419df7"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"golang-github-miekg-dns","fixed_in":["1.1.26-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"golang-github-miekg-dns","fixed_in":["1.1.26-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"golang-github-miekg-dns","fixed_in":["1.1.26-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/miekg/dns","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.25"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"golang-github-miekg-dns","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.26-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"golang-github-miekg-dns","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.26-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"golang-github-miekg-dns","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.26-1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/miekg/dns","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.25"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/miekg/dns","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.25-0.20191211073109-8ebf2e419df7"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"golang-github-miekg-dns","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20170501.0.f282f80-2","0.0~git20170501.0.f282f80-3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"golang-github-miekg-dns","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.4+ds-1ubuntu1"]}],"products":[{"vendor":"miekg-dns_project","product":"miekg-dns"}],"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","report"]},{"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","report"]},{"url":"https://github.com/coredns/coredns/issues/3547","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19794","tags":["advisory"]},{"url":"https://github.com/miekg/dns/commit/8ebf2e419df7857ac8919baa05248789a8ffbf33","tags":["web","fix"]},{"url":"https://github.com/miekg/dns/issues/1037","tags":["web"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0008","tags":["web"]},{"url":"https://github.com/advisories/GHSA-44r7-7p62-q3fr"},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-19794","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-19794","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-19794","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2019-19794","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.","status":"published","published":"2019-12-13T21:46:59Z","modified":"2024-08-05T02:25:12.686Z","updated_at":"2026-11-02T14:20:20.74896Z"}],"euvd":[{"id":"EUVD-2021-0929","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.","status":"published","published":"2019-12-13T21:46:59Z","modified":"2024-08-05T02:25:12Z","updated_at":"2026-11-03T02:40:23.78072Z"}],"ghsa":[{"id":"GHSA-44r7-7p62-q3fr","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.","status":"published","published":"2021-05-18T21:09:13Z","modified":"2023-08-29T22:33:25Z","cvss":[{"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","level":"medium"}],"cwes":["CWE-330","CWE-338"],"updated_at":"2026-11-02T14:37:02.095916Z"}],"nvd":[{"id":"CVE-2019-19794","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.","status":"published","published":"2019-12-13T22:15:11.357Z","modified":"2026-06-17T02:27:15.643Z","cvss":[{"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","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-338"],"updated_at":"2026-11-02T14:05:40.258829Z"}],"osv":[{"id":"CVE-2019-19794","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.","status":"published","published":"2019-12-13T22:15:11.357Z","modified":"2026-10-20T10:52:32.796616154Z","cvss":[{"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","level":"medium"}],"updated_at":"2026-11-02T15:44:12.010761Z"},{"id":"DEBIAN-CVE-2019-19794","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.","status":"published","published":"2019-12-13T22:15:11.357Z","modified":"2026-09-21T07:03:17.452353559Z","cvss":[{"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","level":"medium"}],"updated_at":"2026-11-02T15:45:32.221385Z"},{"id":"GHSA-44r7-7p62-q3fr","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.","status":"published","published":"2021-05-18T21:09:13Z","modified":"2023-11-08T04:01:29.591612Z","cvss":[{"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","level":"medium"}],"cwes":["CWE-330","CWE-338"],"updated_at":"2026-11-02T15:46:36.434231Z"},{"id":"UBUNTU-CVE-2019-19794","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.","status":"published","published":"2019-12-13T22:15:00Z","modified":"2025-10-24T04:48:06Z","cvss":[{"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","level":"medium"}],"updated_at":"2026-11-02T15:54:21.213407Z"},{"id":"GO-2020-0008","title":"Insecure generation of random numbers in github.com/miekg/dns","description":"DNS message transaction IDs are generated using math/rand which makes them relatively predictable. This reduces the complexity of response spoofing attacks against DNS clients.","status":"published","published":"2021-04-14T20:04:52Z","modified":"2024-05-20T16:03:47Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
