Improper Neutralization of Null Byte or NUL Character Affecting c-ares package, versions [0,1.17.2)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.27% (68th 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-2327382
  • published29 Dec 2021
  • disclosed23 Nov 2021
  • creditPhilipp Jeitner, Haya Shulman

Introduced: 23 Nov 2021

CVE-2021-3672  (opens in a new tab)
CWE-158  (opens in a new tab)

How to fix?

Upgrade c-ares to version 1.17.2 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Null Byte or NUL Character due to a missing input validation check of host names returned by DNS, which can lead to output of wrong hostnames that may potentially allow Domain Hijacking.

CVSS Base Scores

version 3.1