BreachSpiderVerified, not vibes

CVE-2025-31498 in Ares products

No CVSS score published

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 connectio...

Affects 0 products from 5 vendors. Facts below cite their sources.

CVSS v48.3
EPSS0.9%
EPSS percentile56th
FixUnknown

Affected products and versions

VendorProductAffected versions
Ares — —
C-Ares — —
Icmp — —
Resolver — —
Target — —

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-31498
BreachSpider IDBS-2025-GLOBAL-253021-I
Published2025-04-08
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-416: Use After Free

Software references memory after it has been freed, leading to corruption, crashes, or code execution.

Analysis AI-written, not human-reviewed

A low severity vulnerability affects Ares systems (CVE-2025-31498). No public exploit code is currently available. Review vendor advisories and apply patches during the next maintenance window.

Vulnerability details: 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 CVSS vector: Not available.

Questions

What is CVE-2025-31498?

A low severity vulnerability affects Ares systems (CVE-2025-31498). No public exploit code is currently available. Review vendor advisories and apply patches during the next maintenance window.

Is CVE-2025-31498 actively exploited?

No confirmed active exploitation of CVE-2025-31498 as of 2026-09-25.

How do I remediate CVE-2025-31498?

Priority: MONITOR.

What systems are affected by CVE-2025-31498?

CVE-2025-31498 affects Ares; C-Ares; Icmp; Resolver; Target.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Ares","product":"EDS-518A","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.