CVE-2023-31130: Buffer Underwrite in ares_inet_net_pton()
Noroxi assessment
Priority: Monitor (action score 25/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.38% (FIRST EPSS).
- Someone with local access to the system can trigger it. Administrator privileges are required. No user action is required. Special conditions such as timing or configuration are required.
- Fixed version: c-ares c-ares 1.19.1; azl3 grpc 1.42.0-7 on Azure Linux 3.0 1.62.0-2; azl3 grpc 1.62.0-2 on Azure Linux 3.0 1.62.0-2.
- Severity is disputed: the assigning authority (CNA) scores it 4.1, NVD 6.4.
Low priority for now. Upgrade to c-ares c-ares 1.19.1; azl3 grpc 1.42.0-7 on Azure Linux 3.0 1.62.0-2; azl3 grpc 1.62.0-2 on Azure Linux 3.0 1.62.0-2 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- BDU:2023-07647
- ALSA-2023:3577
- ALSA-2023:3586
- ALSA-2023:4034
- ALSA-2023:4035
- ALSA-2023:6635
- ALSA-2023:7207
- DLA-3471-1
- DSA-5419-1
- openSUSE-SU-2024:12951-1
- RHSA-2023:3577
- RHSA-2023:3586
- RHSA-2023:4033
- RHSA-2023:4034
- RHSA-2023:4035
- RHSA-2023:4036
- RHSA-2023:4039
- RHSA-2023:6635
- RHSA-2023:7207
- RHSA-2023:7392
- Published
- May 25, 2023
- Updated
- Jun 17, 2026
- EPSS
- 0.3% · 33th percentile
- CWE
- CWE-124
Report tools
Action score
25
Low priority for now.
- CVSS
- 25 / 40 · 6.4 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.3%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 6.4
- CNA · GitHub_M
- 4.1
- 2.3 point gap
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| c-ares project | c-ares | cpe:2.3:a:c-ares_project:c-ares |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
c-ares c-ares
- < 1.19.1affected
Affected versions · NVD (5)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- c-ares project c-aresbefore 1.19.1
- debian debian linux10.0
- debian debian linux11.0
- fedoraproject fedora37
- fedoraproject fedora38
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | c-ares | before 1.13.0-9.el8_9.1 | 1.13.0-9.el8_9.1 |
| AlmaLinux:8 | c-ares-devel | before 1.13.0-9.el8_9.1 | 1.13.0-9.el8_9.1 |
| AlmaLinux:8 | nodejs | before 1:18.14.2-3.module_el8.8.0+3587+ee652244 | 1:18.14.2-3.module_el8.8.0+3587+ee652244 |
| AlmaLinux:8 | nodejs | before 1:16.19.1-2.module_el8.8.0+3586+d4fc0b72 | 1:16.19.1-2.module_el8.8.0+3586+d4fc0b72 |
| AlmaLinux:8 | nodejs-devel | before 1:18.14.2-3.module_el8.8.0+3587+ee652244 | 1:18.14.2-3.module_el8.8.0+3587+ee652244 |
| AlmaLinux:8 | nodejs-devel | before 1:16.19.1-2.module_el8.8.0+3586+d4fc0b72 | 1:16.19.1-2.module_el8.8.0+3586+d4fc0b72 |
| AlmaLinux:8 | nodejs-docs | before 1:16.19.1-2.module_el8.8.0+3586+d4fc0b72 | 1:16.19.1-2.module_el8.8.0+3586+d4fc0b72 |
| AlmaLinux:8 | nodejs-docs | before 1:18.14.2-3.module_el8.8.0+3587+ee652244 | 1:18.14.2-3.module_el8.8.0+3587+ee652244 |
| AlmaLinux:8 | nodejs-full-i18n | before 1:18.14.2-3.module_el8.8.0+3587+ee652244 | 1:18.14.2-3.module_el8.8.0+3587+ee652244 |
| AlmaLinux:8 | nodejs-full-i18n | before 1:16.19.1-2.module_el8.8.0+3586+d4fc0b72 | 1:16.19.1-2.module_el8.8.0+3586+d4fc0b72 |
| AlmaLinux:8 | nodejs-nodemon | before 2.0.20-3.module_el8.8.0+3586+d4fc0b72 | 2.0.20-3.module_el8.8.0+3586+d4fc0b72 |
| AlmaLinux:8 | nodejs-nodemon | before 2.0.20-2.module_el8.8.0+3587+ee652244 | 2.0.20-2.module_el8.8.0+3587+ee652244 |
| AlmaLinux:8 | nodejs-packaging | before 2021.06-4.module_el8.7.0+3343+ea2b7901 | 2021.06-4.module_el8.7.0+3343+ea2b7901 |
| AlmaLinux:8 | nodejs-packaging | before 25-1.module_el8.5.0+2605+45d748af | 25-1.module_el8.5.0+2605+45d748af |
| AlmaLinux:8 | nodejs-packaging-bundler | before 2021.06-4.module_el8.7.0+3343+ea2b7901 | 2021.06-4.module_el8.7.0+3343+ea2b7901 |
| AlmaLinux:8 | npm | before 1:8.19.3-1.16.19.1.2.module_el8.8.0+3586+d4fc0b72 | 1:8.19.3-1.16.19.1.2.module_el8.8.0+3586+d4fc0b72 |
| AlmaLinux:8 | npm | before 1:9.5.0-1.18.14.2.3.module_el8.8.0+3587+ee652244 | 1:9.5.0-1.18.14.2.3.module_el8.8.0+3587+ee652244 |
| AlmaLinux:9 | c-ares | before 1.19.1-1.el9 | 1.19.1-1.el9 |
| AlmaLinux:9 | c-ares-devel | before 1.19.1-1.el9 | 1.19.1-1.el9 |
| AlmaLinux:9 | nodejs | before 1:16.19.1-2.el9_2 | 1:16.19.1-2.el9_2 |
| AlmaLinux:9 | nodejs | before 1:18.14.2-3.module_el9.2.0+30+e3312493 | 1:18.14.2-3.module_el9.2.0+30+e3312493 |
| AlmaLinux:9 | nodejs-devel | before 1:18.14.2-3.module_el9.2.0+30+e3312493 | 1:18.14.2-3.module_el9.2.0+30+e3312493 |
| AlmaLinux:9 | nodejs-docs | before 1:16.19.1-2.el9_2 | 1:16.19.1-2.el9_2 |
| AlmaLinux:9 | nodejs-docs | before 1:18.14.2-3.module_el9.2.0+30+e3312493 | 1:18.14.2-3.module_el9.2.0+30+e3312493 |
+96
Same product
c-ares project: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-4904A flaw was found in the c-ares package.34Monitor
- CVE-2023-320670-byte UDP payload DoS in c-ares30Monitor
- CVE-2023-31147Insufficient randomness in generation of DNS query IDs in c-ares26Monitor
Published before and after this one in the same product
- ← EarlierCVE-2021-3672Nov 23, 2021 · A flaw was found in c-ares library, where a missing input validation check of host names returned by DNS (Domain Name Servers) can lead to…23Monitor
- ← EarlierCVE-2023-31124May 25, 2023 · AutoTools does not set CARES_RANDOM_FILE during cross compilation14Monitor
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 |
|---|---|---|
| c-ares c-ares | 1.19.1 · description | Vendor (CNA) |
| azl3 grpc 1.42.0-7 on Azure Linux 3.0 | 1.62.0-2 · CBL-Mariner Releases | Microsoft (MSRC) |
| azl3 grpc 1.62.0-2 on Azure Linux 3.0 | 1.62.0-2 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 c-ares 1.19.1-1 on CBL Mariner 2.0 | 1.19.1-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 fluent-bit 2.1.10-1 on CBL Mariner 2.0 | 2.1.10-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 grpc 1.42.0-11 on CBL Mariner 2.0 | 1.42.0-11 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 nodejs 16.20.1-2 on CBL Mariner 2.0 | 16.20.1-2 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 nodejs18 18.17.1-2 on CBL Mariner 2.0 | 18.17.1-2 · CBL-Mariner Releases | Microsoft (MSRC) |
| cbl2 python-gevent 21.1.2-3 on CBL Mariner 2.0 | 21.1.2-3 · CBL-Mariner Releases | Microsoft (MSRC) |
| cm1 c-ares 1.19.1-1 on CBL Mariner 1.0 | 1.19.1-1 · CBL-Mariner Releases | Microsoft (MSRC) |
| almalinux:c-ares | 1.19.1-1.el9 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:c-ares-devel | 1.19.1-1.el9 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:nodejs | 1:18.14.2-3.module_el9.2.0+30+e3312493 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:nodejs-devel | 1:18.14.2-3.module_el9.2.0+30+e3312493 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:nodejs-docs | 1:18.14.2-3.module_el9.2.0+30+e3312493 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:nodejs-full-i18n | 1:18.14.2-3.module_el9.2.0+30+e3312493 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:nodejs-libs | 1:16.19.1-2.el9_2 · AlmaLinux:9 | Package registry (OSV) |
| almalinux:nodejs-nodemon | 2.0.20-2.module_el9.2.0+29+de583a0b · AlmaLinux:9 | Package registry (OSV) |
| almalinux:nodejs-packaging | 2021.06-4.module_el9.1.0+13+d9a595ea · AlmaLinux:9 | Package registry (OSV) |
| almalinux:nodejs-packaging-bundler | 2021.06-4.module_el9.1.0+13+d9a595ea · AlmaLinux:9 | Package registry (OSV) |
| almalinux:npm | 1:9.5.0-1.18.14.2.3.module_el9.2.0+30+e3312493 · AlmaLinux:9 | Package registry (OSV) |
| debian:c-ares | 1.18.1-3 · Debian:12 | Package registry (OSV) |
| opensuse:c-ares | 1.19.1-150000.3.23.1 · openSUSE:Leap Micro 5.3 | Package registry (OSV) |
| opensuse:nodejs16 | 16.20.1-150400.3.21.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:nodejs18 | 18.16.1-150400.9.9.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| red hat:nodejs | 1:18.14.2-3.module+el9.2.0.z+18964+42696395 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:nodejs-debuginfo | 1:18.14.2-3.module+el9.2.0.z+18964+42696395 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:nodejs-debugsource | 1:18.14.2-3.module+el9.2.0.z+18964+42696395 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:nodejs-devel | 1:18.14.2-3.module+el9.2.0.z+18964+42696395 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:nodejs-docs | 1:18.14.2-3.module+el9.2.0.z+18964+42696395 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
+17
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
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.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- Administrator privileges are required.
- No user action is required.
- Special conditions such as timing or configuration are required.
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
- Local
- Attack complexity
- High
- Privileges required
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-124 · Buffer Underwrite ('Buffer Underflow')CVSS vector
CVSS:3.1/AV:L/AC:H/PR:H/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.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (7 more)Show less
- github.com/c-ares/c-ares/security/advisories/GHSA-x6mf-cxr9-8q6v
- lists.debian.org/debian-lts-announce/2023/06/msg00034.html
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Z5XFNXTNPTCBBVXFDNZQVLLIE6VRBY/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBFWILTA33LOSV23P44FGTQQIDRJHIY7/
- security.gentoo.org/glsa/202310-09
- security.netapp.com/advisory/ntap-20240605-0005/
- www.debian.org/security/2023/dsa-5419
Vendor advisories and official records. Exploit/PoC links are deliberately left out.