CVE-2026-59847

Libssh: libssh: integrity downgrade via openssl aes-gcm tag verification

Published Jul 21, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
A flaw was found in libssh. Incorrect AES-GCM finalization checks in builds using the OpenSSL backend can effectively remove integrity protection, allowing an in-path attacker to modify plaintext on the wire without detection.

Analysis

AI-generated

Technical impact

The vulnerability lies in libssh’s use of the OpenSSL backend, where incorrect AES‑GCM finalization checks can effectively disable integrity protection. An attacker who can intercept SSH traffic may alter the plaintext being transmitted without the alteration being detected by the recipient. The flaw creates a potential for undetected data tampering on the wire and is classified as CWE‑253, an incorrect check or verification of the AES‑GCM authentication tag.

Affected Systems

Affected products include Red Hat Enterprise Linux 10, 8, 9, and Red Hat Hardened Images, all of which ship the vulnerable libssh library in their default packages. The associated CPEs list the Hummingbird service and the RHEL operating systems for versions 8 through 10. Users running these distributions without a newer libssh layer are at risk.

Risk and Exploitability

The CVSS score of 5.9 indicates moderate severity, and the EPSS score of less than 1% suggests a low current exploitation probability. The vulnerability is not listed in CISA’s KEV catalog, but its nature allows an in‑path attacker—someone capable of intercepting or modifying traffic between an SSH client and server—to leverage the issue. No public exploit reports are known, but the combination of the weak integrity check and common SSH usage means the risk warrants timely remediation. The only mitigation offered by the vendor is to disable the aes128-gcm@openssh.com and aes256-gcm@openssh.com ciphers, after which the integrity guarantees of the remaining algorithms remain intact.

Remediation

Vendor Workaround

Disable the aes128-gcm@openssh.com and aes256-gcm@openssh.com ciphers.


OpenCVE Recommended Actions

  • Update libssh to the latest RHEL package that contains the fixed OpenSSL AES‑GCM tag verification implementation.
  • Disable aes128-gcm@openssh.com and aes256-gcm@openssh.com ciphers on all SSH servers and clients to prevent the use of the vulnerable algorithms.
  • Review your SSH configuration to enforce the use of secure ciphers and monitor for any abnormal traffic patterns that might indicate attempts to tamper with data.

Generated by OpenCVE AI on August 13, 2026 at 11:47 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-8699-1 libssh vulnerabilities
Ubuntu USN Ubuntu USN USN-9187-1 libssh vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:libssh:libssh:-:*:*:*:*:*:*:* cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*
cpe:2.3:a:libssh:libssh:0.12.0:*:*:*:*:*:*:*
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:8::appstream
cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/o:redhat:enterprise_linux:8::baseos
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
Weaknesses CWE-253
Type Values Removed Values Added
First Time appeared Libssh
Libssh libssh
Redhat hardened Images
Vendors & Products Libssh
Libssh libssh
Redhat hardened Images
Type Values Removed Values Added
Weaknesses CWE-1310
Metrics ssvc

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

Type Values Removed Values Added
Description A flaw was found in libssh. Incorrect AES-GCM finalization checks in builds using the OpenSSL backend can effectively remove integrity protection, allowing an in-path attacker to modify plaintext on the wire without detection.
Title Libssh: libssh: integrity downgrade via openssl aes-gcm tag verification
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.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N'}

Weaknesses
  • CWE-1310

    Missing Ability to Patch ROM Code

  • CWE-253

    Incorrect Check of Function Return Value

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Sep 1, 2026, 8:01 PM
Reserved
Jul 7, 2026, 3:40 PM
Status
Analyzed
Published
Jul 21, 2026, 2:16 PM
Modified
Sep 4, 2026, 7:23 PM
Severity
Moderate
Public date
Jul 21, 2026, 1:02 PM