Skip to main content
No exploitation reportedFix available

CVE-2023-31130

No exploitation reported by the sources we read.

  • Published2023-05-25
  • WeaknessCWE-124 · CWE-787

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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

Timeline

dates in UTC
  1. 2023-05-2522:15CVE publishedNVD

Versions per branch

NVD
Debian debian linux
BranchAffectedFixed in
10.0= 10.0no fix published
11.0= 11.0no fix published
Fedoraproject fedora
BranchAffectedFixed in
37.x= 37no fix published
38.x= 38no fix published
C-ares project c-ares
BranchAffectedFixed in
1.19< 1.19.11.19.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • c-ares
    Affected
    • = < 1.19.1no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-06-10

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • c-aresWolfiall versions · fixed in 1.19.1-r0
  • c-aresUbuntu:Pro:18.04:LTSall versions · fixed in 1.14.0-1ubuntu0.2+esm1
  • c-aresUbuntu:Pro:16.04:LTSall versions · fixed in 1.10.0-3ubuntu0.2+esm2
  • c-aresUbuntu:22.04:LTSall versions · fixed in 1.18.1-1ubuntu0.22.04.2
  • c-aresUbuntu:20.04:LTSall versions · fixed in 1.15.0-1ubuntu0.3
  • c-aresTuxCare:AlmaLinux:9.2all versions · fixed in 1.17.1-5.el9_2.1.tuxcare.els3and 1 other package
  • c-aresSUSE:Manager Server 4.2all versions · fixed in 1.19.1-150000.3.23.1
  • c-aresSUSE:Manager Proxy 4.2all versions · fixed in 1.19.1-150000.3.23.1

126 more package ranges on OSV.dev

Vendor advisories

  • CVE-2023-31130 Red Hat Product Security308 products fixed · 5 known affected

    c-ares: Buffer Underwrite in ares_inet_net_pton()

    c-ares-devel as a component of Red Hat Enterprise Linux 6 · c-ares.src as a component of Red Hat Enterprise Linux 6 · c-ares as a component of Red Hat Enterprise Linux 7 · +2 more

  • RHSA-2023:7543 Red Hat Product Security21 products fixed

    Red Hat Security Advisory: c-ares security update

  • RHSA-2023:7207 Red Hat Product Security21 products fixed

    Red Hat Security Advisory: c-ares security update

  • RHSA-2023:6635 Red Hat Product Security31 products fixed

    Red Hat Security Advisory: c-ares security, bug fix, and enhancement update

  • RHSA-2023:4035 Red Hat Product Security31 products fixed

    Red Hat Security Advisory: nodejs:18 security update

  • RHSA-2023:4034 Red Hat Product Security30 products fixed

    Red Hat Security Advisory: nodejs:16 security update

5 more advisories

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2023:7543 · 21 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2025-01-16
  • CNACVSS 3.14.1known since 2026-10-23
  • NVDCVSS 3.16.4read 2026-10-23
  • CNAweakness (CWE)CWE-124known since 2026-10-23
  • NVDweakness (CWE)CWE-787read 2026-10-23
  • FIRST EPSSEPSS score0.4 %2026-11-18
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Published
2023-05-25
Last Modified
2026-06-17
NVD status
Modified

Frequently asked questions

What is CVE-2023-31130?

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

Is CVE-2023-31130 actively exploited?

Active exploitation of CVE-2023-31130 has not been confirmed. Its EPSS score was 0.4% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2023-31130?

CVE-2023-31130 has a CVSS v3 base score of 6.4 (MEDIUM severity), with vector string CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H.

Running c-ares? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record