---
id: CVE-2025-14821
title: A flaw was found in libssh
summary: >-
  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,…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-427
published: '2026-04-07'
updated: '2026-06-25'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-14821'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:7067'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2025-14821'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2423148'
    label: secalert@redhat.com
  - url: >-
      https://www.libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases/
    label: secalert@redhat.com
tags:
  - nvd
epss: 0.00129
epssPercentile: 0.02135
ingestedAt: '2026-06-29T13:24:34.820Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
