CVE-2022-4904
No exploitation reported by the sources we read.
- Published2023-03-06
- WeaknessCWE-1284 · CWE-20
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2023-03-0623:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 8.0 | = 8.0 | no fix published | NVD |
| 9.0 | = 9.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.19 | < 1.19.0 | 1.19.0 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 36.x | = 36 | no fix published | NVD |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- c-aresAffected
- = unknownno fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-01-05
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- c-aresUbuntu:Pro:20.04:LTSall versions · fixed in 1.15.0-1ubuntu0.5+esm1
- c-aresUbuntu:Pro:18.04:LTSall versions · fixed in 1.14.0-1ubuntu0.2+esm3
- c-aresUbuntu:Pro:16.04:LTSall versions · fixed in 1.10.0-3ubuntu0.2+esm4
- c-aresUbuntu:26.04:LTSall versions · fixed in 1.34.6-1ubuntu0.2
- c-aresUbuntu:24.04:LTSall versions · fixed in 1.27.0-1.0ubuntu1.1
- c-aresUbuntu:22.04:LTSall versions · fixed in 1.18.1-1ubuntu0.22.04.1
- c-aresUbuntu:22.04:LTSall versions · fixed in 1.18.1-1ubuntu0.22.04.4
- c-aresUbuntu:20.04:LTSall versions · fixed in 1.15.0-1ubuntu0.2
122 more package ranges on OSV.dev
Vendor advisories
c-ares: buffer overflow in config_sortlist() due to missing string length check
c-ares-devel as a component of Red Hat Enterprise Linux 6 · c-ares.src as a component of Red Hat Enterprise Linux 6 · c-ares as a component of Red Hat Enterprise Linux 7 · +2 more
Siemens SCALANCE XCM-/XRM-300
SCALANCE XCH328 (6GK5328-4TS01-2EC2) · SCALANCE XCM324 (6GK5324-8TS01-2AC2) · SCALANCE XCM328 (6GK5328-4TS01-2AC2) · +8 more
SSA-806742: Multiple Vulnerabilities in SCALANCE XCM-/XRM-300 before V2.4
SCALANCE XCH328 (6GK5328-4TS01-2EC2) · SCALANCE XCM324 (6GK5324-8TS01-2AC2) · SCALANCE XCM328 (6GK5328-4TS01-2AC2) · +8 more
Red Hat Security Advisory: c-ares security update
Red Hat Security Advisory: c-ares security update
Red Hat Security Advisory: c-ares security update
11 more advisories
Fix
- Vendor fix CISA ICSA-24-046-11 · 10 productsUpdate to V2.4 or later version
- Vendor fix Siemens ProductCERT SSA-806742 · 10 productsUpdate to V2.4 or later version
- Vendor fix Red Hat Product Security RHSA-2023:7543 · 21 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-19
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2025-12-02
- CISA-ADPCVSS 3.18.62025-06-03
- NVDCVSS 3.18.6read 2026-10-23
- CNAweakness (CWE)CWE-20known since 2026-10-23
- NVDweakness (CWE)CWE-1284read 2026-10-23
- FIRST EPSSEPSS score1.2 %2026-11-18
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-13817same flawAzure Linux · MIT
- AZL-13827same flawAzure Linux · MIT
- AZL-13828same flawAzure Linux · MIT
- AZL-34775same flawAzure Linux · MIT
- AZL-43921same flawAzure Linux · MIT
- EUVD-2022-52159same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-v7h6-g695-5j7qsame flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2023:1582advisory covering several CVEsAlmaLinux · MIT
- ALSA-2023:1743advisory covering several CVEsAlmaLinux · MIT
- ALSA-2023:2654advisory covering several CVEsAlmaLinux · MIT
- ALSA-2023:2655advisory covering several CVEsAlmaLinux · MIT
- ALSA-2023:4035advisory covering several CVEsAlmaLinux · MIT
- ALSA-2023:6635advisory covering several CVEsAlmaLinux · MIT
- ALSA-2023:7116advisory covering several CVEsAlmaLinux · MIT
- DLA-3323-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2023-0069advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2023-1091advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2023-1110advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2024:12674-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2023:1533advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:1582advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:1742advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:1743advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:1744advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:2654advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:2655advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:4035advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:5533advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:6291advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:6635advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:7116advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:7368advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2023:7543advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2023:1582advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2023:1743advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2023:2654advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2023:2655advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2023:4035advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2023:0486-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2023:3420-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5907-1advisory covering several CVEsUbuntu
- USN-8951-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
- Published
- 2023-03-06
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-v7h6-g695-5j7q
Frequently asked questions
What is CVE-2022-4904?
Is CVE-2022-4904 actively exploited?
What is the CVSS score for CVE-2022-4904?
Running c-ares? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-v7h6-g695-5j7q
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0