CVEfocus › CVE database › CVE-2023-31130

CVE-2023-31130Buffer Underwrite in ares_inet_net_pton()

CVSS 4.1 MediumEPSS 0.4% (higher than 26% of CVEs)Published 2023-05-25Updated 2025-02-13Assigner: GitHub_M

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.

CWE-124

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

53Fixed
3Fix pending
4Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04c-aresFixed1.18.1-1ubuntu0.22.04.2UBUNTU-CVE-2023-31130
Ubuntu 20.04c-aresFixed1.15.0-1ubuntu0.3UBUNTU-CVE-2023-31130
Ubuntu 18.04c-aresFix pending1.14.0-1ubuntu0.2+esm1 (Ubuntu Pro)UBUNTU-CVE-2023-31130
Ubuntu 16.04c-aresFix pending1.10.0-3ubuntu0.2+esm2 (Ubuntu Pro)UBUNTU-CVE-2023-31130
Ubuntu 14.04c-aresFix pending
Debian 14c-aresFixed1.18.1-3DEBIAN-CVE-2023-31130
Debian 13c-aresFixed1.18.1-3DEBIAN-CVE-2023-31130
Debian 12c-aresFixed1.18.1-3DEBIAN-CVE-2023-31130
Red Hat Enterprise Linux 9c-aresFixed0:1.19.1-1.el9RHSA-2023:6635
Red Hat Enterprise Linux 9c-ares-develFixed0:1.19.1-1.el9RHSA-2023:6635
Red Hat Enterprise Linux 9nodejsFixed1:18.14.2-3.module+el9.2.0.z+18964+42696395RHSA-2023:3586
Red Hat Enterprise Linux 9nodejs-develFixed1:18.14.2-3.module+el9.2.0.z+18964+42696395RHSA-2023:3577
Red Hat Enterprise Linux 9nodejs-docsFixed1:16.19.1-2.el9_2RHSA-2023:3577
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:18.14.2-3.module+el9.2.0.z+18964+42696395RHSA-2023:3586
Red Hat Enterprise Linux 9nodejs-libsFixed1:16.19.1-2.el9_2RHSA-2023:3586
Red Hat Enterprise Linux 9nodejs-nodemonFixed0:2.0.20-2.module+el9.2.0.z+18497+a402347cRHSA-2023:3577
Red Hat Enterprise Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2023:3577
Red Hat Enterprise Linux 9nodejs-packaging-bundlerFixed0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2023:3577
Red Hat Enterprise Linux 9npmFixed1:9.5.0-1.18.14.2.3.module+el9.2.0.z+18964+42696395RHSA-2023:3586
Red Hat Enterprise Linux 8c-aresFixed0:1.13.0-9.el8_9.1RHSA-2023:7207
Red Hat Enterprise Linux 8c-ares-develFixed0:1.13.0-9.el8_9.1RHSA-2023:7207
Red Hat Enterprise Linux 8nodejsFixed1:18.14.2-3.module+el8.8.0+19021+4b8b11ccRHSA-2023:4034
Red Hat Enterprise Linux 8nodejs-develFixed1:16.19.1-2.module+el8.8.0+19038+6f60344fRHSA-2023:4035
Red Hat Enterprise Linux 8nodejs-docsFixed1:18.14.2-3.module+el8.8.0+19021+4b8b11ccRHSA-2023:4034
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:18.14.2-3.module+el8.8.0+19021+4b8b11ccRHSA-2023:4034
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:2.0.20-2.module+el8.8.0+18432+27f188acRHSA-2023:4034
Red Hat Enterprise Linux 8nodejs-packagingFixed0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:4034
Red Hat Enterprise Linux 8nodejs-packaging-bundlerFixed0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:4035
Red Hat Enterprise Linux 8npmFixed1:9.5.0-1.18.14.2.3.module+el8.8.0+19021+4b8b11ccRHSA-2023:4034
Red Hat Enterprise Linux 7c-aresWill not fix
Out of support scope
Red Hat Enterprise Linux 7c-ares-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6c-aresWill not fix
Out of support scope
Red Hat Enterprise Linux 6c-ares-develWill not fix
Out of support scope
AlmaLinux 9c-aresFixed1.19.1-1.el9ALSA-2023:6635
AlmaLinux 9c-ares-develFixed1.19.1-1.el9ALSA-2023:6635
AlmaLinux 9nodejsFixed1:18.14.2-3.module_el9.2.0+30+e3312493ALSA-2023:3586
AlmaLinux 9nodejs-develFixed1:18.14.2-3.module_el9.2.0+30+e3312493ALSA-2023:3577
AlmaLinux 9nodejs-docsFixed1:16.19.1-2.el9_2ALSA-2023:3577
AlmaLinux 9nodejs-full-i18nFixed1:18.14.2-3.module_el9.2.0+30+e3312493ALSA-2023:3586
AlmaLinux 9nodejs-libsFixed1:16.19.1-2.el9_2ALSA-2023:3586
AlmaLinux 9nodejs-nodemonFixed2.0.20-2.module_el9.2.0+29+de583a0bALSA-2023:3577
AlmaLinux 9nodejs-packagingFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:3577
AlmaLinux 9nodejs-packaging-bundlerFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:3577
AlmaLinux 9npmFixed1:9.5.0-1.18.14.2.3.module_el9.2.0+30+e3312493ALSA-2023:3586
AlmaLinux 8c-aresFixed1.13.0-9.el8_9.1ALSA-2023:7207
AlmaLinux 8c-ares-develFixed1.13.0-9.el8_9.1ALSA-2023:7207
AlmaLinux 8nodejsFixed1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4034
AlmaLinux 8nodejs-develFixed1:16.19.1-2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4035
AlmaLinux 8nodejs-docsFixed1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4034
AlmaLinux 8nodejs-full-i18nFixed1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4034
AlmaLinux 8nodejs-nodemonFixed2.0.20-3.module_el8.8.0+3586+d4fc0b72ALSA-2023:4035
AlmaLinux 8nodejs-packagingFixed2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:4034
AlmaLinux 8nodejs-packaging-bundlerFixed2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:4035
AlmaLinux 8npmFixed1:8.19.3-1.16.19.1.2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4035
Rocky Linux 9nodejs-nodemonFixed0:2.0.20-2.module+el9.6.0+32048+5323bb50RLSA-2023:3577
Rocky Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.6.0+32144+1d29a396RLSA-2023:3577
Rocky Linux 8c-aresFixed0:1.13.0-9.el8_9.1RLSA-2023:7207
Rocky Linux 8nodejsFixed1:16.19.1-2.module+el8.8.0+1338+00a07a77RLSA-2023:4035
Rocky Linux 8nodejs-nodemonFixed0:2.0.20-2.module+el8.7.0+1177+510ae886RLSA-2023:4034
Rocky Linux 8nodejs-packagingFixed0:25-1.module+el8.7.0+1108+49363b0dRLSA-2023:4035

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.