CVEfocus › CVE database › CVE-2025-14821

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

CVSS 7.8 HighEPSS 0.2% (higher than 5% of CVEs)Published 2026-04-07Updated 2026-11-25Assigner: redhat

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.

CWE-427

What to do

None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

18Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10libsshNot affected
vulnerable_code_not_present
Ubuntu 24.04libsshNot affected
vulnerable_code_not_present
Ubuntu 22.04libsshNot affected
vulnerable_code_not_present
Red Hat Enterprise Linux 10libsshNot affected
Red Hat Enterprise Linux 10libssh-configNot affected
Red Hat Enterprise Linux 10libssh-develNot affected
Red Hat Enterprise Linux 9libsshNot affected
Red Hat Enterprise Linux 9libssh-configNot affected
Red Hat Enterprise Linux 9libssh-develNot affected
Red Hat Enterprise Linux 8libsshNot affected
Red Hat Enterprise Linux 8libssh-configNot affected
Red Hat Enterprise Linux 8libssh-develNot affected
Red Hat Enterprise Linux 7libssh2Not affected
Red Hat Enterprise Linux 7libssh2-develNot affected
Red Hat Enterprise Linux 7libssh2-docsNot affected
Red Hat Enterprise Linux 6libssh2Not affected
Red Hat Enterprise Linux 6libssh2-develNot affected
Red Hat Enterprise Linux 6libssh2-docsNot affected

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.