CVE-2020-11940

Source
https://nvd.nist.gov/vuln/detail/CVE-2020-11940
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-11940.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2020-11940
Downstream
Related
Published
2020-04-23T15:15:14.153Z
Modified
2025-11-20T11:08:31.741232Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In nDPI through 3.2 Stable, an out-of-bounds read in concathashstring in ssh.c can be exploited by a network-positioned attacker that can send malformed SSH protocol messages on a network segment monitored by nDPI's library.

References

Affected packages

Git / github.com/ntop/ndpi

Affected ranges

Type
GIT
Repo
https://github.com/ntop/ndpi
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.6
1.7
1.8

Database specific

vanir_signatures

[
    {
        "signature_version": "v1",
        "target": {
            "file": "src/lib/protocols/ssh.c"
        },
        "deprecated": false,
        "source": "https://github.com/ntop/ndpi/commit/3bbb0cd3296023f6f922c71d21a1c374d2b0a435",
        "id": "CVE-2020-11940-ab9df01b",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "112669976753241023190343929122047825687",
                "55443568218778909503912343298953271493",
                "55090678806972166490394924557498809564",
                "277751600410098970889155938586316082601",
                "54290705435265989777103410977247831576",
                "252017902324097163463410608857860806490",
                "52780231211016711509913009326243001039",
                "50507861911860217230422209087450536983",
                "252017902324097163463410608857860806490",
                "52426658710956212032122656176110875829",
                "54290705435265989777103410977247831576",
                "252017902324097163463410608857860806490",
                "52780231211016711509913009326243001039",
                "50507861911860217230422209087450536983",
                "252017902324097163463410608857860806490",
                "52780231211016711509913009326243001039",
                "50507861911860217230422209087450536983"
            ]
        }
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "src/lib/protocols/ssh.c",
            "function": "concat_hash_string"
        },
        "deprecated": false,
        "source": "https://github.com/ntop/ndpi/commit/3bbb0cd3296023f6f922c71d21a1c374d2b0a435",
        "id": "CVE-2020-11940-e0e7c99f",
        "signature_type": "Function",
        "digest": {
            "function_hash": "176786221778472667275115361113617528528",
            "length": 3015.0
        }
    }
]