GHSA-gv9j-4w24-q7vx
JSON

medium

Improper random number generation in github.com/coredns/coredns

Severity
medium rating by GitHub
Published
Last changed
Also known as
GO-2022-0368

Description

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.

Affected

Product or packageVersionsReported by
github.com/coredns/coredns (Go)before 1.6.6GitHub Advisory Database, Go Vulnerability Database

Classification

What each source says

GitHub Advisory Database
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.

Go Vulnerability Database

Improper random number generation in github.com/coredns/coredns

References

Related

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-gv9j-4w24-q7vx changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0368 changed 2026-02-04CC-BY-4.0