CVE-2023-31124 LOW

CVE-2023-31124: AutoTools does not set CARES_RANDOM_FILE during cross compilation

Vendor C-Ares
Product c-ares
Weakness CWE-330 · Insufficient randomness
Published May 25, 2023
Last update February 13, 2025

CVSS base score

3.7/10
Attack vector Network
Attack complexity High
Privileges required None
User interaction None
Confidentiality None
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

May 25, 2023 CVE published
February 13, 2025 Record updated

Related vulnerabilities

04Related CVE