# CVE-2026-0964: libssh SCP path traversal in ssh_scp_pull_request

Source: https://junglewise.ai/threats/cve-2026-0964-libssh-scp-path-traversal-in-ssh-scp-pull-request  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-03-26. Updated: 2026-05-19  
License: CC BY 4.0 with a link back

CVE-2026-0964 · Severity: medium · CVSS 6.3 · Published 2026-03-26

libssh is a library used by applications to securely transfer files and manage remote systems. A vulnerability in its file transfer component (SCP) allows a malicious server to trick a connecting client into overwriting files on the user's computer outside of the intended folder. This could allow an attacker to replace legitimate configuration files or executables with malicious ones, potentially leading to a full system compromise if the user later runs those files.

Technologies: [Libssh](https://junglewise.ai/threats/technologies/libssh). Vendors: [Libssh](https://junglewise.ai/threats/vendors/libssh).

## Quick answers

**Is CVE-2026-0964 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-0964 being exploited in the wild.

**How severe is CVE-2026-0964?** Medium severity, with a CVSS score of 6.3, published 26 March 2026.

**Which products and versions are affected?** Libssh < 0.11.4, < 0.12.0.

**Is there a fix for CVE-2026-0964?** A patch was published on 2026-02-10: libssh versions 0.11.4 and 0.12.0 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-0964 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-0964?** Check whether you run Libssh at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A path traversal vulnerability exists in the libssh SCP protocol implementation within the ssh_scp_pull_request() function. The issue stems from improper sanitation of file paths received from an SCP server during a download operation. A malicious server can respond with unexpected relative paths (e.g., using dot-dot-slash sequences) that bypass the client's intended destination directory. This allows the server to overwrite local files outside of the working directory. This is a libssh implementation of the same flaw previously identified in OpenSSH as CVE-2019-6111. The vulnerability is fixed in libssh versions 0.11.4 and 0.12.0.

## Affected products

- libssh libssh < 0.11.4, < 0.12.0
- Red Hat Enterprise Linux 10 libssh-0.12.0-2.el10

## Timeline

- 2026-02-04: disclosed: Reported to Red Hat Bugzilla
- 2026-02-10: patched: libssh versions 0.11.4 and 0.12.0 released
- 2026-03-26: advisory: NVD publication date
- 2026-05-19: patched: Red Hat released security updates for RHEL 10

## References

- [https://access.redhat.com/errata/RHSA-2026:18160](https://access.redhat.com/errata/RHSA-2026:18160)
- [https://access.redhat.com/security/cve/CVE-2026-0964](https://access.redhat.com/security/cve/CVE-2026-0964)
- [https://bugzilla.redhat.com/show_bug.cgi?id=2436979](https://bugzilla.redhat.com/show_bug.cgi?id=2436979)
- [https://www.libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases/](https://www.libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases/)

## Related threats

- [libssh authentication bypass in GSSAPIKeyExchange](https://junglewise.ai/threats/cve-2026-59851-libssh-authentication-bypass-in-gssapikeyexchange)
- [libssh use-after-free in channel data callbacks](https://junglewise.ai/threats/cve-2026-59850-libssh-use-after-free-in-channel-data-callbacks)
- [libssh infinite loop in certificate-based authentication](https://junglewise.ai/threats/cve-2026-59849-libssh-infinite-loop-in-certificate-based-authentication)
- [libssh denial of service via memory exhaustion in SFTP client](https://junglewise.ai/threats/cve-2026-59848-libssh-denial-of-service-via-memory-exhaustion-in-sftp-client)
- [libssh integrity protection bypass in OpenSSL AES-GCM backend](https://junglewise.ai/threats/cve-2026-59847-libssh-integrity-protection-bypass-in-openssl-aes-gcm-backend)
