Skip to content
Heist/ feed
Back to feed
HighFix available

c-ares — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-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.

Products
c-ares
Affected versions
Not specified
Fixed versions
1.18.1-2
CVEs
CVE-2022-4904
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 15:35 UTC · Revision 1

Source evidence

DEBIAN-CVE-2022-4904

core-osv · Original source

Published 6 Mar 2023, 23:15 UTC

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:DEBIAN-CVE-2022-4904

c-ares

Fixed versions: 1.18.1-2

c-ares

Fixed versions: 1.18.1-2

c-ares

Fixed versions: 1.18.1-2

Complete source record
{
  "id": "607e766864670707cea8ac493fbd854c248a9b13581a65fa96ac47d7d3a944ab",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-4904",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-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:DEBIAN-CVE-2022-4904",
    "products": [
      {
        "name": {
          "value": "c-ares",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.18.1-2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "c-ares",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.18.1-2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "c-ares",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.18.1-2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2022-4904",
      "aliases": [
        "DEBIAN-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": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.18.1-2"
                }
              ]
            }
          ],
          "package": {
            "name": "c-ares",
            "purl": "pkg:deb/debian/c-ares?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-4904.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.18.1-2"
                }
              ]
            }
          ],
          "package": {
            "name": "c-ares",
            "purl": "pkg:deb/debian/c-ares?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-4904.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.18.1-2"
                }
              ]
            }
          ],
          "package": {
            "name": "c-ares",
            "purl": "pkg:deb/debian/c-ares?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-4904.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T08:03:08.228476368Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-4904"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2022-4904"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-4904",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 325327,
  "published_at": "2023-03-06T23:15:11.39+00:00"
}