Skip to main content

Incorrect Conversion between Numeric Types

CVE-2025-58063

Severity High
Score 7.1/10

Summary

CoreDNS is a DNS server that chains plugins. In versions 1.2.0 through 1.12.3, 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 (Denial-of-Service) 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.

  • LOW
  • NETWORK
  • LOW
  • UNCHANGED
  • NONE
  • LOW
  • NONE
  • HIGH

CWE-681 - Incorrect Conversion between Numeric Types

When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.

References

Advisory Timeline

  • Published