CVE & CISA-KEV Catalog

CVE-2022-4904

HIGH
8.6
CVSS v3
NVD

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.

How to fix

Remediation Available
c-aresAmazon
Fixed in:0:1.10.0-3.amzn2.0.4
Fixed in:0:1.10.0-3.amzn2.0.4
Fixed in:0:1.10.0-3.amzn2.0.4
Fixed in:0:1.19.0-1.amzn2023
Fixed in:0:1.19.0-1.amzn2023
Fixed in:0:1.19.0-1.amzn2023
c-ares-debuginfoAmazon
Fixed in:0:1.10.0-3.amzn2.0.4
Fixed in:0:1.10.0-3.amzn2.0.4
Fixed in:0:1.10.0-3.amzn2.0.4
Fixed in:0:1.19.0-1.amzn2023
Fixed in:0:1.19.0-1.amzn2023
Fixed in:0:1.19.0-1.amzn2023
c-ares-debugsourceAmazon
Fixed in:0:1.19.0-1.amzn2023
Fixed in:0:1.19.0-1.amzn2023
Fixed in:0:1.19.0-1.amzn2023
c-ares-develAmazon
Fixed in:0:1.10.0-3.amzn2.0.4
Fixed in:0:1.10.0-3.amzn2.0.4
Fixed in:0:1.10.0-3.amzn2.0.4
Fixed in:0:1.19.0-1.amzn2023
Fixed in:0:1.19.0-1.amzn2023
Fixed in:0:1.19.0-1.amzn2023
nodejsAmazon
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
nodejs-debuginfoAmazon
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
nodejs-debugsourceAmazon
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
nodejs-develAmazon
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
nodejs-docsAmazon
Fixed in:1:18.12.1-1.amzn2023.0.6
nodejs-full-i18nAmazon
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
nodejs-libsAmazon
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
nodejs-libs-debuginfoAmazon
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
Fixed in:1:18.12.1-1.amzn2023.0.6
npmAmazon
Fixed in:1:8.19.2-1.18.12.1.1.amzn2023.0.6
Fixed in:1:8.19.2-1.18.12.1.1.amzn2023.0.6
Fixed in:1:8.19.2-1.18.12.1.1.amzn2023.0.6
v8-develAmazon
Fixed in:2:10.2.154.15-1.18.12.1.1.amzn2023.0.6
Fixed in:2:10.2.154.15-1.18.12.1.1.amzn2023.0.6
Fixed in:2:10.2.154.15-1.18.12.1.1.amzn2023.0.6
c-aresDebian
Fixed in:1.18.1-2CVE-2022-4904
Fixed in:1.18.1-2CVE-2022-4904
Fixed in:1.18.1-2CVE-2022-4904
c-aresRocky
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
c-aresRed Hat / RHEL
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
c-ares-debuginfoRed Hat / RHEL
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
c-ares-debuginfoRocky
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
c-ares-debugsourceRocky
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
c-ares-debugsourceRed Hat / RHEL
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
c-ares-develRocky
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
c-ares-develRed Hat / RHEL
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-6.el8_8.3RHSA-2023:7543
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
Fixed in:0:1.13.0-8.el8RHSA-2023:7116
nodejsRocky
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.ppc64le::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.x86_64::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.src::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.aarch64::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.x86_64::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.s390x::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.ppc64le::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.src::nodejs:18RHSA-2023:4035
nodejsRed Hat / RHEL
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.x86_64::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.s390x::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.x86_64::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.ppc64le::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.s390x::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.ppc64le::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.src::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.aarch64::nodejs:18RHSA-2023:4035
nodejs-debuginfoRed Hat / RHEL
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.x86_64::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.x86_64::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.s390x::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.ppc64le::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.aarch64::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.aarch64::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.ppc64le::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.s390x::nodejs:18RHSA-2023:4035
nodejs-debuginfoRocky
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.ppc64le::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.aarch64::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.aarch64::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.ppc64le::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.s390x::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.x86_64::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.x86_64::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.s390x::nodejs:18RHSA-2023:2654
nodejs-debugsourceRocky
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.s390x::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.s390x::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.aarch64::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.x86_64::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.aarch64::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.x86_64::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.ppc64le::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.ppc64le::nodejs:18RHSA-2023:4035
nodejs-debugsourceRed Hat / RHEL
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.ppc64le::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.s390x::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.x86_64::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.aarch64::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.aarch64::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.x86_64::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.s390x::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.ppc64le::nodejs:18RHSA-2023:4035
nodejs-develRocky
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.ppc64le::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.x86_64::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.s390x::nodejs:18RHSA-2023:2654
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.ppc64le::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.x86_64::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.s390x::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-3.module+el8.8.0+19021+4b8b11cc.aarch64::nodejs:18RHSA-2023:4035
Fixed in:1:18.14.2-2.module+el9.2.0.z+18497+a402347c.aarch64::nodejs:18RHSA-2023:2654

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

Exploit Intelligence

1.22%probability of exploitation in 30 days
67thpercentile

Moderate risk: more likely to be exploited than 67% of all known CVEs.

References

Related Vulnerabilities

Other CWE-20 (Improper Input Validation) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-3400Critical10.0100%KEV + Ransom-
CVE-2021-45105Medium5.9100%-Fix
CVE-2021-44228Critical10.0100%KEV + RansomFix
CVE-2021-21985Critical9.8100%KEV + RansomFix
CVE-2020-3452High7.5100%KEVFix
CVE-2018-7600Critical9.8100%KEV + RansomFix

Common questions

How do I fix CVE-2022-4904?

Published advisories record a fix for 49 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2022-4904 being actively exploited?

Not that we know of. CVE-2022-4904 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.2% is the estimated probability that it will be exploited in the next 30 days. That is higher than 67% of all scored CVEs.

How severe is CVE-2022-4904?

CVE-2022-4904 has a CVSS v3 base score of 8.6, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2022-4904 affect?

Published advisories record a fix for c-ares (Amazon), c-ares-debuginfo (Amazon), c-ares-debugsource (Amazon), c-ares-devel (Amazon), and 45 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2022-4904
CVE-2022-4904 severity badge

Markdown

[![CVE-2022-4904](https://tridentstack.com/cve/badge/CVE-2022-4904.svg)](https://tridentstack.com/cve/CVE-2022-4904)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-4904"><img src="https://tridentstack.com/cve/badge/CVE-2022-4904.svg" alt="CVE-2022-4904"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.