Vulnerability · Published Mar 6, 2023 · Assigned by redhat

CVE-2022-4904

High 8.6

In plain English

A high-severity improper input validation in c-ares. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 69% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.6High
Exploit odds (30 days)1.2%top 30.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8c-ares1.13.0-8.el8ALSA-2023:7116
AlmaLinux:9c-ares1.19.1-1.el9ALSA-2023:6635
AlmaLinux:8c-ares-devel1.13.0-8.el8ALSA-2023:7116
AlmaLinux:9c-ares-devel1.19.1-1.el9ALSA-2023:6635
AlmaLinux:8nodejs1:16.19.1-1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux:8nodejs1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:8nodejs1:14.21.3-1.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux:9nodejs1:18.14.2-2.module_el9.2.0+29+de583a0bALSA-2023:2654
AlmaLinux:9nodejs1:16.19.1-1.el9_2ALSA-2023:2655
AlmaLinux:8nodejs-devel1:14.21.3-1.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux:8nodejs-devel1:16.19.1-1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux:8nodejs-devel1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:9nodejs-devel1:18.14.2-2.module_el9.2.0+29+de583a0bALSA-2023:2654
AlmaLinux:8nodejs-docs1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:8nodejs-docs1:16.19.1-1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux:8nodejs-docs1:14.21.3-1.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux:9nodejs-docs1:16.19.1-1.el9_2ALSA-2023:2655
AlmaLinux:9nodejs-docs1:18.14.2-2.module_el9.2.0+29+de583a0bALSA-2023:2654
AlmaLinux:8nodejs-full-i18n1:18.14.2-3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:8nodejs-full-i18n1:14.21.3-1.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux:8nodejs-full-i18n1:16.19.1-1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux:9nodejs-full-i18n1:16.19.1-1.el9_2ALSA-2023:2655
AlmaLinux:9nodejs-full-i18n1:18.14.2-2.module_el9.2.0+29+de583a0bALSA-2023:2654
AlmaLinux:9nodejs-libs1:16.19.1-1.el9_2ALSA-2023:2655
AlmaLinux:8nodejs-nodemon2.0.20-3.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux:8nodejs-nodemon2.0.20-3.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux:8nodejs-nodemon2.0.20-2.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:9nodejs-nodemon2.0.20-2.module_el9.2.0+29+de583a0bALSA-2023:2654
AlmaLinux:8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2023:1582
AlmaLinux:8nodejs-packaging23-3.module_el8.4.0+2522+3bd42762ALSA-2023:1743
AlmaLinux:8nodejs-packaging2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:4035
AlmaLinux:9nodejs-packaging2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:2654
AlmaLinux:8nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:4035
AlmaLinux:9nodejs-packaging-bundler2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:2654
AlmaLinux:8npm1:8.19.3-1.16.19.1.1.module_el8.7.0+3496+a59a3324ALSA-2023:1582
AlmaLinux:8npm1:9.5.0-1.18.14.2.3.module_el8.8.0+3587+ee652244ALSA-2023:4035
AlmaLinux:8npm1:6.14.18-1.14.21.3.1.module_el8.7.0+3551+53700ee8ALSA-2023:1743
AlmaLinux:9npm1:9.5.0-1.18.14.2.2.module_el9.2.0+29+de583a0bALSA-2023:2654
AlmaLinux:9npm1:8.19.3-1.16.19.1.1.el9_2ALSA-2023:2655
Debian:12c-ares1.18.1-2DEBIAN-CVE-2022-4904
Debian:13c-ares1.18.1-2DEBIAN-CVE-2022-4904
Debian:14c-ares1.18.1-2DEBIAN-CVE-2022-4904
Rocky Linux:8nodejs1:14.21.3-1.module+el8.7.0+1183+c2c35f0aRLSA-2023:1743
Rocky Linux:8nodejs1:16.19.1-1.module+el8.7.0+1178+d52dba78RLSA-2023:1582
Rocky Linux:8nodejs1:18.14.2-3.module+el8.8.0+1337+7ea46b57RLSA-2023:4035
Rocky Linux:9nodejs1:16.19.1-1.el9_2RLSA-2023:2655
Rocky Linux:8nodejs-nodemon0:2.0.20-3.module+el8.7.0+1178+d52dba78RLSA-2023:1582
Rocky Linux:8nodejs-nodemon0:2.0.20-3.module+el8.7.0+1178+d52dba78RLSA-2023:1743
Rocky Linux:8nodejs-nodemon0:2.0.20-2.module+el8.7.0+1177+510ae886RLSA-2023:4035
Rocky Linux:9nodejs-nodemon0:2.0.20-3.el9_2RLSA-2023:2655
Rocky Linux:8nodejs-packaging0:23-3.module+el8.7.0+1071+4bdda2a8RLSA-2023:1743
Rocky Linux:8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2023:4035
Rocky Linux:8nodejs-packaging0:25-1.module+el8.6.0+1046+80feca58RLSA-2023:1582
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.7.0+40017+f0db1785RLSA-2023:2654
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.7.0+40018+a011993dRLSA-2023:2654
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.7.0+40025+0e0cf6b2RLSA-2023:2654
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.7.0+40022+9ecc286cRLSA-2023:2654
Ubuntu:22.04:LTSc-ares1.18.1-1ubuntu0.22.04.1UBUNTU-CVE-2022-4904
Ubuntu:22.04:LTSc-ares1.18.1-1ubuntu0.22.04.1USN-5907-1
Ubuntu:22.04:LTSc-ares1.18.1-1ubuntu0.22.04.4USN-8951-1
Ubuntu:24.04:LTSc-ares1.27.0-1.0ubuntu1.1USN-8951-1
Ubuntu:26.04:LTSc-ares1.34.6-1ubuntu0.2USN-8951-1

Affected products (as reported)

VendorProductVersions
n/a c-ares unknown

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

References