GHSA-gv9j-4w24-q7vx: Github.com/coredns/coredns Improper Random Number Generation Vulnerability

MODERATE
CWE-330
Published
Advisory Summary

GHSA-gv9j-4w24-q7vx is a MODERATE improper random number generation vulnerability (CWE-330: Use of Insufficiently Random Values) affecting Github.com/coredns/coredns libraries in the Go ecosystem. The issue involves improper random number generation in github.com/coredns/coredns. Remediation is available by upgrading affected packages to version 1.6.6.

GHSA-gv9j-4w24-q7vx at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-gv9j-4w24-q7vx
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-330: Use of Insufficiently Random Values
Affected Product Github.com/coredns/coredns
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-gv9j-4w24-q7vx

To remediate this vulnerability, upgrade all affected Github.com/coredns/coredns dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/coredns/coredns fixed: 1.6.6
Upgrade github.com/coredns/coredns to 1.6.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/coredns/coredns

How to Check if You Are Affected

To determine whether your application is affected by GHSA-gv9j-4w24-q7vx, inspect your project dependencies for Github.com/coredns/coredns:

inspect dependencies for github.com/coredns/coredns

Analyze the terminal output to locate any version of Github.com/coredns/coredns in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.6), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-330: Use of Insufficiently Random Values, where the product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers. In Github.com/coredns/coredns, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact CoreDNS before 1.6.6 (using go DNS package < 1.1.25) improperly generates random numbers because math/rand is used. The TXID becomes predictable, leading to response forgeries. ### Patches The problem has been fixed in 1.6.6+. ### References - [CVE-2019-19794](https://nvd.nist.gov/vuln/detail/CVE-2019-19794) ### For more information Please consult [our security guide](https://github.com/coredns/coredns/blob/master/.github/SECURITY.md) for more information regarding our security process.

GHSA-gv9j-4w24-q7vx Affected Github.com/coredns/coredns Versions

1 component(s)
Fixed Versions:
1.6.6
Product / Package Ecosystem Affected Versions Fixed Version
github.com/coredns/coredns
Go
< 1.6.6
1.6.6

References

Frequently Asked Questions

What is GHSA-gv9j-4w24-q7vx?
GHSA-gv9j-4w24-q7vx is a security vulnerability in Github.com/coredns/coredns involving Improper random number generation in github.com/coredns/coredns under CWE-330: Use of Insufficiently Random Values.
Which Github.com/coredns/coredns versions are affected?
Affected versions include releases prior to 1.6.6 across affected packages: github.com/coredns/coredns.
What version fixes GHSA-gv9j-4w24-q7vx?
Upgrading to 1.6.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/coredns/coredns affected?
Yes, github.com/coredns/coredns is affected in releases prior to 1.6.6. Upgrade your dependency to 1.6.6 or later.
What CWE is associated with GHSA-gv9j-4w24-q7vx?
GHSA-gv9j-4w24-q7vx is classified under CWE-330: Use of Insufficiently Random Values (The product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.).
How can I check Go dependencies for GHSA-gv9j-4w24-q7vx?
Run the dependency tree command: 'inspect dependencies for github.com/coredns/coredns'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gv9j-4w24-q7vx",
  "modified" : "2022-03-01T21:03:11Z",
  "published" : "2022-03-01T21:03:11Z",
  "aliases" : [ ],
  "summary" : "Improper random number generation in github.com/coredns/coredns",
  "details" : "### Impact\n\nCoreDNS before 1.6.6 (using go DNS package < 1.1.25) improperly generates random numbers because math/rand is used. The TXID becomes predictable, leading to response forgeries.\n\n### Patches\nThe problem has been fixed in 1.6.6+.\n\n### References\n- [CVE-2019-19794](https://nvd.nist.gov/vuln/detail/CVE-2019-19794)\n\n### For more information\nPlease consult [our security guide](https://github.com/coredns/coredns/blob/master/.github/SECURITY.md) for more information regarding our security process.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/coredns/coredns"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/coredns/coredns/security/advisories/GHSA-gv9j-4w24-q7vx"
  }, {
    "type" : "PACKAGE",
    "url" : "github.com/coredns/coredns"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-330" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-03-01T21:03:11Z",
    "nvd_published_at" : null
  }
}