Buffer Under-read Affecting c-ares package, versions [,1.27.0)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.05% (18th 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-6303325
  • published28 Feb 2024
  • disclosed23 Feb 2024
  • creditVojtěch Vobr

Introduced: 23 Feb 2024

CVE-2024-25629  (opens in a new tab)
CWE-127  (opens in a new tab)

How to fix?

Upgrade c-ares to version 1.27.0 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Under-read due to the ares__read_line function. An attacker can cause a crash by inserting an embedded NULL character as the first character in a new line in local configuration files such as /etc/resolv.conf, /etc/nsswitch.conf, the HOSTALIASES file.

Note: It can also affect the /etc/hosts file if using a version prior to 1.27.0.

References

CVSS Scores

version 3.1