GHSA-gv9j-4w24-q7vx: Github.com/coredns/coredns Improper Random Number Generation Vulnerability
MODERATEGHSA-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
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.
Upgrade github.com/coredns/coredns to 1.6.6
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
GHSA-gv9j-4w24-q7vx Affected Github.com/coredns/coredns Versions
1 component(s)| 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?
Which Github.com/coredns/coredns versions are affected?
What version fixes GHSA-gv9j-4w24-q7vx?
Is github.com/coredns/coredns affected?
What CWE is associated with GHSA-gv9j-4w24-q7vx?
How can I check Go dependencies for GHSA-gv9j-4w24-q7vx?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}