GHSA-gv9j-4w24-q7vx

Suggest an improvement
Source
https://github.com/advisories/GHSA-gv9j-4w24-q7vx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-gv9j-4w24-q7vx/GHSA-gv9j-4w24-q7vx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gv9j-4w24-q7vx
Aliases
Downstream
CGA (4)
Published
2022-03-01T21:03:11Z
Modified
2026-09-10T03:49:28Z
Summary
Improper random number generation in github.com/coredns/coredns
Details

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

For more information

Please consult our security guide for more information regarding our security process.

Database specific
{
    "cwe_ids":  [
        "CWE-330"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-03-01T21:03:11Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

Go / github.com/coredns/coredns

Package

Name
github.com/coredns/coredns
View open source insights on deps.dev
Purl
pkg:golang/github.com/coredns/coredns

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.6.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-gv9j-4w24-q7vx/GHSA-gv9j-4w24-q7vx.json"