synced 14 MIN AGO
01 Record

CVE-2022-4904

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

HighPUBLISHEDCNA: redhat
CNA base score8.6 CVSS v3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

02 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

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
  • Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
1.22% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 68.2% of scored records. A rank, not a probability.
NVD base score
8.6 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
NVD analysis status
Modified. NVD last modified this record on 2026-06-17.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2023-03-06 00:00Z3 YR AGO
Last updated
2025-12-02 20:25Z11 MO AGO
Reserved
2023-02-09
Assigning CNA
redhat
Record state
PUBLISHED
Severity
High (CVSS 8.6)
CNA CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Weaknesses
  • CWE-20Improper Input ValidationClass
  • CWE-1284Improper Validation of Specified Quantity in InputBase
  • CWE-805Buffer Access with Incorrect Length ValueBase
Data version
5.2
Document digest
f4d5cf7f5135e10e862567851e40e1e3aa3268369239465cdd0404bee4e5e1d7

05 Affected products

VendorProductVersionsPlatforms
n/ac-aresunknown—

06 References

07 Fixed in

AlmaLinux 8

  • c-ares
    Fixed in 1.13.0-8.el8
  • c-ares-devel
    Fixed in 1.13.0-8.el8
  • nodejs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:14.21.3-1.module_el8.7.0+3551+53700ee8
    • Affected before 1:16.19.1-1.module_el8.7.0+3496+a59a3324
    • Affected before 1:18.14.2-3.module_el8.8.0+3587+ee652244
  • nodejs-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:14.21.3-1.module_el8.7.0+3551+53700ee8
    • Affected before 1:16.19.1-1.module_el8.7.0+3496+a59a3324
    • Affected before 1:18.14.2-3.module_el8.8.0+3587+ee652244
  • nodejs-docs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:14.21.3-1.module_el8.7.0+3551+53700ee8
    • Affected before 1:16.19.1-1.module_el8.7.0+3496+a59a3324
    • Affected before 1:18.14.2-3.module_el8.8.0+3587+ee652244
  • nodejs-full-i18n
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:14.21.3-1.module_el8.7.0+3551+53700ee8
    • Affected before 1:16.19.1-1.module_el8.7.0+3496+a59a3324
    • Affected before 1:18.14.2-3.module_el8.8.0+3587+ee652244
  • nodejs-nodemon
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.0.20-2.module_el8.8.0+3587+ee652244
    • Affected before 2.0.20-3.module_el8.7.0+3496+a59a3324
    • Affected before 2.0.20-3.module_el8.7.0+3551+53700ee8
  • nodejs-packaging
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2021.06-4.module_el8.7.0+3343+ea2b7901
    • Affected before 23-3.module_el8.4.0+2522+3bd42762
    • Affected before 25-1.module_el8.5.0+2605+45d748af
  • nodejs-packaging-bundler
    Fixed in 2021.06-4.module_el8.7.0+3343+ea2b7901
  • npm
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:6.14.18-1.14.21.3.1.module_el8.7.0+3551+53700ee8
    • Affected before 1:8.19.3-1.16.19.1.1.module_el8.7.0+3496+a59a3324
    • Affected before 1:9.5.0-1.18.14.2.3.module_el8.8.0+3587+ee652244

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

