CVE-2023-31130

Buffer Underwrite in ares_inet_net_pton()

State
Published
Severity
4.1 Medium
Published
May 25, 2023
Updated
Feb 13, 2025
Reserved
Apr 24, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.1 MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:HGitHub_M

Weaknesses

  • CWE-124 Buffer Underwrite ('Buffer Underflow')

Affected Products

ProductVersions
c-aresc-ares
  • < 1.19.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.