Skip to main content
No exploitation reportedFix available

CVE-2022-4904

No exploitation reported by the sources we read.

  • Published2023-03-06
  • WeaknessCWE-1284 · CWE-20

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2023-03-0623:15CVE publishedNVD

Versions per branch

NVD
Redhat enterprise linux
BranchAffectedFixed in
8.0= 8.0no fix published
9.0= 9.0no fix published
C-ares project c-ares
BranchAffectedFixed in
1.19< 1.19.01.19.0
Fedoraproject fedora
BranchAffectedFixed in
36.x= 36no fix published

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • c-ares
    Affected
    • = unknownno fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-01-05

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • c-aresUbuntu:Pro:20.04:LTSall versions · fixed in 1.15.0-1ubuntu0.5+esm1
  • c-aresUbuntu:Pro:18.04:LTSall versions · fixed in 1.14.0-1ubuntu0.2+esm3
  • c-aresUbuntu:Pro:16.04:LTSall versions · fixed in 1.10.0-3ubuntu0.2+esm4
  • c-aresUbuntu:26.04:LTSall versions · fixed in 1.34.6-1ubuntu0.2
  • c-aresUbuntu:24.04:LTSall versions · fixed in 1.27.0-1.0ubuntu1.1
  • c-aresUbuntu:22.04:LTSall versions · fixed in 1.18.1-1ubuntu0.22.04.1
  • c-aresUbuntu:22.04:LTSall versions · fixed in 1.18.1-1ubuntu0.22.04.4
  • c-aresUbuntu:20.04:LTSall versions · fixed in 1.15.0-1ubuntu0.2

122 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-4904 Red Hat Product Security423 products fixed · 5 known affected

    c-ares: buffer overflow in config_sortlist() due to missing string length check

    c-ares-devel as a component of Red Hat Enterprise Linux 6 · c-ares.src as a component of Red Hat Enterprise Linux 6 · c-ares as a component of Red Hat Enterprise Linux 7 · +2 more

  • ICSA-24-046-11 CISA11 known affected

    Siemens SCALANCE XCM-/XRM-300

    SCALANCE XCH328 (6GK5328-4TS01-2EC2) · SCALANCE XCM324 (6GK5324-8TS01-2AC2) · SCALANCE XCM328 (6GK5328-4TS01-2AC2) · +8 more

  • SSA-806742 Siemens ProductCERT11 known affected

    SSA-806742: Multiple Vulnerabilities in SCALANCE XCM-/XRM-300 before V2.4

    SCALANCE XCH328 (6GK5328-4TS01-2EC2) · SCALANCE XCM324 (6GK5324-8TS01-2AC2) · SCALANCE XCM328 (6GK5328-4TS01-2AC2) · +8 more

  • RHSA-2023:7543 Red Hat Product Security21 products fixed

    Red Hat Security Advisory: c-ares security update

  • RHSA-2023:7368 Red Hat Product Security31 products fixed

    Red Hat Security Advisory: c-ares security update

  • RHSA-2023:7116 Red Hat Product Security21 products fixed

    Red Hat Security Advisory: c-ares security update

11 more advisories

Full record on NVD

Fix

  1. Vendor fix CISA ICSA-24-046-11 · 10 productsUpdate to V2.4 or later version
  2. Vendor fix Siemens ProductCERT SSA-806742 · 10 productsUpdate to V2.4 or later version
  3. Vendor fix Red Hat Product Security RHSA-2023:7543 · 21 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Published
2023-03-06
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-v7h6-g695-5j7q

Frequently asked questions

What is 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 denial of service or a limited impact on confidentiality and integrity.

Is CVE-2022-4904 actively exploited?

Active exploitation of CVE-2022-4904 has not been confirmed. Its EPSS score was 1.2% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-4904?

CVE-2022-4904 has a CVSS v3 base score of 8.6 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H.

Running c-ares? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record