CVE-2023-31147
published medium CVSS 3.1 · 5.9Insufficient randomness in generation of DNS query IDs in c-ares
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| c-ares | — | c-ares< 1.19.1 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2646 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2ECS-2023-007 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-198 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-344 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | c-ares | Advisory build | 1.19.1-1.el9 | ALSA-2023:6635 |
| Oracle Linux | 9 | c-aresaarch64 | Advisory build | 0:1.19.1-1.el9 | ELSA-2023-6635 |
| Red Hat Enterprise Linux | RHEL-9 | c-aresaarch64 | Advisory build | 1.19.1-1.el9 | RHSA-2023:6635 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 9 | c-aresx86_64 | Advisory build | 0:1.19.1-1.el9 | ELSA-2023-6635 |
| Red Hat Enterprise Linux | RHEL-9 | c-aresi686 | Advisory build | 1.19.1-1.el9 | RHSA-2023:6635 |
| Red Hat Enterprise Linux | RHEL-9 | c-aresppc64le | Advisory build | 1.19.1-1.el9 | RHSA-2023:6635 |
| Red Hat Enterprise Linux | RHEL-9 | c-aress390x | Advisory build | 1.19.1-1.el9 | RHSA-2023:6635 |
| Red Hat Enterprise Linux | RHEL-9 | c-aressrc | Advisory build | 1.19.1-1.el9 | RHSA-2023:6635 |
| Red Hat Enterprise Linux | RHEL-9 | c-aresx86_64 | Advisory build | 1.19.1-1.el9 | RHSA-2023:6635 |
| AlmaLinux | 8 | nodejs | Advisory build | 1:16.19.1-2.module_el8.8.0+3586+d4fc0b72 | ALSA-2023:4034 |
| AlmaLinux | 8 | nodejs | Advisory build | 1:18.14.2-3.module_el8.8.0+3587+ee652244 | ALSA-2023:4035 |
| AlmaLinux | 8 | nodejs-devel | Advisory build | 1:16.19.1-2.module_el8.8.0+3586+d4fc0b72 | ALSA-2023:4034 |
| AlmaLinux | 8 | nodejs-devel | Advisory build | 1:18.14.2-3.module_el8.8.0+3587+ee652244 | ALSA-2023:4035 |
| AlmaLinux | 8 | nodejs-docs | Advisory build | 1:16.19.1-2.module_el8.8.0+3586+d4fc0b72 | ALSA-2023:4034 |
| AlmaLinux | 8 | nodejs-docs | Advisory build | 1:18.14.2-3.module_el8.8.0+3587+ee652244 | ALSA-2023:4035 |
| AlmaLinux | 8 | nodejs-full-i18n | Advisory build | 1:16.19.1-2.module_el8.8.0+3586+d4fc0b72 | ALSA-2023:4034 |
| AlmaLinux | 8 | nodejs-full-i18n | Advisory build | 1:18.14.2-3.module_el8.8.0+3587+ee652244 | ALSA-2023:4035 |
| AlmaLinux | 8 | nodejs-nodemon | Advisory build | 2.0.20-2.module_el8.8.0+3587+ee652244 | ALSA-2023:4035 |
| AlmaLinux | 8 | nodejs-nodemon | Advisory build | 2.0.20-3.module_el8.8.0+3586+d4fc0b72 | ALSA-2023:4034 |
| AlmaLinux | 8 | nodejs-packaging | Advisory build | 2021.06-4.module_el8.7.0+3343+ea2b7901 | ALSA-2023:4035 |
| AlmaLinux | 8 | nodejs-packaging | Advisory build | 25-1.module_el8.5.0+2605+45d748af | ALSA-2023:4034 |
| AlmaLinux | 8 | nodejs-packaging-bundler | Advisory build | 2021.06-4.module_el8.7.0+3343+ea2b7901 | ALSA-2023:4035 |
| AlmaLinux | 8 | npm | Advisory build | 1:8.19.3-1.16.19.1.2.module_el8.8.0+3586+d4fc0b72 | ALSA-2023:4034 |
| AlmaLinux | 8 | npm | Advisory build | 1:9.5.0-1.18.14.2.3.module_el8.8.0+3587+ee652244 | ALSA-2023:4035 |
| AlmaLinux | 9 | c-ares-devel | Advisory build | 1.19.1-1.el9 | ALSA-2023:6635 |
| AlmaLinux | 9 | nodejs | Advisory build | 1:16.19.1-2.el9_2 | ALSA-2023:3586 |
| AlmaLinux | 9 | nodejs | Advisory build | 1:18.14.2-3.module_el9.2.0+30+e3312493 | ALSA-2023:3577 |
| AlmaLinux | 9 | nodejs-devel | Advisory build | 1:18.14.2-3.module_el9.2.0+30+e3312493 | ALSA-2023:3577 |
| AlmaLinux | 9 | nodejs-docs | Advisory build | 1:16.19.1-2.el9_2 | ALSA-2023:3586 |
| AlmaLinux | 9 | nodejs-docs | Advisory build | 1:18.14.2-3.module_el9.2.0+30+e3312493 | ALSA-2023:3577 |
| AlmaLinux | 9 | nodejs-full-i18n | Advisory build | 1:16.19.1-2.el9_2 | ALSA-2023:3586 |
| AlmaLinux | 9 | nodejs-full-i18n | Advisory build | 1:18.14.2-3.module_el9.2.0+30+e3312493 | ALSA-2023:3577 |
| AlmaLinux | 9 | nodejs-libs | Advisory build | 1:16.19.1-2.el9_2 | ALSA-2023:3586 |
| AlmaLinux | 9 | nodejs-nodemon | Advisory build | 2.0.20-2.module_el9.2.0+29+de583a0b | ALSA-2023:3577 |
| AlmaLinux | 9 | nodejs-packaging | Advisory build | 2021.06-4.module_el9.1.0+13+d9a595ea | ALSA-2023:3577 |
| AlmaLinux | 9 | nodejs-packaging-bundler | Advisory build | 2021.06-4.module_el9.1.0+13+d9a595ea | ALSA-2023:3577 |
| AlmaLinux | 9 | npm | Advisory build | 1:8.19.3-1.16.19.1.2.el9_2 | ALSA-2023:3586 |
| AlmaLinux | 9 | npm | Advisory build | 1:9.5.0-1.18.14.2.3.module_el9.2.0+30+e3312493 | ALSA-2023:3577 |
| Oracle Linux | 8 | nodejsaarch64 · nodejs · 16b | Advisory build | 1:16.19.1-2.module+el8.8.0+21121+9536f36f | ELSA-2023-4034 |
| Oracle Linux | 8 | nodejsaarch64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el8.8.0+21122+857852f8 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejsx86_64 · nodejs · 16b | Advisory build | 1:16.19.1-2.module+el8.8.0+21121+9536f36f | ELSA-2023-4034 |
| Oracle Linux | 8 | nodejsx86_64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el8.8.0+21122+857852f8 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejs-develaarch64 · nodejs · 16b | Advisory build | 1:16.19.1-2.module+el8.8.0+21121+9536f36f | ELSA-2023-4034 |
| Oracle Linux | 8 | nodejs-develaarch64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el8.8.0+21122+857852f8 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejs-develx86_64 · nodejs · 16b | Advisory build | 1:16.19.1-2.module+el8.8.0+21121+9536f36f | ELSA-2023-4034 |
| Oracle Linux | 8 | nodejs-develx86_64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el8.8.0+21122+857852f8 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejs-docsaarch64 · nodejs · 16b | Advisory build | 1:16.19.1-2.module+el8.8.0+21121+9536f36f | ELSA-2023-4034 |
| Oracle Linux | 8 | nodejs-docsaarch64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el8.8.0+21122+857852f8 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejs-docsx86_64 · nodejs · 16b | Advisory build | 1:16.19.1-2.module+el8.8.0+21121+9536f36f | ELSA-2023-4034 |
| Oracle Linux | 8 | nodejs-docsx86_64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el8.8.0+21122+857852f8 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejs-full-i18naarch64 · nodejs · 16b | Advisory build | 1:16.19.1-2.module+el8.8.0+21121+9536f36f | ELSA-2023-4034 |
| Oracle Linux | 8 | nodejs-full-i18naarch64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el8.8.0+21122+857852f8 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejs-full-i18nx86_64 · nodejs · 16b | Advisory build | 1:16.19.1-2.module+el8.8.0+21121+9536f36f | ELSA-2023-4034 |
| Oracle Linux | 8 | nodejs-full-i18nx86_64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el8.8.0+21122+857852f8 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejs-nodemonaarch64 · nodejs · 16b | Advisory build | 0:2.0.20-3.module+el8.8.0+21121+9536f36f | ELSA-2023-4034 |
| Oracle Linux | 8 | nodejs-nodemonaarch64 · nodejs · 18b | Advisory build | 0:2.0.20-2.module+el8.8.0+21122+857852f8 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejs-nodemonx86_64 · nodejs · 16b | Advisory build | 0:2.0.20-3.module+el8.8.0+21121+9536f36f | ELSA-2023-4034 |
| Oracle Linux | 8 | nodejs-nodemonx86_64 · nodejs · 18b | Advisory build | 0:2.0.20-2.module+el8.8.0+21122+857852f8 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejs-packagingaarch64 · nodejs · 16b | Advisory build | 0:25-1.module+el8.5.0+20388+4b61e68d | ELSA-2023-4034 |
| Oracle Linux | 8 | nodejs-packagingaarch64 · nodejs · 18b | Advisory build | 0:2021.06-4.module+el8.7.0+20766+0a247725 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejs-packagingx86_64 · nodejs · 16b | Advisory build | 0:25-1.module+el8.5.0+20388+4b61e68d | ELSA-2023-4034 |
| Oracle Linux | 8 | nodejs-packagingx86_64 · nodejs · 18b | Advisory build | 0:2021.06-4.module+el8.7.0+20766+0a247725 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejs-packaging-bundleraarch64 · nodejs · 18b | Advisory build | 0:2021.06-4.module+el8.7.0+20766+0a247725 | ELSA-2023-4035 |
| Oracle Linux | 8 | nodejs-packaging-bundlerx86_64 · nodejs · 18b | Advisory build | 0:2021.06-4.module+el8.7.0+20766+0a247725 | ELSA-2023-4035 |
| Oracle Linux | 8 | npmaarch64 · nodejs · 16b | Advisory build | 1:8.19.3-1.16.19.1.2.module+el8.8.0+21121+9536f36f | ELSA-2023-4034 |
| Oracle Linux | 8 | npmaarch64 · nodejs · 18b | Advisory build | 1:9.5.0-1.18.14.2.3.module+el8.8.0+21122+857852f8 | ELSA-2023-4035 |
| Oracle Linux | 8 | npmx86_64 · nodejs · 16b | Advisory build | 1:8.19.3-1.16.19.1.2.module+el8.8.0+21121+9536f36f | ELSA-2023-4034 |
| Oracle Linux | 8 | npmx86_64 · nodejs · 18b | Advisory build | 1:9.5.0-1.18.14.2.3.module+el8.8.0+21122+857852f8 | ELSA-2023-4035 |
| Oracle Linux | 9 | c-ares-develaarch64 | Advisory build | 0:1.19.1-1.el9 | ELSA-2023-6635 |
| Oracle Linux | 9 | c-ares-develx86_64 | Advisory build | 0:1.19.1-1.el9 | ELSA-2023-6635 |
| Oracle Linux | 9 | nodejsaarch64 | Advisory build | 1:16.19.1-2.el9_2 | ELSA-2023-3586 |
| Oracle Linux | 9 | nodejsaarch64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el9.2.0+21063+2bebdd12 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejsx86_64 | Advisory build | 1:16.19.1-2.el9_2 | ELSA-2023-3586 |
| Oracle Linux | 9 | nodejsx86_64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el9.2.0+21063+2bebdd12 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejs-develaarch64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el9.2.0+21063+2bebdd12 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejs-develx86_64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el9.2.0+21063+2bebdd12 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejs-docsaarch64 | Advisory build | 1:16.19.1-2.el9_2 | ELSA-2023-3586 |
| Oracle Linux | 9 | nodejs-docsaarch64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el9.2.0+21063+2bebdd12 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejs-docsx86_64 | Advisory build | 1:16.19.1-2.el9_2 | ELSA-2023-3586 |
| Oracle Linux | 9 | nodejs-docsx86_64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el9.2.0+21063+2bebdd12 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejs-full-i18naarch64 | Advisory build | 1:16.19.1-2.el9_2 | ELSA-2023-3586 |
| Oracle Linux | 9 | nodejs-full-i18naarch64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el9.2.0+21063+2bebdd12 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejs-full-i18nx86_64 | Advisory build | 1:16.19.1-2.el9_2 | ELSA-2023-3586 |
| Oracle Linux | 9 | nodejs-full-i18nx86_64 · nodejs · 18b | Advisory build | 1:18.14.2-3.module+el9.2.0+21063+2bebdd12 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejs-libsaarch64 | Advisory build | 1:16.19.1-2.el9_2 | ELSA-2023-3586 |
| Oracle Linux | 9 | nodejs-libsx86_64 | Advisory build | 1:16.19.1-2.el9_2 | ELSA-2023-3586 |
| Oracle Linux | 9 | nodejs-nodemonaarch64 · nodejs · 18b | Advisory build | 0:2.0.20-2.module+el9.2.0+21038+115df6a2 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejs-nodemonx86_64 · nodejs · 18b | Advisory build | 0:2.0.20-2.module+el9.2.0+21038+115df6a2 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejs-packagingaarch64 · nodejs · 18b | Advisory build | 0:2021.06-4.module+el9.1.0+20762+f52d7401 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejs-packagingx86_64 · nodejs · 18b | Advisory build | 0:2021.06-4.module+el9.1.0+20762+f52d7401 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejs-packaging-bundleraarch64 · nodejs · 18b | Advisory build | 0:2021.06-4.module+el9.1.0+20762+f52d7401 | ELSA-2023-3577 |
| Oracle Linux | 9 | nodejs-packaging-bundlerx86_64 · nodejs · 18b | Advisory build | 0:2021.06-4.module+el9.1.0+20762+f52d7401 | ELSA-2023-3577 |
| Oracle Linux | 9 | npmaarch64 | Advisory build | 1:8.19.3-1.16.19.1.2.el9_2 | ELSA-2023-3586 |
| Oracle Linux | 9 | npmaarch64 · nodejs · 18b | Advisory build | 1:9.5.0-1.18.14.2.3.module+el9.2.0+21063+2bebdd12 | ELSA-2023-3577 |
| Oracle Linux | 9 | npmx86_64 | Advisory build | 1:8.19.3-1.16.19.1.2.el9_2 | ELSA-2023-3586 |
| Oracle Linux | 9 | npmx86_64 · nodejs · 18b | Advisory build | 1:9.5.0-1.18.14.2.3.module+el9.2.0+21063+2bebdd12 | ELSA-2023-3577 |
| Red Hat Enterprise Linux | RHEL-7 | rh-nodejs14-nodejssrc | Advisory build | 14.21.3-4.el7 | RHSA-2023:4039 |
| Red Hat Enterprise Linux | RHEL-7 | rh-nodejs14-nodejsx86_64 | Advisory build | 14.21.3-4.el7 | RHSA-2023:4039 |
| Red Hat Enterprise Linux | RHEL-7 | rh-nodejs14-nodejs-debuginfox86_64 | Advisory build | 14.21.3-4.el7 | RHSA-2023:4039 |
| Red Hat Enterprise Linux | RHEL-7 | rh-nodejs14-nodejs-develx86_64 | Advisory build | 14.21.3-4.el7 | RHSA-2023:4039 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| c-ares | c-ares | < 1.19.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-330 CWE-330: Use of Insufficiently Random Values
References
5- https://github.com/c-ares/c-ares/releases/tag/cares-1_19_1
- https://github.com/c-ares/c-ares/security/advisories/GHSA-8r8p-23f3-64c2
- https://lists.fedoraproject.org/archives/list/[email protected]/message/B5Z5XFNXTNPTCBBVXFDNZQVLLIE6VRBY/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/UBFWILTA33LOSV23P44FGTQQIDRJHIY7/
- https://security.gentoo.org/glsa/202310-09
Provider assertions
3GitHub_M · cna
Insufficient randomness in generation of DNS query IDs in c-ares
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 82623be839a41f3fe02d27c52583a9afd2cd4dddf3fbfda0cd11f08c7b1939ad
- Ingested
- 23 Sep 2026, 08:08:38 UTC
- Source record
- Official CVE record