CVE-2025-31498c-ares
High 8.3 No auth needed
Follow: this CVE · c-ares · c-ares We alert you by email or Slack (account required).
- Priority
- 65
- CVSS 4.0
- 8.3
- EPSS
- —
- Auth required
- No
- Published
- Apr 8, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-416
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
c-ares is an asynchronous resolver library. From 1.32.3 through 1.34.4, there is a use-after-free in read_answers() when process_answer() may re-enqueue a query either due to a DNS Cookie Failure or when the upstream server does not properly support EDNS, or possibly on TCP queries if the remote closed the connection immediately after a response. If there was an issue trying to put that new transaction on the wire, it would close the connection handle, but read_answers() was still expecting the connection handle to be available to possibly dequeue other responses. In theory a remote attacker might be able to trigger this by flooding the target with ICMP UNREACHABLE packets if they also control the upstream nameserver and can return a result with one of those conditions, this has been untested. Otherwise only a local attacker might be able to change system behavior to make send()/write() return a failure condition. This vulnerability is fixed in 1.34.5.
What to do
- Apply the vendor's security update for c-ares.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- c-ares · c-ares
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for c-ares · SUSE · SUSE-SU-2026:4021-1 · Sep 7, 2026 High
- Security update for c-ares · SUSE · SUSE-SU-2026:23414-1 · Aug 31, 2026 High
- Security update for c-ares · SUSE · SUSE-SU-2026:23364-1 · Aug 28, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.