GHSA-gv9j-4w24-q7vx Improper random number generation in github.com/coredns/coredns
Predictable transaction IDs in CoreDNS allow attackers to forge DNS responses, potentially redirecting traffic or poisoning caches.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-gv9j-4w24-q7vx?
GHSA-gv9j-4w24-q7vx is a vulnerability in github.com/coredns/coredns, published on 1 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by GHSA-gv9j-4w24-q7vx?
3 open source packages ship an affected version, including github.com/coredns/coredns.
| Package | Affected | Fixed in |
|---|---|---|
github.com/coredns/coredns Go | All versions | 1.6.6 |
github.com/coredns/coredns Go | All versions | 1.6.6 |
github.com/coredns/coredns Go | All versions | 1.6.6 |
How do I fix GHSA-gv9j-4w24-q7vx?
Upgrade github.com/coredns/coredns to 1.6.6 or later.
Is GHSA-gv9j-4w24-q7vx being exploited?
There is no known exploitation of GHSA-gv9j-4w24-q7vx in the wild and no public exploit code.
Sources
Also known as GO-2022-0368.