CVE-2023-31124Use of Insufficiently Random Values in C-ares

Severity
3.7LOWNVD
EPSS
0.1%
top 77.48%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 25

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.

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:NExploitability: 2.2 | Impact: 1.4

Affected Packages3 packages

CVEListV5c-ares/c-ares< 1.19.1
NVDc-ares_project/c-ares< 1.19.1
Debianc-ares/c-ares< 1.19.1-2+1

Also affects: Fedora 37, 38

🔴Vulnerability Details

2
CVEList
AutoTools does not set CARES_RANDOM_FILE during cross compilation2023-05-25
OSV
CVE-2023-31124: c-ares is an asynchronous resolver library2023-05-25

📋Vendor Advisories

3
Red Hat
c-ares: AutoTools does not set CARES_RANDOM_FILE during cross compilation2023-05-22
Microsoft
AutoTools does not set CARES_RANDOM_FILE during cross compilation2023-05-09
Debian
CVE-2023-31124: c-ares - c-ares is an asynchronous resolver library. When cross-compiling c-ares and usin...2023
CVE-2023-31124 — Use of Insufficiently Random Values | cvebase