Vulnerability · Published May 25, 2023 · Assigned by GitHub_M

CVE-2023-31130Buffer Underwrite in ares_inet_net_pton()

Medium 4.1

In plain English

A medium-severity security flaw in c-ares from c-ares. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.1Medium
Exploit odds (30 days)0.4%top 67.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8c-ares1.13.0-9.el8_9.1ALSA-2023:7207
AlmaLinux:9c-ares1.19.1-1.el9ALSA-2023:6635
AlmaLinux:8c-ares-devel1.13.0-9.el8_9.1ALSA-2023:7207
AlmaLinux:9c-ares-devel1.19.1-1.el9ALSA-2023:6635
AlmaLinux:8nodejs1:16.19.1-2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4034
AlmaLinux:8nodejs1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:9nodejs1:16.19.1-2.el9_2ALSA-2023:3586
AlmaLinux:9nodejs1:18.14.2-3.module_el9.2.0+30+e3312493ALSA-2023:3577
AlmaLinux:8nodejs-devel1:16.19.1-2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4034
AlmaLinux:8nodejs-devel1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:9nodejs-devel1:18.14.2-3.module_el9.2.0+30+e3312493ALSA-2023:3577
AlmaLinux:8nodejs-docs1:16.19.1-2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4034
AlmaLinux:8nodejs-docs1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:9nodejs-docs1:18.14.2-3.module_el9.2.0+30+e3312493ALSA-2023:3577
AlmaLinux:9nodejs-docs1:16.19.1-2.el9_2ALSA-2023:3586
AlmaLinux:8nodejs-full-i18n1:16.19.1-2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4034
AlmaLinux:8nodejs-full-i18n1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:9nodejs-full-i18n1:16.19.1-2.el9_2ALSA-2023:3586
AlmaLinux:9nodejs-full-i18n1:18.14.2-3.module_el9.2.0+30+e3312493ALSA-2023:3577
AlmaLinux:9nodejs-libs1:16.19.1-2.el9_2ALSA-2023:3586
AlmaLinux:8nodejs-nodemon2.0.20-3.module_el8.8.0+3586+d4fc0b72ALSA-2023:4034
AlmaLinux:8nodejs-nodemon2.0.20-2.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:9nodejs-nodemon2.0.20-2.module_el9.2.0+29+de583a0bALSA-2023:3577
AlmaLinux:8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2023:4034
AlmaLinux:8nodejs-packaging2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:4035
AlmaLinux:9nodejs-packaging2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:3577
AlmaLinux:8nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:4035
AlmaLinux:9nodejs-packaging-bundler2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:3577
AlmaLinux:8npm1:8.19.3-1.16.19.1.2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4034
AlmaLinux:8npm1:9.5.0-1.18.14.2.3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:9npm1:8.19.3-1.16.19.1.2.el9_2ALSA-2023:3586
AlmaLinux:9npm1:9.5.0-1.18.14.2.3.module_el9.2.0+30+e3312493ALSA-2023:3577
Debian:12c-ares1.18.1-3DEBIAN-CVE-2023-31130
Debian:13c-ares1.18.1-3DEBIAN-CVE-2023-31130
Debian:14c-ares1.18.1-3DEBIAN-CVE-2023-31130
Rocky Linux:8c-ares0:1.13.0-9.el8_9.1RLSA-2023:7207
Rocky Linux:8nodejs1:16.19.1-2.module+el8.8.0+1338+00a07a77RLSA-2023:4034
Rocky Linux:8nodejs1:18.14.2-3.module+el8.8.0+1337+7ea46b57RLSA-2023:4035
Rocky Linux:8nodejs-nodemon0:2.0.20-2.module+el8.7.0+1177+510ae886RLSA-2023:4035
Rocky Linux:8nodejs-nodemon0:2.0.20-3.module+el8.7.0+1178+d52dba78RLSA-2023:4034
Rocky Linux:9nodejs-nodemon0:2.0.20-2.module+el9.6.0+32048+5323bb50RLSA-2023:3577
Rocky Linux:8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2023:4035
Rocky Linux:8nodejs-packaging0:25-1.module+el8.7.0+1108+49363b0dRLSA-2023:4034
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32144+1d29a396RLSA-2023:3577
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32322+a8b1fd01RLSA-2023:3577
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32143+ae966e5bRLSA-2023:3577
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32048+5323bb50RLSA-2023:3577
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.5.0+31770+0da7192dRLSA-2023:3577
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32185+bd121a25RLSA-2023:3577
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32045+2e5d342dRLSA-2023:3577
Ubuntu:22.04:LTSc-ares1.18.1-1ubuntu0.22.04.2USN-6164-1
Ubuntu:22.04:LTSc-ares1.18.1-1ubuntu0.22.04.2UBUNTU-CVE-2023-31130

Affected products (as reported)

VendorProductVersions
c-ares c-ares < 1.19.1

Weakness: CWE-124 · Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H

References