Authentication Bypass in github.com/coredns/coredns
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
CoreDNS has a critical vulnerability allowing malicious attackers to bypass TSIG authentication. Exploitation could lead to unauthorized manipulation of domain information or unapproved data updates. This issue can be resolved by updating the system to version 1.14.3. In the past, similar authentication issues have led to significant data breaches. Prompt action is recommended.
Attackers can exploit CoreDNS's gRPC and QUIC transports by checking only for the presence of a TSIG key name without verifying the HMAC, thus bypassing authentication. Additionally, DoH and DoH3 transports do not perform any TSIG verification, accepting any TSIG record as authenticated. The affected versions are 1.14.2 and below, with the issue fixed in version 1.14.3. Detecting attacks involves monitoring for unusual request patterns in gRPC or QUIC and logging anomalous access activities.
CoreDNS has a TSIG authentication bypass vulnerability in gRPC, QUIC, DoH, and DoH3 transports.
gRPC and QUIC do not verify TSIG HMAC; DoH and DoH3 do not verify TSIG at all.
Critical severity (CVSS v3: 9.8), remote attack possible, no authentication required.
Update to CoreDNS version 1.14.3 which introduces full TSIG verification.
No specific workaround identified; immediate update recommended.
Monitor for unusual request patterns and anomalous access on gRPC and QUIC services.
Related past incidentsSimilar incidents extracted from past CVEs
A Windows DNS Server Remote Code Execution Vulnerability related to improper handling of DNS responses.
Citrix ADC and Gateway TSIG authentication bypass, allowing for possible remote code execution.
A vulnerability in Infoblox NIOS that allowed TSIG Key Misvalidation.
If this happens at your companyExpected impact per business scenario
Attackers may exploit the vulnerability to perform unauthorized zone transfers, leading to potential exposure of proprietary information.
Clients may lose trust in the service due to potential unauthorized DNS modifications affecting service reliability.
Critical domain settings might be tampered with, resulting in service disruption or data leaks.
Immediately update CoreDNS to version 1.14.3 to mitigate the vulnerability.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'github.com/coredns/coredns' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/coredns/corednsを grep し、稼働しているサービス・バージョンを把握する。 -
2
Match against affected rangeverify
Confirm if version satisfies `< 1.14.3`Step 1 で見つかったバージョンが影響範囲
< 1.14.3に該当するか照合。本番で稼働中ならインシデント扱い。 -
5
Apply temporary workaroundmitigate
- Disable gRPC, QUIC, DoH, and DoH3 listeners where TSIG authentication is required.パッチが適用されるまでの応急処置として、- Disable gRPC, QUIC, DoH, and DoH3 listeners where TSIG authentication is required. を実施。回避策の副作用 (機能低下) を確認した上で。
-
6
Apply patchpatch
Upgrade github.com/coredns/coredns to 1.14.3ステージング環境で 1.14.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| gogithub.com/coredns/coredns |
< 1.14.3→ 1.14.3 |
1.14.3 |
Original description The description as published by the source.
CoreDNS is a DNS server written in Go. In versions prior to 1.14.3, the gRPC, QUIC, DoH, and DoH3 transport implementations incorrectly handle TSIG authentication. For gRPC and QUIC, the server checks whether the TSIG key name exists in the configuration but never calls dns.TsigVerify() to validate the HMAC. If the key name matches a configured key, the tsigStatus field remains nil and the tsig plugin treats the request as successfully authenticated regardless of the MAC value. For DoH and DoH3, the issue is more severe: the DoHWriter.TsigStatus() method unconditionally returns nil, and the server never inspects the TSIG record at all. Any request containing a TSIG record is treated as authenticated over DoH and DoH3, even if the key name is invalid and the MAC is arbitrary.
An unauthenticated network attacker can exploit this to bypass TSIG-protected functionality such as AXFR/IXFR zone transfers, dynamic DNS updates, or other TSIG-gated plugin behavior. The DoH and DoH3 variants have a lower exploitation bar because the attacker does not need to know a valid TSIG key name.
This issue has been fixed in version 1.14.3. As a workaround, disable gRPC, QUIC, DoH, and DoH3 listeners where TSIG authentication is required, or restrict network-level access to affected transport ports to trusted sources only.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory access.redhat.com
- advisory access.redhat.com
- advisory github.com
- package github.com
- report bugzilla.redhat.com
- web github.com
- web github.com
- web security.access.redhat.com