# CVE-2023-31130: Buffer Underwrite in ares_inet_net_pton()

- Severity: Medium 4.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2023-05-25T21:45:42.645Z
- Modified: 2026-06-17T05:56:20.050Z
- Weaknesses: CWE-124, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- c-ares c-ares: < 1.19.1
- c-ares_project c-ares: before 1.19.1
- fedoraproject fedora: 37; 38
- debian debian_linux: 10.0; 11.0

## Every score

- GitHub_M: CVSS:3.1 4.1 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/c-ares/c-ares/security/advisories/GHSA-x6mf-cxr9-8q6v> (third-party-advisory)
- <https://github.com/c-ares/c-ares/releases/tag/cares-1_19_1> (release-notes)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Z5XFNXTNPTCBBVXFDNZQVLLIE6VRBY/> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UBFWILTA33LOSV23P44FGTQQIDRJHIY7/> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2023/dsa-5419> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00034.html> (mailing-list)
- <https://security.gentoo.org/glsa/202310-09> (third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20240605-0005/>

## Sources

- CVE List: [CVE-2023-31130](https://www.cve.org/CVERecord?id=CVE-2023-31130), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-31130](https://nvd.nist.gov/vuln/detail/CVE-2023-31130), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-31130 · Whole record: https://cve.day/CVE-2023-31130.json · Rebuilt by cve.day 2026-11-25T22:58:24.385Z
