CVE-2026-33630 Details
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.
A use-after-free and double-free vulnerability has been identified in the c-ares library, specifically in versions 1.32.3 prior to 1.34.7. This vulnerability arises in the asynchronous query-completion process, where a query's callback can be triggered while the query is still active in the channel's internal lookup structures. This issue occurs in several scenarios, including timeout and response handling, as well as during query dispatch. If a query or its associated host_query (in the case of ares_getaddrinfo()) is freed by the callback, it can be accessed and freed again, leading to memory corruption.
Users are advised to upgrade to c-ares version 1.34.7, where this vulnerability has been fixed. In the meantime, avoid calling ares_cancel() from within query callbacks, although this does not address the vulnerability's remote exploitation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 3, 2026CISA-ADP
Assessed Sep 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/c-ares/c-ares/commit/1fa3b86a0b8d18fe7b60f3228a01d770feb026bc | [email protected] | Source CodeVendor |
| https://github.com/c-ares/c-ares/commit/d823199b688052dcdc1646f2ab4cb8c16b1c644a | [email protected] | Source CodeVendor |
| https://github.com/c-ares/c-ares/pull/1237 | [email protected] | Source CodeVendor |
| https://github.com/c-ares/c-ares/releases/tag/v1.34.7 | [email protected] | Release NotesVendor |
| https://github.com/c-ares/c-ares/security/advisories/GHSA-6wfj-rwm7-3542 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-415 | Double Free | [email protected] |
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| c-ares | >= 1.32.3, <= 1.34.6 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 5, 2026 | CVE Modified | CISA-ADP |
| Sep 3, 2026 | CVE Modified | [email protected] |
| Sep 3, 2026 | New CVE Received | [email protected] |
Volerion