Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-31147— Insufficient randomness in generation of DNS query IDs in c-ares

Quick assessment

Affected
c-ares c-ares
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

c-ares是c-ares个人开发者的一个用于异步 DNS 请求的 C 库。 c-ares 1.19.1之前版本存在安全漏洞,该漏洞源于会生成可预测的输出。

CVSS 5.9 · Medium EPSS 0.90% · P58

Possible ATT&CK Techniques 2 AI

T1557 · Adversary-in-the-Middle T1043
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-31147

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Insufficient randomness in generation of DNS query IDs in c-ares
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
使用不充分的随机数
Source: CVE Program / CVE List V5
Vulnerability Title
c-ares 安全特征问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
c-ares是c-ares个人开发者的一个用于异步 DNS 请求的 C 库。 c-ares 1.19.1之前版本存在安全漏洞,该漏洞源于会生成可预测的输出。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
c-ares c-ares < 1.19.1 -

II. Public POCs for CVE-2023-31147

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-31147

请登录查看更多情报信息。

Vendor Advisories for CVE-2023-31147 (2)

Mailing List Discussions for CVE-2023-31147 (2)

Other References for CVE-2023-31147 (1)

Same Patch Batch · c-ares · 2023-05-25 · 4 CVEs total

CVE-2023-32067 7.5 HIGH 0-byte UDP payload DoS in c-ares
CVE-2023-31130 4.1 MEDIUM Buffer Underwrite in ares_inet_net_pton()
CVE-2023-31124 3.7 LOW AutoTools does not set CARES_RANDOM_FILE during cross compilation

IV. Related Vulnerabilities

V. Comments for CVE-2023-31147

No comments yet


Leave a comment