CVE-2026-0964

Libssh: improper sanitation of paths received from scp servers

Published Mar 26, 2026 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
A malicious SCP server can send unexpected paths that could make the
client application override local files outside of working directory.
This could be misused to create malicious executable or configuration
files and make the user execute them under specific consequences.

This is the same issue as in OpenSSH, tracked as CVE-2019-6111.

Analysis

AI-generated

Technical impact

A malicious SCP server can deliver filenames that are not properly sanitized by libssh, allowing the client to overwrite arbitrary files outside the intended working directory. This vulnerability could be used to replace system binaries, place malicious executables, or alter configuration files, potentially leading to unauthorized code execution or privilege escalation.

Affected Systems

The issue affects Red Hat Enterprise Linux 6 through 10, Red Hat Hardened Images, and Red Hat OpenShift Container Platform 4. Any system running a vulnerable version of libssh used by SSH/SCP clients on these platforms is potentially impacted.

Risk and Exploitability

The CVSS score is 6.3, indicating moderate severity, and the EPSS score is below 1 %, suggesting a low but non‑zero likelihood of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires a malicious SCP server that sends a crafted path. The client blindly accepts the path and writes to the local filesystem, providing a clear attack vector for overwrite of critical files.

Remediation

Vendor Workaround

Do not use SCP! SCP is deprecated for several years and will be removed in future releases! If you have to, the application MUST validate the path returned from `ssh_scp_request_get_filename()` is the path the application requested. The libssh does not do any writing in this case.


OpenCVE Recommended Actions

  • Update libssh to a patched version (e.g., libssh 0.12.0 or newer).
  • Replace SCP with a more secure transfer method such as SFTP or a protocol that validates filenames.
  • If SCP must be used, add code to verify that the path returned by ssh_scp_request_get_filename() matches the path that was originally requested.

Generated by OpenCVE AI on May 1, 2026 at 05:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4844-1 libssh security update
Debian DSA Debian DSA DSA-6410-1 libssh security update
Ubuntu USN Ubuntu USN USN-8051-2 libssh vulnerabilities
Ubuntu USN Ubuntu USN USN-8051-1 libssh vulnerabilities
History
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:8
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/o:redhat:enterprise_linux:9::baseos
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.2
References
Type Values Removed Values Added
First Time appeared Redhat hardened Images
Redhat openshift Container Platform
CPEs cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:hardened_images:-:*:*:*:*:*:*:*
cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
Vendors & Products Redhat hardened Images
Redhat openshift Container Platform
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L'}

Type Values Removed Values Added
First Time appeared Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat hummingbird
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description No description is available for this CVE. A malicious SCP server can send unexpected paths that could make the client application override local files outside of working directory. This could be misused to create malicious executable or configuration files and make the user execute them under specific consequences. This is the same issue as in OpenSSH, tracked as CVE-2019-6111.
Title libssh: Improper sanitation of paths received from SCP servers Libssh: improper sanitation of paths received from scp servers
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
CPEs cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
References
Type Values Removed Values Added
First Time appeared Libssh
Libssh libssh
Vendors & Products Libssh
Libssh libssh
Type Values Removed Values Added
Description No description is available for this CVE.
Title libssh: Improper sanitation of paths received from SCP servers
Weaknesses CWE-22
References
Metrics threat_severity

None

cvssV3_0

{'score': 5.0, 'vector': 'CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L'}

threat_severity

Moderate

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 5, 2026, 4:11 PM
Reserved
Jan 14, 2026, 9:54 PM
Status
Modified
Published
Mar 26, 2026, 9:17 PM
Modified
Nov 5, 2026, 5:17 PM
Severity
Moderate
Public date
Feb 10, 2026, 6:44 PM