
CVE catalog
CVE-2023-31130
c-ares: CVE-2023-31130
- Severity
- Medium · CVSS 6.4
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.38% · Oct 25, 2026
c-ares is an asynchronous resolver library. ares_inet_net_pton() is vulnerable to a buffer underflow for certain ipv6 addresses, in particular "0::00:00:00/2" was found to cause an issue. C-ares only uses this function internally for configuration purposes which would require an administrator to configure such an address via ares_set_sortlist(). However, users may externally use ares_inet_net_pton() for other purposes and thus be vulnerable to more severe issues. This issue has been fixed in 1.19.1.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | c-ares | sid | 1.34.9-1 | fixed |
| Debian | c-ares | forky | 1.34.8-1 | fixed |
| Debian | c-ares | trixie | 1.34.5-1+deb13u1 | fixed |
| Debian | c-ares | trixie-security | 1.34.5-1+deb13u1 | fixed |
| Debian | c-ares | bookworm | 1.18.1-3 | fixed |
| Ubuntu | c-ares | pro | 1.13.0-2 | vulnerable |
| Ubuntu | c-ares | pro | 1.13.0-3 | vulnerable |
| Ubuntu | c-ares | pro | 1.14.0-1 | vulnerable |
| Ubuntu | c-ares | pro | 1.14.0-1ubuntu0.1 | vulnerable |
| Ubuntu | c-ares | pro | 1.14.0-1ubuntu0.2 | vulnerable |
| Ubuntu | c-ares | pro | 1.14.0-1ubuntu0.2+esm1 | fixed |
| Ubuntu | c-ares | pro | 1.13.0-2 | vulnerable |
| Ubuntu | c-ares | pro | 1.13.0-3 | vulnerable |
| Ubuntu | c-ares | pro | 1.14.0-1 | vulnerable |
| Ubuntu | c-ares | pro | 1.14.0-1ubuntu0.1 | vulnerable |
| Ubuntu | c-ares | pro | 1.14.0-1ubuntu0.2 | vulnerable |
| Ubuntu | c-ares | pro | 1.14.0-1ubuntu0.2+esm1 | fixed |
| Ubuntu | c-ares | 20.04 | 1.15.0-1build1 | vulnerable |
| Ubuntu | c-ares | 20.04 | 1.15.0-1ubuntu0.1 | vulnerable |
| Ubuntu | c-ares | 20.04 | 1.15.0-1ubuntu0.2 | vulnerable |
| Ubuntu | c-ares | 20.04 | 1.15.0-1ubuntu0.3 | fixed |
| Ubuntu | c-ares | 22.04 | 1.17.1-1ubuntu1 | vulnerable |
| Ubuntu | c-ares | 22.04 | 1.18.1-1 | vulnerable |
| Ubuntu | c-ares | 22.04 | 1.18.1-1build1 | vulnerable |
| Ubuntu | c-ares | 22.04 | 1.18.1-1ubuntu0.22.04.1 | vulnerable |
| Ubuntu | c-ares | 22.04 | 1.18.1-1ubuntu0.22.04.2 | fixed |
| Ubuntu | c-ares | 20.04 | 1.15.0-1build1 | vulnerable |
| Ubuntu | c-ares | 20.04 | 1.15.0-1ubuntu0.1 | vulnerable |
| Ubuntu | c-ares | 20.04 | 1.15.0-1ubuntu0.2 | vulnerable |
| Ubuntu | c-ares | 20.04 | 1.15.0-1ubuntu0.3 | fixed |
| Ubuntu | c-ares | 22.04 | 1.17.1-1ubuntu1 | vulnerable |
| Ubuntu | c-ares | 22.04 | 1.18.1-1 | vulnerable |
| Ubuntu | c-ares | 22.04 | 1.18.1-1build1 | vulnerable |
| Ubuntu | c-ares | 22.04 | 1.18.1-1ubuntu0.22.04.1 | vulnerable |
| Ubuntu | c-ares | 22.04 | 1.18.1-1ubuntu0.22.04.2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | c-ares | source | sid | 1.18.1-3 | not yet assigned | Not reported | Not reported |
| Debian | c-ares | source | forky | 1.18.1-3 | not yet assigned | Not reported | Not reported |
| Debian | c-ares | source | trixie | 1.18.1-3 | not yet assigned | Not reported | Not reported |
| Debian | c-ares | source | bookworm | 1.18.1-3 | not yet assigned | Not reported | Not reported |
| Ubuntu | c-ares | deb | pro | 1.14.0-1ubuntu0.2+esm1 | Not reported | USN-6164-2 | Not reported |
| Ubuntu | c-ares | deb | pro | 1.14.0-1ubuntu0.2+esm1 | Not reported | UBUNTU-CVE-2023-31130 | Not reported |
| Ubuntu | c-ares | deb | 20.04 | 1.15.0-1ubuntu0.3 | Not reported | UBUNTU-CVE-2023-31130 | Not reported |
| Ubuntu | c-ares | deb | 22.04 | 1.18.1-1ubuntu0.22.04.2 | Not reported | UBUNTU-CVE-2023-31130 | Not reported |
| Ubuntu | c-ares | deb | 20.04 | 1.15.0-1ubuntu0.3 | Not reported | USN-6164-1 | Not reported |
| Ubuntu | c-ares | deb | 22.04 | 1.18.1-1ubuntu0.22.04.2 | Not reported | USN-6164-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://cert-portal.siemens.com/productcert/csaf/ssa-806742.json]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2023_4034.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-31130]
- [https://osv.dev/vulnerability/DLA-3471-1]
- [https://osv.dev/vulnerability/DSA-5419-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-31130]
- [https://osv.dev/vulnerability/USN-6164-1]
- [https://osv.dev/vulnerability/USN-6164-2]
- [https://security-tracker.debian.org/tracker/CVE-2023-31130]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-31130.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-2917.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]