Buffer Underwrite (Buffer Underflow) Affecting c-ares package, versions [,1.19.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-CARES-5597615
  • published24 May 2023
  • disclosed22 May 2023
  • creditHannes Moesl

Introduced: 22 May 2023

CVE-2023-31130  (opens in a new tab)
CWE-124  (opens in a new tab)

How to fix?

Upgrade c-ares to version 1.19.1 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Underwrite (Buffer Underflow) in the ares_inet_net_pton() function. 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.

CVSS Base Scores

version 3.1