Integer Overflow or Wraparound Affecting ntop/ndpi package, versions [,3.4)


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
1.03% (84th 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-NTOPNDPI-2366529
  • published26 Jan 2022
  • disclosed23 Apr 2020
  • creditUnknown

Introduced: 23 Apr 2020

CVE-2020-11939  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade ntop/ndpi to version 3.4 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. In nDPI through 3.2 Stable, the SSH protocol dissector has multiple KEXINIT integer overflows that result in a controlled remote heap overflow in concat_hash_string in ssh.c. Due to the granular nature of the overflow primitive and the ability to control both the contents and layout of the nDPI library's heap memory through remote input, this vulnerability may be abused to achieve full Remote Code Execution against any network inspection stack that is linked against nDPI and uses it to perform network traffic analysis.

CVSS Scores

version 3.1