CVE-2024-0874: Coredns: cd bit response is cached and served later
A flaw was found in coredns. This issue could lead to invalid cache entries returning due to incorrectly implemented caching.
Other sources
Coredns mishandling of CI bit: CD bit response is cached and served later
What happened: If CD bit is set in query, it disables validation at remote server
What you expected to happen: CD queries may pass, but the same answer must not be served to queries without CD bit set
https://github.com/coredns/coredns/issues/6186
— Red Hat
Coredns: cd bit response is cached and served later
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/github.com/coredns/corednsto a version that resolves this vulnerability.Fixed in 1.11.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.11.1-2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.11.1-8
Event History
Frequently Asked Questions
What is the severity of CVE-2024-0874?
CVE-2024-0874 has a severity rating that indicates a potential impact on system integrity and data validity due to incorrectly implemented caching.
How do I fix CVE-2024-0874?
To fix CVE-2024-0874, upgrade CoreDNS to version 1.11.2 or later to ensure proper handling of the CD bit in responses.
What systems are affected by CVE-2024-0874?
CVE-2024-0874 affects versions of CoreDNS up to and including 1.11.1.
How does CVE-2024-0874 affect cache entries?
CVE-2024-0874 can lead to invalid cache entries being returned due to mishandled CI and CD bit responses.
What is the cause of the issue in CVE-2024-0874?
The issue in CVE-2024-0874 is caused by CoreDNS improperly caching responses when the CD bit is set in the query.