CVE-2021-36370
Midnight-commander Midnight Commander vulnerability
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.
Affected products
Midnight Commander. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Midnight-commander Midnight Commander runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- midnight-commander.org/ · Vendor Advisory
- docs.ssh-mitm.at/CVE-2021-36370.html · Exploit
- github.com/MidnightCommander/mc/blob/5c1d3c55dd15356ec7d079084d904b7b0fd58d3e/src/vfs/sftp · Exploit
- github.com/MidnightCommander/mc/blob/master/src/vfs/sftpfs/connection.c · Exploit
- mail.gnome.org/archives/mc-devel/2021-August/msg00008.html · Third Party Advisory
- sourceforge.net/projects/mcwin32/files/ · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-36370
- cve.org/CVERecord?id=CVE-2021-36370
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.