{"id":"DEBIAN-CVE-2023-31147","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.","modified":"2026-09-15T09:02:42.206910628Z","published":"2023-05-25T22:15:09.833Z","upstream":["CVE-2023-31147"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-31147"}],"affected":[{"package":{"name":"c-ares","ecosystem":"Debian:12","purl":"pkg:deb/debian/c-ares?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.18.1-3","1.19.0-1","1.19.1-1","1.19.1-2","1.19.1-3","1.20.0-1","1.20.0-2","1.20.0-3","1.20.1-1","1.21.0-1","1.22.0-1","1.22.1-1","1.23.0-1","1.24.0-1","1.25.0-1","1.26.0-1","1.26.0-1.1~exp1","1.27.0-1","1.27.0-1.1","1.27.0-1.1~exp1","1.27.0-1.2","1.28.1-1","1.29.0-1","1.30.0-1","1.31.0-1","1.32.2-1","1.32.2-2","1.32.3-1","1.33.0-1","1.33.1-1","1.33.1-2","1.34.2-1","1.34.3-1","1.34.4-1","1.34.4-2","1.34.4-2.1","1.34.5-1","1.34.6-1","1.34.7-1","1.34.8-1"],"ecosystem_specific":{"urgency":"unimportant"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2023-31147.json"}},{"package":{"name":"c-ares","ecosystem":"Debian:13","purl":"pkg:deb/debian/c-ares?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-2"}]}],"ecosystem_specific":{"urgency":"unimportant"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2023-31147.json"}},{"package":{"name":"c-ares","ecosystem":"Debian:14","purl":"pkg:deb/debian/c-ares?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.19.1-2"}]}],"ecosystem_specific":{"urgency":"unimportant"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2023-31147.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"}]}