CVE-2021-36370
Midnight Commander SSL/TLS Authentication Bypass
Description
An issue was discovered in Midnight Commander through 4.8.26. When establishing an SFTP connection, the fingerprint of the server is neither checked nor displayed. As a result, a user connects to the server without the ability to verify its authenticity.
INFO
Published Date :
Aug. 30, 2021, 7:15 p.m.
Last Modified :
June 17, 2026, 3:58 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
Affected Products
The following products are affected by CVE-2021-36370
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 2.0 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update the Midnight Commander packages.
- Restart the Midnight Commander service.
Public PoC/Exploit Available at Github
CVE-2021-36370 has a 2 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-36370.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-36370 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-36370
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
SSH-MITM - ssh audits made simple
ssh ssh-server ssh-client mitmproxy mitm-attacks security-audit security-tools mitm proxy ssh-mitm sftp scp security penetration-testing python cve fido2 man-in-the-middle cve-2021-36367 cve-2021-36368
Python Roff Shell CSS HTML JavaScript
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-36370 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-36370 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'n/a', 'product': 'n/a', 'versions': [{'status': 'affected', 'version': 'n/a'}]}] -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://docs.ssh-mitm.at/CVE-2021-36370.html Added Reference https://github.com/MidnightCommander/mc/blob/5c1d3c55dd15356ec7d079084d904b7b0fd58d3e/src/vfs/sftpfs/connection.c#L484 Added Reference https://github.com/MidnightCommander/mc/blob/master/src/vfs/sftpfs/connection.c Added Reference https://mail.gnome.org/archives/mc-devel/2021-August/msg00008.html Added Reference https://midnight-commander.org/ Added Reference https://sourceforge.net/projects/mcwin32/files/ -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Sep. 08, 2021
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:N/I:P/A:N) Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N Changed Reference Type https://docs.ssh-mitm.at/CVE-2021-36370.html No Types Assigned https://docs.ssh-mitm.at/CVE-2021-36370.html Exploit, Third Party Advisory Changed Reference Type https://github.com/MidnightCommander/mc/blob/5c1d3c55dd15356ec7d079084d904b7b0fd58d3e/src/vfs/sftpfs/connection.c#L484 No Types Assigned https://github.com/MidnightCommander/mc/blob/5c1d3c55dd15356ec7d079084d904b7b0fd58d3e/src/vfs/sftpfs/connection.c#L484 Exploit, Third Party Advisory Changed Reference Type https://github.com/MidnightCommander/mc/blob/master/src/vfs/sftpfs/connection.c No Types Assigned https://github.com/MidnightCommander/mc/blob/master/src/vfs/sftpfs/connection.c Exploit, Third Party Advisory Changed Reference Type https://mail.gnome.org/archives/mc-devel/2021-August/msg00008.html No Types Assigned https://mail.gnome.org/archives/mc-devel/2021-August/msg00008.html Release Notes, Third Party Advisory Changed Reference Type https://midnight-commander.org/ No Types Assigned https://midnight-commander.org/ Vendor Advisory Changed Reference Type https://sourceforge.net/projects/mcwin32/files/ No Types Assigned https://sourceforge.net/projects/mcwin32/files/ Product, Third Party Advisory Added CWE NIST CWE-287 Added CPE Configuration OR *cpe:2.3:a:midnight-commander:midnight_commander:*:*:*:*:*:*:*:* versions up to (including) 4.8.26 -
CVE Modified by [email protected]
Sep. 07, 2021
Action Type Old Value New Value Added Reference https://mail.gnome.org/archives/mc-devel/2021-August/msg00008.html [No Types Assigned] Added Reference https://docs.ssh-mitm.at/CVE-2021-36370.html [No Types Assigned]