CVE-2022-4904: A flaw was found in the c-ares package
CVE-2022-4904 is a high-severity flaw (CVSS 8.6) affecting c-ares, software collections, enterprise linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
A flaw was found in the c-ares package. The ares_set_sortlist is missing checks about the validity of the input string, which allows a possible arbitrary length stack overflow. This issue may cause a denial of service or a limited impact on confidentiality and integrity.
Why this priority
- High severity
- Public exploit reference
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Advisories and coverage
Official advisories
- Ubuntu Security Notices: USN-8951-1: c-ares vulnerabilities 2026-10-21
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-4904?
c-ares: upgrade to 1.19.0; software collections: mitigate or apply the listed mitigation; enterprise linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-4904 being exploited?
CVE-2022-4904 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-4904 affect?
CVE-2022-4904 affects c-ares, software collections, enterprise linux. Severity is high (CVSS 8.6). A flaw was found in the c-ares package. The ares_set_sortlist is missing checks about the validity of the input string, which allows a possible arbitrary length stack overflow. This issue may cause a denial of service or a limited impact on
How urgent is CVE-2022-4904?
Priority 62/100. High severity; Public exploit reference; Remotely exploitable, no login, no user action; On your watchlist
Related CVEs
- CVE-2025-62408 MEDIUM 5.9 UPGRADE c-ares is an asynchronous resolver library
- CVE-2024-25629 MEDIUM 4.4 UPGRADE MITIGATE c-ares is a C library for asynchronous DNS requests
- CVE-2023-32067 HIGH 7.5 UPGRADE MITIGATE c-ares is an asynchronous resolver library
- CVE-2023-31147 MEDIUM 5.9 UPGRADE MITIGATE c-ares is an asynchronous resolver library
- CVE-2023-31130 MEDIUM 4.1 UPGRADE MITIGATE c-ares is an asynchronous resolver library