CVE-2023-31130
Memory Safety in C-Ares Project C-Ares ≤ 1.19.1
Raw vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:HCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2023-31130 is a medium-severity Buffer Underflow (CWE-124) vulnerability in C-Ares Project C-Ares. Its CVSS base score is 4.1 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 33th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2023-35454
Vulnerability Data
c-ares is an asynchronous resolver library. ares_inet_net_pton() is vulnerable to a buffer underflow for certain ipv6 addresses, in particular "0::00:00:00/2" was found to cause an issue. C-ares only uses this function internally for configuration purposes which would require an administrator…
more
to configure such an address via ares_set_sortlist(). However, users may externally use ares_inet_net_pton() for other purposes and thus be vulnerable to more severe issues. This issue has been fixed in 1.19.1.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
V1.4.1
Likely Mitigating Controls
Our mappings. Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Out-of-bounds writes that corrupt control flow or inject shellcode are rendered non-executable by the same memory protections.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly prevent introduction of buffer underwrite flaws via coding standards, reviews, and testing.
Vulnerability identification processes can discover buffer underwrite issues but do not prevent their creation.
Patching removes instances of the weakness after discovery but does not address root-cause prevention in code.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing in development catches buffer-underflow defects before release.
Training on secure coding practices (the technical-team portion of A.6.3) reduces some buffer-underwrite instances by raising developer awareness of bounds-checking and pointer arithmetic, but developers remain fallible and the clause mandates a practice rather than a mechanism, so only a minority of instances are prevented — consistent with the A.6.3 -> CWE-598 anchor at `partial`.
Secure coding standards explicitly forbid unsafe pointer arithmetic and mandate bounds checks.
A.8.30 carries its effect through the secure-development practices (8.25-8.29) its contract requires of the supplier, so a faithfully implemented clause reduces ordinary implementation-phase memory-safety defects like buffer underwrite the way those practices do; the owner has ruled this clause's ceiling on `prevents` at `partial` for regular software CWEs, and CWE-124 is one.
A.8.8's reach is disclosure-based (vulnerability scanning, published advisories, patch management), and CWE-124 does surface as CVEs (multiple observed examples listed), so the disclosed share is reachable; but the bulk of buffer underwrite instances live in custom code or unpublished third-party components, capping the rung at `partial` per the disclosure-reach doctrine.