Libssh: invalid return code for chacha20 poly1305 with openssl backend
Products / packages libssh · Red Hat Enterprise Linux 10 · Red Hat Enterprise Linux 10.0 Extended Update Support · 16 more
Published
Severity and exploitation
KEV coverage does not rule out exploitation.
Assessment vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HSeverity
high8.1CVSS measures technical severity, not the likelihood of an attack.
Known exploitation
Not listed in the checked CISA KEV catalog
Absence from CISA KEV does not rule out attacks.
Public exploit
Not established by this record
Missing evidence does not mean no public exploit exists.
Remediation
Source guidance available
Review the recorded instructions. Guidance may be a workaround rather than a fixed version.
What this means
Libssh versions before 0.11.2 are affected by a flaw when using the ChaCha20 cipher with the OpenSSL library, potentially leading to undefined behavior. An attacker must exhaust the heap space to trigger this issue. The flaw may compromise data confidentiality and integrity or cause crashes.
Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.Attack conditions
No attack-condition excerpt has been identified here. Review the full source description and references for authentication, network access, and configuration requirements.
Review supporting sources →Affected versions
Check the exact model, release, and any platform requirements against your installation.
Vendor not supplied · redhat
libssh
1 range
Vendor not supplied · redhat
libssh
Compare with this publisher’s ranges. This does not inspect your installation.
affected
0.10.0 → before 0.11.2
semver versions
Other versions: unaffected
Red Hat · redhat
Red Hat Enterprise Linux 10
1 range
Red Hat · redhat
Red Hat Enterprise Linux 10
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
0:0.11.1-5.el10_1 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/o:redhat:enterprise_linux:10.1Red Hat · redhat
Red Hat Enterprise Linux 10.0 Extended Update Support
1 range
Red Hat · redhat
Red Hat Enterprise Linux 10.0 Extended Update Support
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
0:0.11.1-4.el10_0.1 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/o:redhat:enterprise_linux_eus:10.0Red Hat · redhat
Red Hat Enterprise Linux 9
1 range
Red Hat · redhat
Red Hat Enterprise Linux 9
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
0:0.10.4-17.el9_7 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:enterprise_linux:9::appstreamcpe:/o:redhat:enterprise_linux:9::baseosRed Hat · redhat
Red Hat Enterprise Linux 9
1 range
Red Hat · redhat
Red Hat Enterprise Linux 9
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
0:0.10.4-17.el9_7 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:enterprise_linux:9::appstreamcpe:/o:redhat:enterprise_linux:9::baseosRed Hat · redhat
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
1 range
Red Hat · redhat
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
0:0.10.4-9.el9_2.2 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:rhel_e4s:9.2::appstreamcpe:/o:redhat:rhel_e4s:9.2::baseosRed Hat · redhat
Red Hat Enterprise Linux 9.4 Extended Update Support
1 range
Red Hat · redhat
Red Hat Enterprise Linux 9.4 Extended Update Support
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
0:0.10.4-13.el9_4.2 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:rhel_eus:9.4::appstreamcpe:/o:redhat:rhel_eus:9.4::baseosRed Hat · redhat
Red Hat Enterprise Linux 9.6 Extended Update Support
1 range
Red Hat · redhat
Red Hat Enterprise Linux 9.6 Extended Update Support
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
0:0.10.4-15.el9_6.1 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:rhel_eus:9.6::appstreamcpe:/o:redhat:rhel_eus:9.6::baseosRed Hat · redhat
Red Hat OpenShift Container Platform 4.13
1 range
Red Hat · redhat
Red Hat OpenShift Container Platform 4.13
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
413.92.202602240113-0 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:openshift:4.13::el9Red Hat · redhat
Red Hat OpenShift Container Platform 4.14
1 range
Red Hat · redhat
Red Hat OpenShift Container Platform 4.14
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
414.92.202601191325-0 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:openshift:4.14::el9Red Hat · redhat
Red Hat OpenShift Container Platform 4.15
1 range
Red Hat · redhat
Red Hat OpenShift Container Platform 4.15
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
415.92.202601271320-0 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:openshift:4.15::el9Red Hat · redhat
Red Hat OpenShift Container Platform 4.16
1 range
Red Hat · redhat
Red Hat OpenShift Container Platform 4.16
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
416.94.202601160124-0 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:openshift:4.16::el9Red Hat · redhat
Red Hat OpenShift Container Platform 4.17
1 range
Red Hat · redhat
Red Hat OpenShift Container Platform 4.17
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
417.94.202601120213-0 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:openshift:4.17::el9Red Hat · redhat
Red Hat OpenShift Container Platform 4.18
1 range
Red Hat · redhat
Red Hat OpenShift Container Platform 4.18
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
418.94.202601202224-0 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:openshift:4.18::el9Red Hat · redhat
Red Hat OpenShift Container Platform 4.19
1 range
Red Hat · redhat
Red Hat OpenShift Container Platform 4.19
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
4.19.9.6.202601260820-0 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:openshift:4.19::el9Red Hat · redhat
Red Hat OpenShift Container Platform 4.20
1 range
Red Hat · redhat
Red Hat OpenShift Container Platform 4.20
Compare with this publisher’s ranges. This does not inspect your installation.
unaffected
4.20.9.6.202601211057-0 → before *
rpm versions
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:openshift:4.20::el9Red Hat · redhat
Red Hat Enterprise Linux 6
0 ranges
Red Hat · redhat
Red Hat Enterprise Linux 6
Compare with this publisher’s ranges. This does not inspect your installation.
Other versions: unknown
Product identifiers (CPE)
cpe:/o:redhat:rhel_els:6Red Hat · redhat
Red Hat Enterprise Linux 7
0 ranges
Red Hat · redhat
Red Hat Enterprise Linux 7
Compare with this publisher’s ranges. This does not inspect your installation.
Other versions: unknown
Product identifiers (CPE)
cpe:/o:redhat:rhel_els:7Red Hat · redhat
Red Hat Enterprise Linux 8
0 ranges
Red Hat · redhat
Red Hat Enterprise Linux 8
Compare with this publisher’s ranges. This does not inspect your installation.
Other versions: unaffected
Product identifiers (CPE)
cpe:/a:redhat:enterprise_linux:8Red Hat · redhat
Red Hat OpenShift Container Platform 4
0 ranges
Red Hat · redhat
Red Hat OpenShift Container Platform 4
Compare with this publisher’s ranges. This does not inspect your installation.
Other versions: affected
Product identifiers (CPE)
cpe:/a:redhat:openshift:4What to do
Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.
A workaround for this issue is to disable the chacha20-poly1305@openssh.com cipher in applications using libssh when libssh is compiled with the OpenSSL backend, so the vulnerable ChaCha20-Poly1305 initialization path is not used. Alternatively, upgrade to a version of libssh containing the fix; upstream has released libssh 0.11.2 to correct this defect, and administrators are advised to upgrade or apply the upstream patch as soon as possible.
cve.new guidance unless attributed to a publisher. This page does not inspect your installation.
Public exploit evidence
No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.
Original source description
Read the full publisher description
A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library. If an attacker manages to exhaust the heap space, this error is not detected and may lead to libssh using a partially initialized cipher context. This occurs because the OpenSSL error code returned aliases with the SSH_OK code, resulting in libssh not properly detecting the error returned by the OpenSSL library. This issue can lead to undefined behavior, including compromised data confidentiality and integrity or crashes.
References
17 sourcesView 11 more references
Inside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2025-5987View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
Contributing organizations · 2
Assigning organization
Additional data publisher
Timeline
All times UTCAdvisory published
Publication date supplied by the source.
Source updated
Latest modification date supplied by the source.
Last imported by cve.new
Latest catalog import, not the date we first saw this advisory.
What changed
Follow changesLarge field values are marked as truncated previews. Original source snapshots remain retained.