CVEfocus › CVE database › CVE-2022-4904

CVE-2022-4904

CVSS 8.6 HighEPSS 1.2% (higher than 70% of CVEs)Published 2023-03-06Updated 2025-12-02Assigner: redhat

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.

CWE-20

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

54Fixed
2Fix pending
4Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04c-aresNot affected
vulnerable_code_not_present
Ubuntu 25.10c-aresNot affected
vulnerable_code_not_present
Ubuntu 24.04c-aresNot affected
vulnerable_code_not_present
Ubuntu 22.04c-aresFixed1.18.1-1ubuntu0.22.04.1UBUNTU-CVE-2022-4904
Ubuntu 20.04c-aresFixed1.15.0-1ubuntu0.2UBUNTU-CVE-2022-4904
Ubuntu 18.04c-aresFixed1.14.0-1ubuntu0.2UBUNTU-CVE-2022-4904
Ubuntu 16.04c-aresFix pending1.10.0-3ubuntu0.2+esm4 (Ubuntu Pro)UBUNTU-CVE-2022-4904
Ubuntu 14.04c-aresFix pending
Debian 14c-aresFixed1.18.1-2DEBIAN-CVE-2022-4904
Debian 13c-aresFixed1.18.1-2DEBIAN-CVE-2022-4904
Debian 12c-aresFixed1.18.1-2DEBIAN-CVE-2022-4904
Red Hat Enterprise Linux 9c-aresFixed0:1.19.1-1.el9RHSA-2023:6635
Red Hat Enterprise Linux 9c-ares-develFixed0:1.19.1-1.el9RHSA-2023:6635
Red Hat Enterprise Linux 9nodejsFixed1:18.14.2-2.module+el9.2.0.z+18497+a402347cRHSA-2023:2655
Red Hat Enterprise Linux 9nodejs-develFixed1:18.14.2-2.module+el9.2.0.z+18497+a402347cRHSA-2023:2654
Red Hat Enterprise Linux 9nodejs-docsFixed1:16.19.1-1.el9_2RHSA-2023:2654
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:16.19.1-1.el9_2RHSA-2023:2654
Red Hat Enterprise Linux 9nodejs-libsFixed1:16.19.1-1.el9_2RHSA-2023:2655
Red Hat Enterprise Linux 9nodejs-nodemonFixed0:2.0.20-2.module+el9.2.0.z+18497+a402347cRHSA-2023:2655
Red Hat Enterprise Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2023:2654
Red Hat Enterprise Linux 9nodejs-packaging-bundlerFixed0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2023:2654
Red Hat Enterprise Linux 9npmFixed1:8.19.3-1.16.19.1.1.el9_2RHSA-2023:2654
Red Hat Enterprise Linux 8c-aresFixed0:1.13.0-8.el8RHSA-2023:7116
Red Hat Enterprise Linux 8c-ares-develFixed0:1.13.0-8.el8RHSA-2023:7116
Red Hat Enterprise Linux 8nodejsFixed1:16.19.1-1.module+el8.7.0+18373+704f5cefRHSA-2023:1743
Red Hat Enterprise Linux 8nodejs-develFixed1:16.19.1-1.module+el8.7.0+18373+704f5cefRHSA-2023:4035
Red Hat Enterprise Linux 8nodejs-docsFixed1:14.21.3-1.module+el8.7.0+18531+81d21ca6RHSA-2023:4035
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:16.19.1-1.module+el8.7.0+18373+704f5cefRHSA-2023:1743
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:2.0.20-2.module+el8.8.0+18432+27f188acRHSA-2023:1743
Red Hat Enterprise Linux 8nodejs-packagingFixed0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2023:1743
Red Hat Enterprise Linux 8nodejs-packaging-bundlerFixed0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:4035
Red Hat Enterprise Linux 8npmFixed1:9.5.0-1.18.14.2.3.module+el8.8.0+19021+4b8b11ccRHSA-2023:1743
Red Hat Enterprise Linux 7c-aresWill not fix
Will not fix
Red Hat Enterprise Linux 7c-ares-develWill not fix
Will not fix
Red Hat Enterprise Linux 6c-aresWill not fix
Out of support scope
Red Hat Enterprise Linux 6c-ares-develWill not fix
Out of support scope
AlmaLinux 9c-aresFixed1.19.1-1.el9ALSA-2023:6635
AlmaLinux 9c-ares-develFixed1.19.1-1.el9ALSA-2023:6635
AlmaLinux 9nodejsFixed1:16.19.1-1.el9_2ALSA-2023:2654
AlmaLinux 9nodejs-develFixed1:18.14.2-2.module_el9.2.0+29+de583a0bALSA-2023:2654
AlmaLinux 9nodejs-docsFixed1:16.19.1-1.el9_2ALSA-2023:2654
AlmaLinux 9nodejs-full-i18nFixed1:18.14.2-2.module_el9.2.0+29+de583a0bALSA-2023:2655
AlmaLinux 9nodejs-libsFixed1:16.19.1-1.el9_2ALSA-2023:2655
AlmaLinux 9nodejs-nodemonFixed2.0.20-2.module_el9.2.0+29+de583a0bALSA-2023:2654
AlmaLinux 9nodejs-packagingFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:2654
AlmaLinux 9nodejs-packaging-bundlerFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:2654
AlmaLinux 9npmFixed1:9.5.0-1.18.14.2.2.module_el9.2.0+29+de583a0bALSA-2023:2655
AlmaLinux 8c-aresFixed1.13.0-8.el8ALSA-2023:7116
AlmaLinux 8c-ares-develFixed1.13.0-8.el8ALSA-2023:7116
AlmaLinux 8nodejsFixed1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:1743
AlmaLinux 8nodejs-develFixed1:16.19.1-1.module_el8.7.0+3496+a59a3324ALSA-2023:1743
AlmaLinux 8nodejs-docsFixed1:16.19.1-1.module_el8.7.0+3496+a59a3324ALSA-2023:4035
AlmaLinux 8nodejs-full-i18nFixed1:14.21.3-1.module_el8.7.0+3551+53700ee8ALSA-2023:4035
AlmaLinux 8nodejs-nodemonFixed2.0.20-3.module_el8.7.0+3551+53700ee8ALSA-2023:4035
AlmaLinux 8nodejs-packagingFixed23-3.module_el8.4.0+2522+3bd42762ALSA-2023:4035
AlmaLinux 8nodejs-packaging-bundlerFixed2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:4035
AlmaLinux 8npmFixed1:8.19.3-1.16.19.1.1.module_el8.7.0+3496+a59a3324ALSA-2023:1743
Rocky Linux 9nodejsFixed1:16.19.1-1.el9_2RLSA-2023:2655
Rocky Linux 9nodejs-nodemonFixed0:2.0.20-3.el9_2RLSA-2023:2655
Rocky Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.7.0+40022+9ecc286cRLSA-2023:2654
Rocky Linux 8nodejsFixed1:16.19.1-1.module+el8.7.0+1178+d52dba78RLSA-2023:4035
Rocky Linux 8nodejs-nodemonFixed0:2.0.20-3.module+el8.7.0+1178+d52dba78RLSA-2023:4035
Rocky Linux 8nodejs-packagingFixed0:25-1.module+el8.6.0+1046+80feca58RLSA-2023:4035

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.