Vulnerability · Published May 25, 2023 · Assigned by GitHub_M

CVE-2023-31124AutoTools does not set CARES_RANDOM_FILE during cross compilation

Low 3.7

In plain English

A low-severity weak randomness 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.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.7Low
Exploit odds (30 days)0.9%top 39.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

c-ares is an asynchronous resolver library. When cross-compiling c-ares and using the autotools build system, CARES_RANDOM_FILE will not be set, as seen when cross compiling aarch64 android. This will downgrade to using rand() as a fallback which could allow an attacker to take advantage of the lack of entropy by not using a CSPRNG. This issue was patched in version 1.19.1.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9c-ares1.19.1-1.el9ALSA-2023:6635
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:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:8nodejs-docs1:16.19.1-2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4034
AlmaLinux:9nodejs-docs1:16.19.1-2.el9_2ALSA-2023:3586
AlmaLinux:9nodejs-docs1:18.14.2-3.module_el9.2.0+30+e3312493ALSA-2023:3577
AlmaLinux:8nodejs-full-i18n1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:8nodejs-full-i18n1:16.19.1-2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4034
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:9.5.0-1.18.14.2.3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:8npm1:8.19.3-1.16.19.1.2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4034
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-aresno fix listedDEBIAN-CVE-2023-31124
Debian:13c-ares1.19.1-2DEBIAN-CVE-2023-31124
Debian:14c-ares1.19.1-2DEBIAN-CVE-2023-31124
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:25-1.module+el8.7.0+1108+49363b0dRLSA-2023:4034
Rocky Linux:8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2023:4035
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32048+5323bb50RLSA-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+32144+1d29a396RLSA-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+32045+2e5d342dRLSA-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+32322+a8b1fd01RLSA-2023:3577

Affected products (as reported)

VendorProductVersions
c-ares c-ares < 1.19.1

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

References