cve.bz

CVE-2023-31147 Use of Insufficiently Random Values

6.5 mediumEPSS 0.9%

Medium (6.5). EPSS 0.9% estimated probability of exploitation activity in the next 30 days.

On this page
c-ares is an asynchronous resolver library. When /dev/urandom or RtlGenRandom() are unavailable, c-ares uses rand() to generate random numbers used for DNS query ids. This is not a CSPRNG, and it is also not seeded by srand() so will generate predictable output. Input from the random number generator is fed into a non-compilant RC4 implementation and may not be as strong as the original RC4 implementation. No attempt is made to look for modern OS-provided CSPRNGs like arc4random() that is widely available. This issue has been fixed in version 1.19.1.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-01-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-330 Use of Insufficiently Random Values
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-31147 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-31147?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-31147?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-31147 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
c-ares_project:c-aresbefore 1.19.1
fedoraproject:fedora37
fedoraproject:fedora38

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12c-aresno fix listedDEBIAN-CVE-2023-31147
Debian13, 14c-ares1.19.1-2DEBIAN-CVE-2023-31147
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:16.19.1-2.module+el8.8.0+19038+6f60344fRHSA-2023:4034
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.14.2-3.module+el8.8.0+19021+4b8b11ccRHSA-2023:4035
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-2.module+el8.8.0+18432+27f188acRHSA-2023:4035
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-3.module+el8.8.0+19038+6f60344fRHSA-2023:4034
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2023:4034
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:4035
Red Hatenterprise_linux:8::appstreamnpm1:8.19.3-1.16.19.1.2.module+el8.8.0+19038+6f60344fRHSA-2023:4034
Red Hatenterprise_linux:8::appstreamnpm1:9.5.0-1.18.14.2.3.module+el8.8.0+19021+4b8b11ccRHSA-2023:4035
Red Hatenterprise_linux:9::appstreamc-ares-devel, c-ares-debuginfo, c-ares-debugsource0:1.19.1-1.el9RHSA-2023:6635
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.14.2-3.module+el9.2.0.z+18964+42696395RHSA-2023:3577
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 4 more1:16.19.1-2.el9_2RHSA-2023:3586
Red Hatenterprise_linux:9::appstreamnodejs-nodemon0:2.0.20-2.module+el9.2.0.z+18497+a402347cRHSA-2023:3577
12 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS and 18 morec-ares1.19.1-150000.3.23.1SUSE-SU-2023:2313-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 3 morenodejs1616.20.1-150300.7.24.2SUSE-SU-2023:2861-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1616.20.1-8.30.1SUSE-SU-2023:2655-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1818.16.1-8.9.1SUSE-SU-2023:2662-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1616.20.1-150400.3.21.1SUSE-SU-2023:2663-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4, Linux Enterprise Module for Web and Scripting 15 SP5nodejs1818.16.1-150400.9.9.1SUSE-SU-2023:2669-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP4-ESPOS, Linux Enterprise Server 12 SP4-LTSS and 7 morelibcares21.9.1-9.12.1SUSE-SU-2023:2477-1
openSUSELeap 15.4nodejs1616.20.1-150400.3.21.1SUSE-SU-2023:2663-1
openSUSELeap 15.4, Leap 15.5nodejs1818.16.1-150400.9.9.1SUSE-SU-2023:2669-1
openSUSELeap 15.4, Leap 15.5, Leap Micro 5.3c-ares1.19.1-150000.3.23.1SUSE-SU-2023:2313-1
openSUSETumbleweedc-ares1.19.1-1.1openSUSE-SU-2024:12951-1
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:16.19.1-2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4034
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux8nodejs-nodemon2.0.20-2.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux8nodejs-nodemon2.0.20-3.module_el8.8.0+3586+d4fc0b72ALSA-2023:4034
AlmaLinux8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2023:4034
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:4035
AlmaLinux8npm1:8.19.3-1.16.19.1.2.module_el8.8.0+3586+d4fc0b72ALSA-2023:4034
AlmaLinux8npm1:9.5.0-1.18.14.2.3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux9c-ares, c-ares-devel1.19.1-1.el9ALSA-2023:6635
AlmaLinux9nodejs, nodejs-docs, nodejs-devel and 1 more1:18.14.2-3.module_el9.2.0+30+e3312493ALSA-2023:3577
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 1 more1:16.19.1-2.el9_2ALSA-2023:3586
AlmaLinux9nodejs-nodemon2.0.20-2.module_el9.2.0+29+de583a0bALSA-2023:3577
3 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:16.19.1-2.module+el8.8.0+1338+00a07a77RLSA-2023:4034
Rocky Linux8nodejs1:18.14.2-3.module+el8.8.0+1337+7ea46b57RLSA-2023:4035
Rocky Linux8nodejs-nodemon0:2.0.20-2.module+el8.7.0+1177+510ae886RLSA-2023:4035
Rocky Linux8nodejs-nodemon0:2.0.20-3.module+el8.7.0+1178+d52dba78RLSA-2023:4034
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2023:4035
Rocky Linux8nodejs-packaging0:25-1.module+el8.7.0+1108+49363b0dRLSA-2023:4034
Rocky Linux9nodejs-nodemon0:2.0.20-2.module+el9.6.0+32048+5323bb50RLSA-2023:3577
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.5.0+31770+0da7192dRLSA-2023:3577
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.6.0+32045+2e5d342dRLSA-2023:3577
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.6.0+32048+5323bb50RLSA-2023:3577
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.6.0+32143+ae966e5bRLSA-2023:3577
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.6.0+32144+1d29a396RLSA-2023:3577
2 more for Rocky Linux in the JSON.
Azure Linux2c-ares1.19.1-1AZL-26869
Azure Linux2fluent-bit2.1.10-1AZL-26870
Azure Linux2grpc1.42.0-10AZL-26871
Azure Linux2nodejs16.20.1-2AZL-26874
Azure Linux2nodejs1818.17.1-2AZL-26875
Azure Linux2python-gevent21.1.2-3AZL-26876
Azure Linux2python-pycaresno fix listedAZL-43702
Azure Linux3grpc1.62.0-2AZL-34776

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:16-8080020230608150024.63b34585Fixed 2023-07-12RHSA-2023:4034
Red Hat Enterprise Linux 8nodejs:18-8080020230607122508.63b34585Fixed 2023-07-12RHSA-2023:4035
Red Hat Enterprise Linux 8.6 Extended Update Supportnodejs:16-8060020230620060944.ad008a3aFixed 2023-07-12RHSA-2023:4033
Red Hat Enterprise Linux 9nodejs:18-9020020230531092345.rhel9Fixed 2023-06-14RHSA-2023:3577
Red Hat Enterprise Linux 9nodejs-1:16.19.1-2.el9_2Fixed 2023-06-14RHSA-2023:3586
Red Hat Enterprise Linux 9c-ares-0:1.19.1-1.el9Fixed 2023-11-07RHSA-2023:6635
Red Hat Enterprise Linux 9.0 Extended Update Supportnodejs-1:16.18.1-4.el9_0Fixed 2023-07-12RHSA-2023:4036
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-nodejs-0:14.21.3-4.el7Fixed 2023-07-12RHSA-2023:4039
Red Hat Enterprise Linux 6c-aresOut of support scope
Red Hat Enterprise Linux 7c-aresOut of support scope
Red Hat Enterprise Linux 8c-aresAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-31147.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed
ICSA-24-046-15Siemens SINEC NMS2024-02-13MultipleSINEC NMSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High
  • CAPEC-112 Brute Force Severity: High
  • CAPEC-485 Signature Spoofing by Key Recreation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON