CVE-2023-31124

CVE-2023-31124 is a low-severity vulnerability in C-ares Project C-ares with a CVSS 3.x base score of 3.7. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-330.

Key facts

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.

Frequently asked questions

What is CVE-2023-31124?
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.
How severe is CVE-2023-31124?
CVE-2023-31124 has a CVSS 3.x base score of 3.7, rated low severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity low, and availability none.
Is CVE-2023-31124 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (57th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2023-31124?
CVE-2023-31124 primarily affects C-ares Project C-ares. In total, 3 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2023-31124?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2023-31124 published?
CVE-2023-31124 was published on 2023-05-25 and last updated on 2026-06-17.

References

Affected products (3)

More vulnerabilities in C-ares Project C-ares

All CVEs affecting C-ares Project C-ares →

Other CWE-330 (Use of Insufficiently Random Values) vulnerabilities

Browse all CWE-330 (Use of Insufficiently Random Values) vulnerabilities →