Vulnerabilities

Vulnerability · CVE-2022-4904

A flaw was found in the c-ares package.

Published Mar 6, 2023 · catalog updated Dec 2, 2025 · the affected product

Last checked Oct 26, 2026. A connected source was read within the last 7 days.

Check if you run it

No confirmed exploitation is on record for CVE-2022-4904. EPSS is 1.22%. Act only if a listed version of the affected product is installed.

Gaps on this record

  • No plain product name is stored. The page cannot tell you which product to check.
  • No version range is stored. A customer cannot check an installed version against this record.
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.

Same product and reporting

Severity
High8.6
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
1.22%
Remediation
Advisory link
Affected products
vendor n/a c-ares

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.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • vendor n/a c-aresversion unspecified

How to fix CVE-2022-4904

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2022-4904. EPSS is 1.22%. Act only if a listed version of the affected product is installed.

Which versions are affected?

Affected version ranges are not on this record. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-20: Improper Input Validation. EPSS 1.22%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Technology hubs

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Dec 2, 2025 · CVE.org

    Updated

    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.

  2. Oct 21, 2026 · Ubuntu Security Notices

    Detected

    CVE-2022-4904 is listed by USN-8951-1: c-ares vulnerabilities.

Sources

  • CVE.orgVulnerability recordCVE-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.

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2022-4904

    30-day exploitation probability 1.22%

    first.org
  • Ubuntu Security NoticesVendor advisoryCVE-2022-4904

    It was discovered that c-ares incorrectly parsed certain SOA replies. A remote attacker could possibly use this issue to cause c-ares to crash, resulting in a denial of service. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2020-22217) It was discovered tha

    ubuntu.com

References

Freshness

Last verified in this catalog Oct 26, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • Ubuntu Security NoticesOct 26, 2026
  • CVE.orgOct 23, 2026
  • FIRST EPSSOct 23, 2026