{"id":"CVE-2023-31147","published":"2023-05-25T21:55:47Z","modified":"2025-02-13T16:49:46Z","title":"Insufficient randomness in generation of DNS query IDs in c-ares","vendor":"c-ares","product":"c-ares","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01055,"percentile":0.63779,"provenance":"source"},"cwes":[{"id":"CWE-330","name":"Use of Insufficiently Random Values"}],"references":[{"url":"https://github.com/c-ares/c-ares/security/advisories/GHSA-8r8p-23f3-64c2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/c-ares/c-ares/releases/tag/cares-1_19_1","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Z5XFNXTNPTCBBVXFDNZQVLLIE6VRBY/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBFWILTA33LOSV23P44FGTQQIDRJHIY7/","tags":[]},{"url":"https://security.gentoo.org/glsa/202310-09","tags":[]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":12.76},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"c-ares","affectedVersions":[{"vendor":"c-ares","product":"c-ares","versions":["< 1.19.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-16T18:25:39.252161Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-35463","exploited":false,"provenance":"source"}}