{"id":"CVE-2023-31147","summary":"Insufficient randomness in generation of DNS query IDs in c-ares","details":"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.","aliases":["GHSA-8r8p-23f3-64c2"],"modified":"2026-05-17T03:54:51.928929775Z","published":"2023-05-25T21:55:47.585Z","related":["ALSA-2023:3577","ALSA-2023:3586","ALSA-2023:4034","ALSA-2023:4035","ALSA-2023:6635","CGA-pjc3-688r-5fc9","SUSE-SU-2023:2313-1","SUSE-SU-2023:2477-1","SUSE-SU-2023:2655-1","SUSE-SU-2023:2662-1","SUSE-SU-2023:2663-1","SUSE-SU-2023:2669-1","SUSE-SU-2023:2861-1","openSUSE-SU-2024:12951-1"],"database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31147.json","cwe_ids":["CWE-330"]},"references":[{"type":"WEB","url":"https://github.com/c-ares/c-ares/releases/tag/cares-1_19_1"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Z5XFNXTNPTCBBVXFDNZQVLLIE6VRBY/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBFWILTA33LOSV23P44FGTQQIDRJHIY7/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31147.json"},{"type":"ADVISORY","url":"https://github.com/c-ares/c-ares/security/advisories/GHSA-8r8p-23f3-64c2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31147"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202310-09"}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}