CVE-2022-4904

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

Published Mar 6, 2023 CVSS 3.1 · 8.6 High EPSS 1.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3323-1 c-ares security update
Ubuntu USN Ubuntu USN USN-5907-1 c-ares vulnerability
Ubuntu USN Ubuntu USN USN-8951-1 c-ares vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics epss

{'score': 0.00138}

epss

{'score': 0.00142}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Dec 2, 2025, 8:25 PM
Reserved
Feb 9, 2023, 12:00 AM
Status
Modified
Published
Mar 6, 2023, 11:15 PM
Modified
Jun 17, 2026, 5:22 AM
Severity
Moderate
Public date
Dec 13, 2022, 12:00 AM