Hardened ImagesApplication · Redhat

CVE-2025-14821

HIGH · 7.0 CVSS v3.1 Published 2026-04-07
Fix available
A fix is available. Upgrade to 0.12.0 or later.
See remediation →
72/100
Remediation priority · Elevated
Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

libssh on Windows has an insecure default configuration that automatically loads SSH configuration files from the C:\etc directory. Because unprivileged local users can create and modify files in this directory, an attacker can manipulate SSH connection settings, perform security downgrades, and conduct man-in-the-middle attacks against SSH communications.

MitigationThe fix requires changing the default configuration file path to a protected directory (such as %ProgramFiles%\libssh or a system-protected location) that is not writable by unprivileged users, and/or adding validation checks before loading configuration files.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Hardened ImagesApplication
Affected:all versions
LibsshApplication
Affected:< 0.12.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
High
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify the installed libssh version
    Run 'ssh -V' or check the DLL/file version of libssh on the system. On Windows, you can also check the properties of the libssh DLL or use a package manager query if installed via package managers.
    Affected if The installed version is Libssh Libssh less than 0.12.0, or you are using a Redhat Hardened Image (all versions are affected).
  2. Confirm the operating system is Windows
    Run 'systeminfo' or check the OS name. This vulnerability specifically affects libssh on Windows platforms.
    Affected if The system is running Windows and uses libssh for SSH connections.
  3. Check if C:\etc directory exists
    Open Command Prompt or PowerShell and run 'dir C:\etc' or 'Test-Path C:\etc' to check if this directory exists on the Windows system.
    Affected if The C:\etc directory exists on the Windows system.
  4. Verify C:\etc directory permissions for unprivileged users
    Run 'icacls C:\etc' or check the Security tab in the folder properties to see if standard (non-admin) users have Write or Create permissions to this directory.
    Affected if Standard non-administrator users have Write, Modify, or Create permissions to C:\etc, allowing them to place malicious config files.
  5. Inspect SSH configuration files in C:\etc
    List files in C:\etc directory (e.g., 'dir C:\etc\*ssh*' or 'Get-ChildItem C:\etc\*ssh*') to see if any SSH config files such as ssh_config, known_hosts, or identity files exist there.
    Affected if SSH configuration files or keys are present in the C:\etc directory, indicating the application may be loading them.

You are affected if you are running libssh on Windows with version less than 0.12.0 (or using Redhat Hardened Images) and the C:\etc directory is writable by unprivileged users, allowing them to inject malicious SSH configuration.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 0.12.0 or later
Fixed in 0.12.0
Interim mitigation

The fix requires changing the default configuration file path to a protected directory (such as %ProgramFiles%\libssh or a system-protected location) that is not writable by unprivileged users, and/or adding validation checks before loading configuration files.

Recommended fix High confidence

libssh 0.12.0 or later

  1. Identify all systems and applications using libssh on Windows
  2. Verify current libssh version by checking library binary or package manager (e.g., dpkg, rpm, or file properties)
  3. Upgrade libssh to version 0.12.0 or later from the official source (www.libssh.org) or your distribution's package repository
  4. For containerized Hardened Images: rebuild images with updated libssh package
  5. After upgrade, verify the new version is loaded correctly and confirm C:\etc directory is no longer used as a default configuration path
  6. Test SSH functionality to ensure the upgrade does not break existing operations
Caveat Review release notes for any API changes or behavioral differences between your current version and 0.12.0; test in non-production environment first

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Hardened Images Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing6.0 h
  • Review / QA3.0 h
18.0 hours of engineering $3,120
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,992.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-14821 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-14821 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data