AlmaLinux 9

  • c-ares
    Fixed in 1.19.1-1.el9
  • c-ares-devel
    Fixed in 1.19.1-1.el9
  • nodejs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.19.1-1.el9_2
    • Affected before 1:18.14.2-2.module_el9.2.0+29+de583a0b
  • nodejs-devel
    Fixed in 1:18.14.2-2.module_el9.2.0+29+de583a0b
  • nodejs-docs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.19.1-1.el9_2
    • Affected before 1:18.14.2-2.module_el9.2.0+29+de583a0b
  • nodejs-full-i18n
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.19.1-1.el9_2
    • Affected before 1:18.14.2-2.module_el9.2.0+29+de583a0b
  • nodejs-libs
    Fixed in 1:16.19.1-1.el9_2
  • nodejs-nodemon
    Fixed in 2.0.20-2.module_el9.2.0+29+de583a0b
  • nodejs-packaging
    Fixed in 2021.06-4.module_el9.1.0+13+d9a595ea
  • nodejs-packaging-bundler
    Fixed in 2021.06-4.module_el9.1.0+13+d9a595ea
  • npm
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:8.19.3-1.16.19.1.1.el9_2
    • Affected before 1:9.5.0-1.18.14.2.2.module_el9.2.0+29+de583a0b

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 8

  • c-ares
    Fixed in 1.13.0-8.el8
  • c-ares-devel
    Fixed in 1.13.0-8.el8
  • nodejs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:14.21.3-1.module_el8.7.0+3551+53700ee8
    • Affected before 1:16.19.1-1.module_el8.7.0+3496+a59a3324
    • Affected before 1:18.14.2-3.module_el8.8.0+3587+ee652244
  • nodejs-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:14.21.3-1.module_el8.7.0+3551+53700ee8
    • Affected before 1:16.19.1-1.module_el8.7.0+3496+a59a3324
    • Affected before 1:18.14.2-3.module_el8.8.0+3587+ee652244
  • nodejs-docs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:14.21.3-1.module_el8.7.0+3551+53700ee8
    • Affected before 1:16.19.1-1.module_el8.7.0+3496+a59a3324
    • Affected before 1:18.14.2-3.module_el8.8.0+3587+ee652244
  • nodejs-full-i18n
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:14.21.3-1.module_el8.7.0+3551+53700ee8
    • Affected before 1:16.19.1-1.module_el8.7.0+3496+a59a3324
    • Affected before 1:18.14.2-3.module_el8.8.0+3587+ee652244
  • nodejs-nodemon
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.0.20-2.module_el8.8.0+3587+ee652244
    • Affected before 2.0.20-3.module_el8.7.0+3496+a59a3324
    • Affected before 2.0.20-3.module_el8.7.0+3551+53700ee8
  • nodejs-packaging
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2021.06-4.module_el8.7.0+3343+ea2b7901
    • Affected before 23-3.module_el8.4.0+2522+3bd42762
    • Affected before 25-1.module_el8.5.0+2605+45d748af
  • nodejs-packaging-bundler
    Fixed in 2021.06-4.module_el8.7.0+3343+ea2b7901
  • npm
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:6.14.18-1.14.21.3.1.module_el8.7.0+3551+53700ee8
    • Affected before 1:8.19.3-1.16.19.1.1.module_el8.7.0+3496+a59a3324
    • Affected before 1:9.5.0-1.18.14.2.3.module_el8.8.0+3587+ee652244

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 9

  • c-ares
    Fixed in 1.19.1-1.el9
  • c-ares-devel
    Fixed in 1.19.1-1.el9
  • nodejs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.19.1-1.el9_2
    • Affected before 1:18.14.2-2.module_el9.2.0+29+de583a0b
  • nodejs-devel
    Fixed in 1:18.14.2-2.module_el9.2.0+29+de583a0b
  • nodejs-docs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.19.1-1.el9_2
    • Affected before 1:18.14.2-2.module_el9.2.0+29+de583a0b
  • nodejs-full-i18n
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.19.1-1.el9_2
    • Affected before 1:18.14.2-2.module_el9.2.0+29+de583a0b
  • nodejs-libs
    Fixed in 1:16.19.1-1.el9_2
  • nodejs-nodemon
    Fixed in 2.0.20-2.module_el9.2.0+29+de583a0b
  • nodejs-packaging
    Fixed in 2021.06-4.module_el9.1.0+13+d9a595ea
  • nodejs-packaging-bundler
    Fixed in 2021.06-4.module_el9.1.0+13+d9a595ea
  • npm
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:8.19.3-1.16.19.1.1.el9_2
    • Affected before 1:9.5.0-1.18.14.2.2.module_el9.2.0+29+de583a0b

Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Debian 12

  • c-ares
    Fixed in 1.18.1-2

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • c-ares
    Fixed in 1.18.1-2

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • c-ares
    Fixed in 1.18.1-2

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 18.04 LTS

  • c-ares
    Fixed in 1.14.0-1ubuntu0.2

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 20.04 LTS

  • c-ares
    Fixed in 1.15.0-1ubuntu0.2

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 22.04 LTS

  • c-ares
    Fixed in 1.18.1-1ubuntu0.22.04.1

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 16.04 LTS

  • c-ares
    Fixed in 1.10.0-3ubuntu0.2+esm4
    Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.