CVE-2022-4904 json
A flaw was found in the c-ares package.
published 2023-03-06 3 y ago modified 2026-06-17 4 mo ago also EUVD-2022-52159
- cvss
- 8.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- c-ares_project c-ares 1.19.0
- c-ares Debian 14, Debian 13, Debian 12 1.18.1-2
debian advisories DEBIAN-CVE-2022-4904
- c-ares Ubuntu 18.04 LTS 1.14.0-1ubuntu0.2
- c-ares Ubuntu 20.04 LTS 1.15.0-1ubuntu0.2
- c-ares Ubuntu 22.04 LTS 1.18.1-1ubuntu0.22.04.1
- c-ares Ubuntu Pro 16.04 LTS 1.10.0-3ubuntu0.2+esm4
ubuntu advisories UBUNTU-CVE-2022-4904
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- npm RHEL 9 1:9.5.0-1.18.14.2.2.module+el9.2.0.z+18497+a402347c
- nodejs RHEL 9 1:18.14.2-2.module+el9.2.0.z+18497+a402347c
- nodejs-nodemon RHEL 9 2.0.20-2.module+el9.2.0.z+18497+a402347c
- nodejs-full-i18n RHEL 9 1:18.14.2-2.module+el9.2.0.z+18497+a402347c
- nodejs-packaging RHEL 9 2021.06-4.module+el9.1.0+15718+e52ec601
- nodejs-packaging-bundler RHEL 9 2021.06-4.module+el9.1.0+15718+e52ec601
- npm RHEL 8 1:8.19.3-1.16.19.1.1.module+el8.7.0+18373+704f5cef
- nodejs RHEL 8 1:16.19.1-1.module+el8.7.0+18373+704f5cef
red hat advisories RHSA-2023:2654RHSA-2023:1582RHSA-2023:1743RHSA-2023:1742RHSA-2023:1533RHSA-2023:1744
- libcares2 SLES for SAP 12 SP5, SLES 12 SP5, SLE Workstation Extension 12 SP5 +1 more 1.9.1-9.15.1
- c-ares SLES for SAP 15 SP3, SLES for SAP 15 SP2, SLES for SAP 15 SP1 +18 more 1.19.0-150000.3.20.1
suse advisories SUSE-SU-2023:3420-1SUSE-SU-2023:0486-1
- c-ares openSUSE Tumbleweed 1.19.0-2.1
opensuse advisories openSUSE-SU-2024:12674-1
- c-ares AlmaLinux 8 1.13.0-8.el8
- c-ares AlmaLinux 9 1.19.1-1.el9
- npm AlmaLinux 8 1:9.5.0-1.18.14.2.3.module_el8.8.0+3587+ee652244
- nodejs AlmaLinux 8 1:18.14.2-3.module_el8.8.0+3587+ee652244
- nodejs-nodemon AlmaLinux 8 2.0.20-2.module_el8.8.0+3587+ee652244
- nodejs-full-i18n AlmaLinux 8 1:18.14.2-3.module_el8.8.0+3587+ee652244
- nodejs-packaging AlmaLinux 8 2021.06-4.module_el8.7.0+3343+ea2b7901
- nodejs-packaging-bundler AlmaLinux 8 2021.06-4.module_el8.7.0+3343+ea2b7901
almalinux advisories ALSA-2023:7116ALSA-2023:6635ALSA-2023:4035ALSA-2023:2654ALSA-2023:2655ALSA-2023:1743
- nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.7.0+40025+0e0cf6b2
- nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.7.0+40017+f0db1785
- nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.7.0+40018+a011993d
- nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.7.0+40022+9ecc286c
- nodejs Rocky Linux 8 1:18.14.2-3.module+el8.8.0+1337+7ea46b57
- nodejs-nodemon Rocky Linux 8 2.0.20-2.module+el8.7.0+1177+510ae886
- nodejs-packaging Rocky Linux 8 2021.06-4.module+el8.7.0+1072+5b168780
- nodejs Rocky Linux 9 1:16.19.1-1.el9_2
rocky linux advisories RLSA-2023:2654RLSA-2023:4035RLSA-2023:2655RLSA-2023:1743RLSA-2023:1582
- c-ares CBL-Mariner 2.0 1.19.0-1
- nodejs CBL-Mariner 2.0 16.20.1-2
- python-gevent CBL-Mariner 2.0 21.1.2-3
- grpc Azure Linux 3.0 1.62.0-2
azure linux advisories AZL-13817AZL-13827AZL-13828AZL-34775
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-4904 updated cvss 8.6
c-ares: buffer overflow in config_sortlist() due to missing string length check
-
Red Hat Enterprise Linux 6 c-aresaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 c-aresaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux AppStream (v. 8) nodejs 14.21.3-1.module+el8.7.0+18531+81d21ca6, nodejs 16.19.1-1.module+el8.7.0+18373+704f5cef, nodejs 18.14.2-3.module+el8.8.0+19021+4b8b11cc, nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83, nodejs-packaging 25-1.module+el8.5.0+10992+fac5fe06, npm 9.5.0-1.18.14.2.3.module+el8.8.0+19021+4b8b11cc, +10 morefixed: vendor fix RHSA-2023:1743
-
Red Hat Enterprise Linux AppStream (v. 9) nodejs 16.19.1-1.el9_2, nodejs-libs 16.19.1-1.el9_2, npm 8.19.3-1.16.19.1.1.el9_2, nodejs-full-i18n 16.19.1-1.el9_2, nodejs 18.14.2-2.module+el9.2.0.z+18497+a402347c, npm 9.5.0-1.18.14.2.2.module+el9.2.0.z+18497+a402347c, +4 morefixed: vendor fix RHSA-2023:2655
-
Red Hat Enterprise Linux AppStream EUS (v.8.4) nodejs 14.21.3-1.module+el8.4.0+18317+43f5ac16, nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83, nodejs-nodemon 2.0.20-3.module+el8.4.0+18317+43f5ac16, npm 6.14.18-1.14.21.3.1.module+el8.4.0+18317+43f5ac16, nodejs-full-i18n 14.21.3-1.module+el8.4.0+18317+43f5ac16fixed: vendor fix RHSA-2023:1533
-
Red Hat Enterprise Linux AppStream EUS (v.8.6) nodejs 14.21.3-1.module+el8.6.0+18532+cbe6f646, nodejs-packaging 23-3.module+el8.3.0+6519+9f98ed83, nodejs-nodemon 2.0.20-3.module+el8.6.0+18532+cbe6f646, npm 6.14.18-1.14.21.3.1.module+el8.6.0+18532+cbe6f646, nodejs-full-i18n 14.21.3-1.module+el8.6.0+18532+cbe6f646fixed: vendor fix RHSA-2023:1742
-
Red Hat Enterprise Linux AppStream EUS (v.9.0) nodejs 16.20.2-1.el9_0, nodejs-libs 16.20.2-1.el9_0, npm 8.19.4-1.16.20.2.1.el9_0, nodejs-full-i18n 16.20.2-1.el9_0fixed: vendor fix RHSA-2023:6291
-
Red Hat Enterprise Linux AppStream EUS (v.9.2) c-ares-devel 1.17.1-5.el9_2.2, c-ares-debuginfo 1.17.1-5.el9_2.2, c-ares-debugsource 1.17.1-5.el9_2.2fixed: vendor fix RHSA-2023:7368
show 7 moreshow fewer
-
Red Hat Enterprise Linux BaseOS (v. 8) c-ares 1.13.0-8.el8fixed: vendor fix RHSA-2023:7116
-
Red Hat Enterprise Linux BaseOS (v. 9) c-ares 1.19.1-1.el9fixed: vendor fix RHSA-2023:6635
-
Red Hat Enterprise Linux BaseOS EUS (v.8.8) c-ares 1.13.0-6.el8_8.3fixed: vendor fix RHSA-2023:7543
-
Red Hat Enterprise Linux BaseOS EUS (v.9.0) c-ares 1.17.1-5.el9_0.2fixed: vendor fix RHSA-2023:6291
-
Red Hat Enterprise Linux BaseOS EUS (v.9.2) c-ares 1.17.1-5.el9_2.2fixed: vendor fix RHSA-2023:7368
-
Red Hat Software Collections for RHEL Workstation(v. 7) rh-nodejs14 3.6-2.el7, rh-nodejs14-runtime 3.6-2.el7, rh-nodejs14-scldevel 3.6-2.el7, rh-nodejs14-nodejs 14.21.3-2.el7, rh-nodejs14-npm 6.14.18-14.21.3.2.el7, rh-nodejs14-nodejs-full-i18n 14.21.3-2.el7 Red Hat Software Collections for RHEL(v. 7) rh-nodejs14 3.6-2.el7, rh-nodejs14-runtime 3.6-2.el7, rh-nodejs14-scldevel 3.6-2.el7, rh-nodejs14-nodejs 14.21.3-2.el7, rh-nodejs14-npm 6.14.18-14.21.3.2.el7, rh-nodejs14-nodejs-full-i18n 14.21.3-2.el7fixed: vendor fix RHSA-2023:1744
-
Red Hat Enterprise Linux AppStream (v. 9) nodejs-nodemon 2.0.20-3.el9_2not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-24-046-11 updated cvss 8.6
Siemens SCALANCE XCM-/XRM-300
-
Siemens SCALANCE XCH328 (6GK5328-4TS01-2EC2) <V2.4 Siemens SCALANCE XCM324 (6GK5324-8TS01-2AC2) <V2.4 Siemens SCALANCE XCM328 (6GK5328-4TS01-2AC2) <V2.4 Siemens SCALANCE XCM332 (6GK5332-0GA01-2AC2) <V2.4 Siemens SCALANCE XRH334 (24 V DC, 8xFO, CC) (6GK5334-2TS01-2ER3) <V2.4 Siemens SCALANCE XRM334 (2x230 V AC, 8xFO) (6GK5334-2TS01-4AR3) <V2.4affected: fixed in V2.4 support.industry.siemens.com
+5 more productsfewer
Siemens SCALANCE XRM334 (2x230 V AC, 12xFO) (6GK5334-3TS01-4AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 8xFO) (6GK5334-2TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 12xFO) (6GK5334-3TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 8xFO) (6GK5334-2TS01-3AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 12xFO) (6GK5334-3TS01-3AR3) <V2.4
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 11 mo ago
Exploit prediction
1.23% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/c-ares/c-ares/issues/496 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
| NVD | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
| CNA | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
Affected products
- n/a c-ares
Classification
References
-
github.com
/c-ares/c-ares/issues/496
exploit, issue-tracking
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/33LDNS6RPOPP36Z4MPWXALUQZXJCWJS2/
vendor-advisory
-
security.gentoo.org
/glsa/202401-02
vendor-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2168631
issue-tracking, third-party-advisory
Sources
- CVE List CVE-2022-4904
- NVD CVE-2022-4904
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.