Heap-based buffer overflow in the ares_create_query function in c-ares 1.x before 1.12.0 allows remote attackers to cause a denial of servic
Heap-based buffer overflow in the ares_create_query function in c-ares 1.x before 1.12.0 allows remote attackers to cause a denial of service (out-of-bounds write) or possibly execute arbitrary code via a hostname with an escaped trailing dot.
- Published
- Oct 3, 2016
- Updated
- Jun 16, 2026
- EPSS
- 8.6% · 95th percentile
- CWE
- CWE-787
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
42
Plan
Add it to your regular patch cycle.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 3 / 30 · 8.6%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| c-ares | c-ares | cpe:2.3:a:c-ares:c-ares |
| c-ares project | c-ares | cpe:2.3:a:c-ares_project:c-ares |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| nodejs | node.js | cpe:2.3:a:nodejs:node.js |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- nodejs node.js0.10.0 and later · before 0.10.48
- nodejs node.js0.12.0 and later · before 0.12.17
- nodejs node.js4.0.0 and later · before 4.6.1
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.2 | c-ares | before 1.12.0-r0 | 1.12.0-r0 |
| Alpine:v3.6 | nodejs | before 6.8.0-r0 | 6.8.0-r0 |
| Debian:12 | c-ares | before 1.12.0-1 | 1.12.0-1 |
| Debian:7 | c-ares | before 1.9.1-3+deb7u1 | 1.9.1-3+deb7u1 |
| Debian:8 | c-ares | before 1.10.0-2+deb8u1 | 1.10.0-2+deb8u1 |
| openSUSE:Tumbleweed | c-ares | before 1.12.0-1.1 | 1.12.0-1.1 |
| Red Hat:rhel_software_collections:2::el6 | rh-nodejs4-http-parser | before 0:2.7.0-2.el6 | 0:2.7.0-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-nodejs4-http-parser-debuginfo | before 0:2.7.0-2.el6 | 0:2.7.0-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-nodejs4-http-parser-devel | before 0:2.7.0-2.el6 | 0:2.7.0-2.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-nodejs4-nodejs | before 0:4.6.2-4.el6 | 0:4.6.2-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-nodejs4-nodejs-debuginfo | before 0:4.6.2-4.el6 | 0:4.6.2-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-nodejs4-nodejs-devel | before 0:4.6.2-4.el6 | 0:4.6.2-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-nodejs4-nodejs-docs | before 0:4.6.2-4.el6 | 0:4.6.2-4.el6 |
| Red Hat:rhel_software_collections:2::el7 | rh-nodejs4-http-parser | before 0:2.7.0-2.el7 | 0:2.7.0-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-nodejs4-http-parser-debuginfo | before 0:2.7.0-2.el7 | 0:2.7.0-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-nodejs4-http-parser-devel | before 0:2.7.0-2.el7 | 0:2.7.0-2.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-nodejs4-nodejs | before 0:4.6.2-4.el7 | 0:4.6.2-4.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-nodejs4-nodejs-debuginfo | before 0:4.6.2-4.el7 | 0:4.6.2-4.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-nodejs4-nodejs-devel | before 0:4.6.2-4.el7 | 0:4.6.2-4.el7 |
| Red Hat:rhel_software_collections:2::el7 | rh-nodejs4-nodejs-docs | before 0:4.6.2-4.el7 | 0:4.6.2-4.el7 |
| SUSE:Linux Enterprise Desktop 12 SP1 | libcares2 | before 1.9.1-5.1 | 1.9.1-5.1 |
| SUSE:Linux Enterprise Module for Web and Scripting 12 | nodejs4 | before 4.6.1-11.1 | 4.6.1-11.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | libcares2 | before 1.7.4-7.9.1 | 1.7.4-7.9.1 |
Same product
c-ares: all recordsOther highest-scoring records for the same primary product.
- CVE-2025-31498c-ares has a use-after-free in read_answers()33Monitor
- CVE-2017-1000381The c-ares function `ares_parse_naptr_reply()`, which is used for parsing NAPTR responses, could be triggered to read memory outside of the 31Monitor
- CVE-2026-69184c-ares: CPU-exhaustion denial of service via unbounded DNS name compression pointer chains30Monitor
- CVE-2026-33630c-ares : Use-after-free / double-free in c-ares query-completion handling, remotely triggerable via ares_getaddrinfo() over TCP30Monitor
- CVE-2025-62408c-ares has a Use After Free vulnerability when connection is cleaned up after error23Monitor
- CVE-2020-22217Buffer overflow vulnerability in c-ares before 1_16_1 thru 1_17_0 via function ares_parse_soa_reply in ares_parse_soa_reply.c.23Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:c-ares | 1.12.0-r0 · Alpine:v3.2 | Package registry (OSV) |
| alpine:nodejs | 6.8.0-r0 · Alpine:v3.6 | Package registry (OSV) |
| debian:c-ares | 1.12.0-1 · Debian:12 | Package registry (OSV) |
| opensuse:c-ares | 1.12.0-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:rh-nodejs4-http-parser | 0:2.7.0-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-nodejs4-http-parser-debuginfo | 0:2.7.0-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-nodejs4-http-parser-devel | 0:2.7.0-2.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-nodejs4-nodejs | 0:4.6.2-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-nodejs4-nodejs-debuginfo | 0:4.6.2-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-nodejs4-nodejs-devel | 0:4.6.2-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-nodejs4-nodejs-docs | 0:4.6.2-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| suse:libcares2 | 1.9.1-5.1 · SUSE:Linux Enterprise Desktop 12 SP1 | Package registry (OSV) |
| suse:nodejs4 | 4.6.1-11.1 · SUSE:Linux Enterprise Module for Web and Scripting 12 | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Proof-of-concept repository on GitHub ×3
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:0 | 2025-05-23 |
| Proof-of-concept repository on GitHub | stars:0 | 2025-05-23 |
| Proof-of-concept repository on GitHub | stars:0 | 2025-05-24 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- First PoC+3154 d
- TodaySep 30, 2026+3649 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-787 · Out-of-bounds WriteCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- rhn.redhat.com/errata/RHSA-2017-0002.html
- www.debian.org/security/2016/dsa-3682
- www.securityfocus.com/bid/93243
- www.ubuntu.com/usn/USN-3143-1
- c-ares.haxx.se/CVE-2016-5180.patch
- c-ares.haxx.se/adv_20160929.html
- googlechromereleases.blogspot.in/2016/09/stable-channel-updates-for-chrome-os.html
- security.gentoo.org/glsa/201701-28
- source.android.com/security/bulletin/2017-01-01.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.