HOMEVULNERABILITIESCVE-2023-31147
MEDIUM

CVE-2023-31147

CWE-330Published: May 25, 2023· Updated: Jun 17, 2026

6.5
CVSS v3.1

Official Description

c-ares is an asynchronous resolver library. 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. This issue has been fixed in version 1.19.1.

NVD Source

Technical Analysis

CVE-2023-31147 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.

The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.

CVSS v3.1 Vector Breakdown

Exploitability
Attack VectorNetwork
Attack ComplexityLow
Privileges Req.None
User InteractionNone
ScopeUnchanged
Impact
ConfidentialityLow
IntegrityLow
AvailabilityNone
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected Vendors & Products

c-ares_project1 product(s)
c-ares
Fedora1 product(s)
fedora
Source: NVD CPE · 3 total CPE entries

Exploit & PoC Resources

NO KNOWN EXPLOITNo public exploit confirmed at this time
External links open in a new tab. Always verify in a controlled environment before use.

Official Patches & Advisories

All References (10)

Quick Facts

CVE IDCVE-2023-31147
CVSS Score6.5 / 10
SeverityMEDIUM
WeaknessCWE-330
CISA KEVNo
Affected2 vendor(s)
PublishedMay 25, 2023

Related CVEs (CWE-330)

Recommended Actions

  • Apply vendor patches immediately
  • Monitor CVE-2023-31147 in threat intel feeds
  • Review IDS/IPS signatures for exploitation attempts
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWATCH.COM. CVE data is provided under the NVD usage policy.