Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

CVE-2023-31147

Public on 2023-05-23
Modified on 2024-02-07
Description

Insufficient randomness in generation of DNS query IDs

When /dev/urandom or RtlGenRandom() are unavailable, c-ares uses rand() to generate random numbers used for DNS query ids. This is not a CSPRNG, and it is also not seeded by srand() so will generate predictable output.
Input from the random number generator is fed into a non-compilant RC4 implementation and may not be as strong as the original RC4 implementation.
No attempt is made to look for modern OS-provided CSPRNGs like arc4random() that is widely available.

Severity
Medium
See what this means
CVSS v3 Base Score
5.9
See breakdown
Continue reading

Affected Packages

Platform Package Release Date Advisory
Amazon Linux 2 - Core c-ares 2024-09-25 22:07 ALAS2-2024-2646
Amazon Linux 2023 c-ares 2023-06-05 16:39 ALAS2023-2023-198
Amazon Linux 2 - Ecs Extra ecs-service-connect-agent 2023-09-14 01:06 ALAS2ECS-2023-007
Amazon Linux 2023 ecs-service-connect-agent 2023-09-14 00:54 ALAS2023-2023-344

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD CVSSv3 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N