CVE-2023-31124

AutoTools does not set CARES_RANDOM_FILE during cross compilation

State
Published
Severity
3.7 Low
Published
May 25, 2023
Updated
Feb 13, 2025
Reserved
Apr 24, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.13.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:NGitHub_M

Weaknesses

  • CWE-330 Use of Insufficiently Random Values

Affected Products

ProductVersions
c-aresc-ares
  • < 1.19.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.