CVE-2025-14821 Libssh: libssh: insecure default configuration leads to local man-in-the-middle attacks on windows

High 7.8 Published Updated

Insecure default configuration in libssh on Windows allows local attackers to perform man-in-the-middle attacks and downgrade SSH security.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-14821?

CVE-2025-14821 is a high-severity vulnerability in Redhat Hardened Images, published on 7 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A flaw was found in libssh. This vulnerability allows local man-in-the-middle attacks, security downgrades of SSH (Secure Shell) connections, and manipulation of trusted host information, posing a significant risk to the confidentiality, integrity, and availability of SSH communications via an insecure default configuration on Windows systems where the library automatically loads configuration files from the C:\etc directory, which can be created and modified by unprivileged local users.

Weakness: CWE-427

Which versions are affected by CVE-2025-14821?

It affects 2 products.

Products include Libssh Libssh, Redhat Hardened Images.

How do I fix CVE-2025-14821?

Apply the vendor's patch.

Is CVE-2025-14821 being exploited?

There is no known exploitation of CVE-2025-14821 in the wild and no public exploit code.

All Redhat Hardened Images vulnerabilities

Sources

Also known as GHSA-5jf9-8f86-jhvw, JLSEC-2026-778, MINI-63m5-4cqc-23mv, MINI-qrq6-vxgq-w6gq.

Is CVE-2025-14821 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free