Security mailing lists by PureSourceCode

GO-2022-0368

MEDIUM

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

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.

Published
1 Mar 2022
Last modified
10 Sep 2026
Weakness
CWE-330
Also known as
GHSA-gv9j-4w24-q7vx
Sources
OSV GHSA-gv9j-4w24-q7vxJSONOSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/coredns/coredns < 1.6.6 1.6.6

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Mar 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.