Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in c-ares - CVE-2023-31124

 

Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in c-ares - CVE-2023-31124

Published: May 23, 2023 / Updated: June 21, 2023


Vulnerability identifier: #VU76424
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2023-31124
CWE-ID: CWE-338
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: c-ares.haxx.se
Affected software:
c-ares

Detailed vulnerability description

The vulnerability allows a remote attacker to perform spoofing attack.

The vulnerability exists due to an error when cross-compiling c-ares and using the autotools build system. As a result, the CARES_RANDOM_FILE is not be set, which results in usage of a rand() function as a fallback, leading to weak entropy.


How to mitigate CVE-2023-31124

Install updates from vendor's website.

Sources