Insecure Randomness

Affecting github.com/miekg/dns package, versions <1.1.25

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

github.com/miekg/dns is a complete and usable DNS library.

Affected versions of this package are vulnerable to Insecure Randomness. It improperly generates random numbers because math/rand is used. The TXID becomes predictable, leading to response forgeries.

Remediation

Upgrade github.com/miekg/dns to version 1.1.25 or higher.

References

CVSS Score

7.3
high severity
  • Attack Vector
    Network
  • Attack Complexity
    Low
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    Low
  • Integrity
    Low
  • Availability
    Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Credit
Unknown
CVE
CVE-2019-19794
CWE
CWE-330
Snyk ID
SNYK-GOLANG-GITHUBCOMMIEKGDNS-537825
Disclosed
13 Dec, 2019
Published
15 Dec, 2019