CVEfocus › CVE database › CVE-2023-31124

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

CVSS 3.7 LowEPSS 1.0% (higher than 62% of CVEs)Published 2023-05-25Updated 2025-02-13Assigner: GitHub_M

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.

CWE-330

What to do

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

Red Hat, Ubuntu have 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

45Fixed
4Fix pending
5Will not fix
1Not affected

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-aresNot affected
vulnerable_code_not_present
Ubuntu 16.04c-aresFix pending
Ubuntu 14.04c-aresFix pending
Debian 14c-aresFixed1.19.1-2DEBIAN-CVE-2023-31124
Debian 13c-aresFixed1.19.1-2DEBIAN-CVE-2023-31124
Debian 12c-aresWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2023-31124
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:16.19.1-2.el9_2RHSA-2023:3577
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:18.14.2-3.module+el9.2.0.z+18964+42696395RHSA-2023:3586
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:16.19.1-2.el9_2RHSA-2023:3577
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:8.19.3-1.16.19.1.2.el9_2RHSA-2023:3577
Red Hat Enterprise Linux 8c-aresFix pending
Fix deferred
Red Hat Enterprise Linux 8c-ares-develFix pending
Fix deferred
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:16.19.1-2.el9_2ALSA-2023:3577
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 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:16.19.1-2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4035
AlmaLinux 8nodejs-nodemonFixed2.0.20-3.module_el8.8.0+3586+d4fc0b72ALSA-2023:4035
AlmaLinux 8nodejs-packagingFixed25-1.module_el8.5.0+2605+45d748afALSA-2023:4035
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+32322+a8b1fd01RLSA-2023:3577
Rocky Linux 8nodejsFixed1:18.14.2-3.module+el8.8.0+1337+7ea46b57RLSA-2023:4034
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.