cve.bz

CVE-2022-4904 Improper Input Validation

8.6 highExploit referenceEPSS 1.2%

High (8.6). EPSS 1.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.6 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 70th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-12-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-1284 Improper Validation of Specified Quantity in Input
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-4904 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-4904?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-4904?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-4904 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
c-ares_project:c-aresbefore 1.19.0
redhat:enterprise_linux8.0
redhat:enterprise_linux9.0
fedoraproject:fedora36

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10c-ares1.14.0-1+deb10u2DLA-3323-1
Debian12, 13, 14c-ares1.18.1-2DEBIAN-CVE-2022-4904
Ubuntu18.04:LTSc-ares1.14.0-1ubuntu0.2UBUNTU-CVE-2022-4904 USN-5907-1
Ubuntu20.04:LTSc-ares1.15.0-1ubuntu0.2UBUNTU-CVE-2022-4904 USN-5907-1
Ubuntu22.04:LTSc-ares1.18.1-1ubuntu0.22.04.1UBUNTU-CVE-2022-4904 USN-5907-1 USN-8951-1
Ubuntu24.04:LTSc-ares1.27.0-1.0ubuntu1.1USN-8951-1
Ubuntu26.04:LTSc-ares1.34.6-1ubuntu0.2USN-8951-1
UbuntuPro:16.04:LTSc-ares1.10.0-3ubuntu0.2+esm4UBUNTU-CVE-2022-4904 USN-8951-1
UbuntuPro:18.04:LTSc-ares1.14.0-1ubuntu0.2+esm3USN-8951-1
UbuntuPro:20.04:LTSc-ares1.15.0-1ubuntu0.5+esm1USN-8951-1
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:14.21.3-1.module+el8.7.0+18531+81d21ca6RHSA-2023:1743
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:16.19.1-1.module+el8.7.0+18373+704f5cefRHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.14.2-3.module+el8.8.0+19021+4b8b11ccRHSA-2023:4035
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-2.module+el8.8.0+18432+27f188acRHSA-2023:4035
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-3.module+el8.7.0+18373+704f5cefRHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-3.module+el8.7.0+18531+81d21ca6RHSA-2023:1743
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:23-3.module+el8.3.0+6519+9f98ed83RHSA-2023:1743
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:4035
Red Hatenterprise_linux:8::appstreamnpm1:6.14.18-1.14.21.3.1.module+el8.7.0+18531+81d21ca6RHSA-2023:1743
Red Hatenterprise_linux:8::appstreamnpm1:8.19.3-1.16.19.1.1.module+el8.7.0+18373+704f5cefRHSA-2023:1582
Red Hatenterprise_linux:8::appstreamnpm1:9.5.0-1.18.14.2.3.module+el8.8.0+19021+4b8b11ccRHSA-2023:4035
28 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS and 16 morec-ares1.19.0-150000.3.20.1SUSE-SU-2023:0486-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5 and 1 morelibcares21.9.1-9.15.1SUSE-SU-2023:3420-1
openSUSELeap 15.4, Leap Micro 5.3c-ares1.19.0-150000.3.20.1SUSE-SU-2023:0486-1
openSUSETumbleweedc-ares1.19.0-2.1openSUSE-SU-2024:12674-1
AlmaLinux8c-ares, c-ares-devel1.13.0-8.el8ALSA-2023:7116
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:14.21.3-1.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:16.19.1-1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux8nodejs-nodemon2.0.20-2.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux8nodejs-nodemon2.0.20-3.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux8nodejs-nodemon2.0.20-3.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux8nodejs-packaging23-3.module_el8.4.0+2522+3bd42762ALSA-2023:1743
AlmaLinux8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2023:1582
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:4035
AlmaLinux8npm1:6.14.18-1.14.21.3.1.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux8npm1:8.19.3-1.16.19.1.1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
8 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:14.21.3-1.module+el8.7.0+1183+c2c35f0aRLSA-2023:1743
Rocky Linux8nodejs1:16.19.1-1.module+el8.7.0+1178+d52dba78RLSA-2023:1582
Rocky Linux8nodejs1:18.14.2-3.module+el8.8.0+1337+7ea46b57RLSA-2023:4035
Rocky Linux8nodejs-nodemon0:2.0.20-2.module+el8.7.0+1177+510ae886RLSA-2023:4035
Rocky Linux8nodejs-nodemon0:2.0.20-3.module+el8.7.0+1178+d52dba78RLSA-2023:1582 RLSA-2023:1743
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2023:4035
Rocky Linux8nodejs-packaging0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2023:1743
Rocky Linux8nodejs-packaging0:25-1.module+el8.6.0+1046+80feca58RLSA-2023:1582
Rocky Linux9nodejs1:16.19.1-1.el9_2RLSA-2023:2655
Rocky Linux9nodejs-nodemon0:2.0.20-3.el9_2RLSA-2023:2655
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.7.0+40017+f0db1785RLSA-2023:2654
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.7.0+40018+a011993dRLSA-2023:2654
2 more for Rocky Linux in the JSON.
Azure Linux2c-ares1.19.0-1AZL-13817
Azure Linux2nodejs16.20.1-2AZL-13827
Azure Linux2python-gevent21.1.2-3AZL-13828
Azure Linux2python-pycaresno fix listedAZL-43921
Azure Linux3grpc1.62.0-2AZL-34775

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The severity of this vulnerability is not important but moderate because exploiting the vulnerability can lead to a disruption of the availability of an application, yet doesn’t compromise data integrity or confidentiality. The opportunity for disruption is further limited due to the requirement that an application allows an attacker to be able to input both untrusted and unvalidated data. Exploiting this flaw requires an application to use the library in such a way that would allow untrusted and unvalidated input to be passed directly to ares_set_sortlist by an attacker. In the event that this is able to occur, the impact to RHEL is limited to a crash of the application due to the protections offered by default in RHEL systems such as Stack Smashing Protection (SSP).

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:16-8070020230314140722.bd1311edFixed 2023-04-04RHSA-2023:1582
Red Hat Enterprise Linux 8nodejs:14-8070020230306170042.bd1311edFixed 2023-04-12RHSA-2023:1743
Red Hat Enterprise Linux 8nodejs:18-8080020230607122508.63b34585Fixed 2023-07-12RHSA-2023:4035
Red Hat Enterprise Linux 8c-ares-0:1.13.0-8.el8Fixed 2023-11-14RHSA-2023:7116
Red Hat Enterprise Linux 8.4 Extended Update Supportnodejs:14-8040020230306170312.522a0ee4Fixed 2023-03-30RHSA-2023:1533
Red Hat Enterprise Linux 8.6 Extended Update Supportnodejs:14-8060020230306170237.ad008a3aFixed 2023-04-12RHSA-2023:1742
Red Hat Enterprise Linux 8.8 Extended Update Supportc-ares-0:1.13.0-6.el8_8.3Fixed 2023-11-28RHSA-2023:7543
Red Hat Enterprise Linux 9nodejs:18-9020020230327152102.rhel9Fixed 2023-05-09RHSA-2023:2654
Red Hat Enterprise Linux 9nodejs-1:16.19.1-1.el9_2Fixed 2023-05-09RHSA-2023:2655
Red Hat Enterprise Linux 9c-ares-0:1.19.1-1.el9Fixed 2023-11-07RHSA-2023:6635
Red Hat Enterprise Linux 9.0 Extended Update Supportnodejs-1:16.20.2-1.el9_0Fixed 2023-10-09RHSA-2023:5533
Red Hat Enterprise Linux 9.0 Extended Update Supportc-ares-0:1.17.1-5.el9_0.2Fixed 2023-11-02RHSA-2023:6291
Red Hat Enterprise Linux 9.2 Extended Update Supportc-ares-0:1.17.1-5.el9_2.2Fixed 2023-11-21RHSA-2023:7368
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-0:3.6-2.el7Fixed 2023-04-12RHSA-2023:1744
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-nodejs14-nodejs-0:14.21.3-2.el7Fixed 2023-04-12RHSA-2023:1744
Red Hat Enterprise Linux 6c-aresOut of support scope
Red Hat Enterprise Linux 7c-aresWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-4904.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON