High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-4904
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 01:01 UTC · Revision 1
Source evidence
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.
osv:CVE-2022-4904
Complete source record
{
"id": "127e2c5e9c0e6bd597aebe668e4a87bcc0a5f395200481982327f7341f8cf90a",
"url": "https://osv.dev/vulnerability/CVE-2022-4904",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2022-4904",
"summary": "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.",
"evidence": "osv:CVE-2022-4904",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2022-4904",
"aliases": [
"CVE-2022-4904"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/c-ares/c-ares",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "fddf01938d3789e06cc1c3774e4cd0c7d2a89976"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:c-ares_project:c-ares:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.19.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"cares-1_18_1",
"cares-1_18_0",
"cares-1_17_2",
"cares-1_17_1",
"c-ares-1_17_0",
"cares-1_16_1",
"cares-1_16_0",
"cares-1_15_0",
"cares-1_14_0",
"cares-1_13_0",
"cares-1_12_0",
"cares-1_11_0",
"cares-1_11_0-rc1",
"cares-1_10_0",
"cares-1_9_1",
"cares-1_9_0",
"cares-1_8_0",
"cares-1_7_5",
"cares-1_7_4",
"cares-1_7_3",
"cares-1_7_2",
"cares-1_7_1",
"curl-7_20_0",
"cares-1_7_0",
"curl-7_19_7",
"curl-7_19_6",
"curl-7_19_5",
"curl-7_19_4",
"curl-7_19_3",
"cares-1_6_0",
"curl-7_19_2",
"curl-7_19_0",
"cares-1_5_3",
"curl-7_18_2",
"cares-1_5_2",
"curl-7_18_1",
"curl-7_18_0",
"cares-1_5_1",
"cares-1_5_0",
"curl-7_17_1",
"curl-7_17_0",
"curl-7_16_4",
"curl-7_16_3",
"cares-1_4_0",
"curl-7_16_2",
"curl-7_16_1",
"cares-1_3_2",
"curl-7_16_0",
"curl-7_15_6-prepipeline",
"curl-7_15_5",
"cares-1_3_1",
"curl-7_15_4",
"curl-7_15_3",
"curl-7_15_1",
"curl-7_15_0",
"curl-7_14_1",
"curl-7_14_0",
"curl-7_13_2",
"curl-7_13_1",
"curl-7_13_0",
"cares-1_2_1",
"curl-7_12_2",
"curl-7_12_1",
"curl-7_12_0",
"c-ares-1_2_0",
"curl-7_11_1",
"cares-1_1_0",
"curl-7_11_0",
"curl-7_10_8"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-4904.json"
}
}
],
"modified": "2026-10-28T02:30:41.550615904Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4904.json",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/33LDNS6RPOPP36Z4MPWXALUQZXJCWJS2/",
"https://nvd.nist.gov/vuln/detail/CVE-2022-4904",
"https://security.gentoo.org/glsa/202401-02",
"https://bugzilla.redhat.com/show_bug.cgi?id=2168631",
"https://github.com/c-ares/c-ares/issues/496"
],
"provider_metadata": {
"cwe_ids": [
"CWE-20"
],
"cna_assigner": "redhat",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/4xxx/CVE-2022-4904.json"
}
},
"related_cves": [
{
"value": "CVE-2022-4904",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 508861,
"published_at": "2023-03-06T00:00:00+00:00"
}