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


0.0
medium

Snyk CVSS

    Attack Complexity High
    Privileges Required High
    Availability High

    Threat Intelligence

    EPSS 0.05% (13th percentile)
Expand this section
Red Hat
4.1 medium

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 ID SNYK-UNMANAGED-CARES-5597615
  • published 24 May 2023
  • disclosed 22 May 2023
  • credit Hannes Moesl

How to fix?

Upgrade c-ares to version 1.91.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.