LiveActive security incident?Get immediate response
CVE Record

CVE-2025-5372: Libssh: incorrect return code handling in ssh_kdf() in libssh

A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.

MediumCVSS 5Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

A libssh error-handling flaw can treat failed SSH key derivation as successful, allowing uninitialized cryptographic keys to protect later communications. Under the required conditions, this could weaken session confidentiality, integrity, or availability. The supplied CVSS score is 5.0, reflecting meaningful but constrained risk.

Executive priority

Treat as a scheduled, risk-based remediation rather than an emergency incident unless affected libssh is exposed in critical services. Quickly inventory relevant Red Hat and OpenShift estates, apply applicable vendor updates, and escalate systems handling sensitive SSH traffic or essential operations.

Technical view

In libssh builds using OpenSSL older than 3.0, ssh_kdf() can misinterpret OpenSSL’s failure return value as libssh success. Subsequent communication may use uninitialized key buffers. The CVSS vector indicates network reachability, high attack complexity, low privileges, no user interaction, and limited impact across confidentiality, integrity, and availability.

Likely exposure

Prioritize systems using libssh built with OpenSSL older than 3.0. The bundle identifies affected RHEL 8, RHEL 9, selected extended-support streams, and OpenShift 4 components. RHEL 10 is listed unaffected. RHEL 6 and 7 libssh2 status is unknown and should not be assumed affected.

Exploitation context

The supplied record is not in KEV and provides no evidence of active exploitation. Exploitation is constrained by high complexity and a low-privilege requirement. Exact triggering conditions and practical reliability are not established in the bundle, so exposure should be assessed without assuming routine exploitation.

Researcher notes

The defect is return-code semantic confusion classified as CWE-682. Analysis should focus on the key-derivation failure path and whether uninitialized buffers reach session cryptographic state. The bundle does not establish exploit availability, observed attacks, exact failure triggers, or complete fixed-version boundaries; consult the linked vendor advisories for package-specific resolution.

Mitigation direction

  • Inventory libssh packages, linked applications, and their OpenSSL build versions.
  • Apply the applicable Red Hat security update for each affected supported product stream.
  • Prioritize externally reachable or business-critical services that depend on affected libssh builds.
  • Check vendor guidance for products or package versions not explicitly resolved by the supplied record.

Validation and detection

  • Confirm installed libssh package versions against the applicable Red Hat advisory.
  • Verify whether each libssh build uses an OpenSSL version older than 3.0.
  • Retest dependent SSH services after updating, including connection and authentication workflows.
  • Document RHEL 6 and 7 libssh2 findings separately because their status remains unknown.
Prepared
Confidence
high
Sources
9

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-682: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Container behavior lookup

The affected technology mentions containers, so container-specific ATT&CK technique review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-5372 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
5Timeline events
1ADP providers
8Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5CVSS 3.1MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L1.63.4redhat

Vulnerability scoring details

Base CVSS 3.1 score

5Medium
CVSS 3.1 vector shape for CVE-2025-5372Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. Source timelineredhat

    Reported to Red Hat.

  3. Source timelineredhat

    Made public.

  4. CVE publishedCVE Program

    The CVE record was published.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
libsshlibsshlibssh, 0unaffected
Red HatRed Hat Enterprise Linux 8libssh, 0:0.9.6-16.el8_10affected
Red HatRed Hat Enterprise Linux 8libssh, 0:0.9.6-16.el8_10affected
Red HatRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportlibssh, 0:0.9.4-2.el8_4.2affected
Red HatRed Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onlibssh, 0:0.9.4-2.el8_4.2affected
Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportlibssh, 0:0.9.6-4.el8_6.2affected
Red HatRed Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onlibssh, 0:0.9.6-4.el8_6.2affected
Red HatRed Hat Enterprise Linux 8.8 Telecommunications Update Servicelibssh, 0:0.9.6-13.el8_8.2affected
Red HatRed Hat Enterprise Linux 8.8 Update Services for SAP Solutionslibssh, 0:0.9.6-13.el8_8.2affected
Red HatRed Hat Enterprise Linux 9.0 Update Services for SAP Solutionslibssh, 0:0.9.6-3.el9_0.2affected
Red HatRed Hat Enterprise Linux 10libsshunaffected
Red HatRed Hat Enterprise Linux 6libssh2unknown
Red HatRed Hat Enterprise Linux 7libssh2unknown
Red HatRed Hat Enterprise Linux 9libsshaffected
Red HatRed Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9affected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-682 · source CWE mapping

Incorrect Calculation

Incorrect Calculation represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.