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.
Conclusion & alert: CVE-2025-31498 is rated Moderate Risk (58.1/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.65%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-17 | 0.62% | 0.65% | +0.03% |
| 2 | 2026-04-13 | 0.67% | 0.62% | -0.05% |
| 3 | 2026-04-10 | — | 0.67% | — |
Full EPSS history (10 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.3 | 4.0 | HIGH |
|
— | — | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
high | CVE-2025-31498: 1 source package rows (c-ares); 7 state rows across 4 repos (3.20-main, 3.21-main, 3.22-main, edge-main); fixed 3, open 4. | https://security.alpinelinux.org/vuln/CVE-2025-31498 |
debian
|
unimportant | CVE-2025-31498 unimportant priority: Debian including 1 source packages (c-ares), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2025-31498 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2025-31498 |
suse
|
medium | CVE-2025-31498 severity moderate: SUSE including 32 source package names (c-ares, c-ares-devel, …), 99 product×package rows across 31 product lines (SLES-LTSS-TERADATA 15 SP2, SUSE Liberty Linux 8, … (31 product lines)): Known Not Affected 72, Fixed 27. | https://www.suse.com/security/cve/CVE-2025-31498/ |
ubuntu
|
medium | CVE-2025-31498 medium priority: Ubuntu including 1 source packages (c-ares), 8 status rows across 8 suites (bionic, focal, jammy, noble, oracular, plucky, upstream, xenial): not-affected 5, released 3. | https://ubuntu.com/security/CVE-2025-31498 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| No affected products in dataset. | |||