Advisory

GHSA-gv9j-4w24-q7vx

Also known as: GO-2022-0368

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-03-01 21:03 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

github.com/coredns/coredns

Go · All systems

Affected

  • introduced 0, fixed 1.6.6 (semver)

Fixed versions

1.6.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences