CVE-2020-11939
NixOS vulnerability analysis and mitigation

Overview

The vulnerability CVE-2020-11939 affects nDPI through version 3.2 Stable, specifically in its SSH protocol dissector implementation. The vulnerability involves multiple KEXINIT integer overflows that result in a controlled remote heap overflow in the concathashstring function within ssh.c. This security flaw was discovered in March 2020 and publicly disclosed in April 2020 (GitHub Security Lab).

Technical details

The vulnerability stems from multiple integer overflow vulnerabilities in the SSH protocol dissector's handling of KEXINIT messages. The issue occurs when processing both server-to-client and client-to-server directions, where the code maintains a 16-bit unsigned integer offset variable that can be manipulated through controlled length values. The vulnerability specifically manifests in the concathashstring function in ssh.c, where arithmetic operations on the offset variable can lead to integer wraparound, bypassing intended bounds checks (GitHub Security Lab). The vulnerability has been assigned a CVSS v3.1 Base Score of 9.8 (CRITICAL) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability can be exploited to achieve full Remote Code Execution (RCE) against any network inspection stack that is linked against nDPI and uses it to perform network traffic analysis. 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 makes this a particularly severe vulnerability (GitHub Security Lab).

Mitigation and workarounds

The vulnerability was patched in nDPI through a commit that addresses the integer overflow issues. The fix involves changing the offset variable from a 16-bit to a 32-bit unsigned integer and adding additional overflow checks in the concathashstring function (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61804HIGH7.8
  • NixOSNixOS
  • animate
NoYesOct 15, 2025
CVE-2025-54279HIGH7.8
  • NixOSNixOS
  • animate
NoYesOct 15, 2025
CVE-2025-54196MEDIUM6.1
  • NixOSNixOS
  • connect
NoYesOct 14, 2025
CVE-2025-54270MEDIUM5.5
  • NixOSNixOS
  • animate
NoYesOct 15, 2025
CVE-2025-54269MEDIUM5.5
  • NixOSNixOS
  • animate
NoYesOct 15, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management