CVE-2023-31147 in C-Ares Project C-Ares and 7 more products
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.
Affects 8 products from 3 vendors. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| C-Ares Project | C-Ares | < 1.19.1 |
| Fedoraproject | Fedora | 37 38 |
| Siemens | SCALANCE XCM328 | < 2.4 |
| Siemens | SCALANCE XCM332 | < 2.4 |
| Siemens | SCALANCE XCH328 | < 2.4 |
| Siemens | SCALANCE XRM334 | < 2.4 |
| Siemens | SCALANCE XRH334 | < 2.4 |
| Siemens | SCALANCE XCM324 | < 2.4 |
| Siemens | Sinec-Nms | < 2.0 SP1 |
| Siemens | Sinec Nms | < 2.0 SP1 |
Fix and vendor advisory
- SCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 7 more: Update to V2.4 or later version
Source: ICSA-24-046-11
- SINEC NMS: Update to V2.0 SP1 or later version
Source: ICSA-24-046-15
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2023-31147 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-001821-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| Published | 2023-05-25 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.