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.
CVE-2023-31147
This medium-severity CVE scores 5.9 under NVD CVSS v3. EPSS exploit probability: 0.9%, top 44% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 5.9
- EG Score
- 5.9(medium)
- EG Risk
- 27(Track)EG Risk 27/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity59% × 45%Exploitation1% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS
- 56.1%
- KEV
- Not listed
Published
May 25, 2023
Last Modified
November 21, 2024
References (10)
- security-advisories@githubhttps://github.com/c-ares/c-ares/releases/tag/cares-1_19_1
- security-advisories@githubhttps://github.com/c-ares/c-ares/security/advisories/GHSA-8r8p-23f3-64c2
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Z5XFNXTNPTCBBVXFDNZQVLLIE6VRBY/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBFWILTA33LOSV23P44FGTQQIDRJHIY7/
- security-advisories@githubhttps://security.gentoo.org/glsa/202310-09
- af854a3a-2127-422b-91ae-364da2661108https://github.com/c-ares/c-ares/releases/tag/cares-1_19_1
- af854a3a-2127-422b-91ae-364da2661108https://github.com/c-ares/c-ares/security/advisories/GHSA-8r8p-23f3-64c2
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Z5XFNXTNPTCBBVXFDNZQVLLIE6VRBY/
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBFWILTA33LOSV23P44FGTQQIDRJHIY7/
- af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202310-09
Patch Availability(8)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | c-ares-0:1.19.1-1.el9 | 2023-11-07 | redhat |
| redhat | rh-nodejs14-nodejs-0:14.21.3-4.el7 | 2023-07-12 | redhat |
| redhat | nodejs:16-8080020230608150024.63b34585 | 2023-07-12 | redhat |
| redhat | nodejs:16-8060020230620060944.ad008a3a | 2023-07-12 | redhat |
| redhat | nodejs-1:16.18.1-4.el9_0 | 2023-07-12 | redhat |
| redhat | nodejs:18-8080020230607122508.63b34585 | 2023-07-12 | redhat |
| redhat | nodejs:18-9020020230531092345.rhel9 | 2023-06-14 | redhat |
| redhat | nodejs-1:16.19.1-2.el9_2 | 2023-06-14 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(9)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
- Microsoft MSRCCVE-2023-311472023-05-29
Insufficient randomness in generation of DNS query IDs in c-ares
- Red HatRHSA-2023:3577MODERATE2023-05-22
RHSA-2023:3577 — Moderate
- Red HatRHSA-2023:3586MODERATE2023-05-22
RHSA-2023:3586 — Moderate
- Red HatRHSA-2023:4033MODERATE2023-05-22
RHSA-2023:4033 — Moderate
- Red HatRHSA-2023:4034MODERATE2023-05-22
RHSA-2023:4034 — Moderate
- Red HatRHSA-2023:4035MODERATE2023-05-22
RHSA-2023:4035 — Moderate
- Red HatRHSA-2023:4036MODERATE2023-05-22
RHSA-2023:4036 — Moderate
- Red HatRHSA-2023:4039MODERATE2023-05-22
RHSA-2023:4039 — Moderate
- Red HatRHSA-2023:6635MODERATE2023-05-22
RHSA-2023:6635 — Moderate
Data Freshness Timeline
(refreshed 14× in last 7d / 50× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 107 total refreshes for this CVE.
- 2026-07-23 02:22 UTCEG score recompute
- 2026-07-22 23:09 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-20 17:06 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-15 19:23 UTCOSV refresh
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:08 UTCEPSS rescore
- 2026-07-09 19:08 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-02 16:59 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-29 14:05 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 20:04 UTCOSV refresh
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:47 UTCEPSS rescore
- 2026-06-14 23:16 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-10 22:17 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-10 06:47 UTCOSV refresh
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc · redhat
Same CWE
10 shownCWE-330
- CVE-2020-1472EG 10.0 KEVEPSS 100%CRITICAL
- CVE-2019-0007NVD 9.3EG 10.0CRITICAL
- CVE-2019-2317EG 9.8CRITICAL
- CVE-2019-16674EG 9.8CRITICAL
- CVE-2014-6311EG 9.8CRITICAL
- CVE-2019-2294EG 9.8CRITICAL
- CVE-2019-15130EG 9.8CRITICAL
- CVE-2019-7667EG 9.8EPSS 90%CRITICAL
- CVE-2019-9863EG 9.8CRITICAL
- CVE-2019-5420EG 9.8EPSS 100%CRITICAL
Frequently asked(5)
What is CVE-2023-31147?
When was CVE-2023-31147 disclosed?
Is CVE-2023-31147 actively exploited?
What is the CVSS score of CVE-2023-31147?
How do I remediate CVE-2023-31147?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2023-31147
Is Your Infrastructure Affected by CVE-2023-31147?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.