Description
A flaw was found in libssh. When ProxyCommand is used, an unchecked fork() failure can be stored as process ID -1; during cleanup, signals may then be sent across the caller's accessible process tree, leading to local denial of service.
Published: 2026-07-21
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in libssh triggers when a ProxyCommand is used. An unchecked fork() failure can result in storing a process ID of -1, which is then referenced during cleanup. Signals may be sent to the caller’s accessible process tree, causing the libssh client to crash and resulting in a local denial of service. The weakness is improper handling of fork return values (CWE‑390).

Affected Systems

This vulnerability affects Red Hat Enterprise Linux 8, 9, and 10, as well as Red Hat Hardened Images that include libssh. The packages that ship libssh with the default configuration are impacted. No specific version ranges beyond the distribution releases are provided in the advisory.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, while the EPSS score of less than 1% signals a low likelihood of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires local access to a system that runs libssh with the ProxyCommand feature enabled; an attacker who can execute commands locally can trigger the fault, causing the client process to crash and denying service to the user.

Generated by OpenCVE AI on August 3, 2026 at 01:03 UTC.

Remediation

Vendor Workaround

To mitigate this issue, avoid using the ProxyCommand feature in libssh client configurations. This prevents the vulnerable code path from being exercised, thereby eliminating the risk of local denial of service due to unchecked fork() failures.


OpenCVE Recommended Actions

  • Apply the Red Hat erratum RHSA-2026:42922 to update libssh to a patched version.
  • Remove or disable any ProxyCommand directives from libssh client configuration files to avoid using the vulnerable code path.
  • Restart any running services or sessions that use libssh to ensure the patched library is loaded.

Generated by OpenCVE AI on August 3, 2026 at 01:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6410-1 libssh security update
History

Mon, 27 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Libssh
Libssh libssh
Redhat hardened Images
Vendors & Products Libssh
Libssh libssh
Redhat hardened Images

Thu, 23 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-390
Metrics ssvc

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


Wed, 22 Jul 2026 20:00:00 +0000

Type Values Removed Values Added
References

Wed, 22 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 21 Jul 2026 11:45:00 +0000

Type Values Removed Values Added
Description A flaw was found in libssh. When ProxyCommand is used, an unchecked fork() failure can be stored as process ID -1; during cleanup, signals may then be sent across the caller's accessible process tree, leading to local denial of service.
Title Libssh: libssh: denial of service via unchecked proxycommand fork() failure
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Metrics cvssV3_1

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


Subscriptions

Libssh Libssh
Redhat Enterprise Linux Hardened Images Hummingbird
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-23T14:30:03.721Z

Reserved: 2026-07-07T15:40:24.561Z

Link: CVE-2026-59845

cve-icon Vulnrichment

Updated: 2026-07-23T14:29:56.711Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-21T11:23:44Z

Links: CVE-2026-59845 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T01:15:03Z

Weaknesses
  • CWE-390

    Detection of Error Condition Without Action