# CVE-2019-19794: GO-2020-0008 - Insecure generation of random numbers in github.com/miekg/dns

Source: https://junglewise.ai/threats/cve-2019-19794-miekg-dns-insecurely-generates-random-numbers  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-04-14  
License: CC BY 4.0 with a link back

CVE-2019-19794 · Severity: low · CVSS 3.1 · Published 2021-04-14

Insecure generation of random numbers in github.com/miekg/dns

Technologies: [github.com/miekg/dns (Go)](https://junglewise.ai/threats/technologies/github-com-miekg-dns). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2019-19794 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2019-19794 being exploited in the wild.

**How severe is CVE-2019-19794?** Low severity, with a CVSS score of 3.1, published 14 April 2021.

**Which products and versions are affected?** github.com/miekg/dns (Go) SEMVER:introduced=0,fixed=1.1.25, SEMVER:introduced=0,fixed=1.1.25-0.20191211073109-8ebf2e419df7.

**Is there a fix for CVE-2019-19794?** Yes. github.com/miekg/dns (Go): upgrade to 1.1.25, 1.1.25-0.20191211073109-8ebf2e419df7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2019-19794?** Check whether you run github.com/miekg/dns (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/miekg/dns (Go): upgrade to 1.1.25, 1.1.25-0.20191211073109-8ebf2e419df7 or later

  ```sh
  go get github.com/miekg/dns@v1.1.25-0.20191211073109-8ebf2e419df7
  ```


## Affected products

- github.com/miekg/dns (Go) SEMVER:introduced=0,fixed=1.1.25, SEMVER:introduced=0,fixed=1.1.25-0.20191211073109-8ebf2e419df7

## Identifiers

- CVE-2019-19794
- GHSA-44r7-7p62-q3fr
- GO-2020-0008

## Related threats

- [GO-2020-0006 - Denial of service via open idle connection in github.com/miekg/dns](https://junglewise.ai/threats/cve-2017-15133-denial-of-service-in-miekg-dns)
- [GO-2020-0028 - Denial of service via malformed zone file in github.com/miekg/dns](https://junglewise.ai/threats/cve-2018-17419-miekg-dns-parsing-error-leads-to-nil-pointer-dereference-and-dos)
