{"id":"CVE-2023-31147","aliases":["CVE-2023-31147"],"related":[],"kind":"vulnerability","state":"published","title":"Insufficient randomness in generation of DNS query IDs in c-ares","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"}],"published":"2023-05-25T21:55:47.585Z","modified":"2026-06-17T05:56:22.987Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-330"],"affected":[{"ranges":[{"version":"< 1.19.1","status":"affected"}],"vendor":"c-ares","product":"c-ares","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.19.1"}],"vendor":"c-ares_project","product":"c-ares","cpe":"cpe:2.3:a:c-ares_project:c-ares:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"37"},{"status":"affected","version":"38"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/c-ares/c-ares/security/advisories/GHSA-8r8p-23f3-64c2","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/c-ares/c-ares/releases/tag/cares-1_19_1","tags":["release-notes","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Z5XFNXTNPTCBBVXFDNZQVLLIE6VRBY/","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBFWILTA33LOSV23P44FGTQQIDRJHIY7/","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202310-09","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-01-16T18:25:39.252Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-31147","url":"https://www.cve.org/CVERecord?id=CVE-2023-31147","licence":"CVE Terms of Use","modified":"2025-02-13T16:49:46.904Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-31147","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31147","licence":"Public domain","modified":"2026-06-17T05:56:22.987Z"}],"updatedAt":"2026-11-25T22:58:24.386Z","epss":{"score":0.00905,"percentile":0.60879,"date":"2026-12-01T12:00:22.000Z"}}