Improper Neutralization of Null Byte or NUL Character Affecting pycares package, versions [,4.2.0)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.26% (67th 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-PYTHON-PYCARES-2933449
  • 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 pycares to version 4.2.0 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 Scores

version 3.1