Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Skip to content
Check your stack
CVE-2025-5987

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

Share

Severity and exploitation

Not in CISA KEV

KEV coverage does not rule out exploitation.

KEV checked 15/11/2026, 03:35:31 UTC
redhat · CVSS:3.1 · 8.1
Assessment vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity

high8.1

CVSS 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

Compare with this publisher’s ranges. This does not inspect your installation.

affected

0.10.0 → before 0.11.2

semver versions

unaffected

unknown

Other versions: unaffected

Red Hat · redhat

Red Hat Enterprise Linux 10

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

0:0.11.1-5.el10_1 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/o:redhat:enterprise_linux:10.1

Red Hat · redhat

Red Hat Enterprise Linux 10.0 Extended Update Support

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

0:0.11.1-4.el10_0.1 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/o:redhat:enterprise_linux_eus:10.0

Red Hat · redhat

Red Hat Enterprise Linux 9

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

0:0.10.4-17.el9_7 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:enterprise_linux:9::appstreamcpe:/o:redhat:enterprise_linux:9::baseos

Red Hat · redhat

Red Hat Enterprise Linux 9

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

0:0.10.4-17.el9_7 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:enterprise_linux:9::appstreamcpe:/o:redhat:enterprise_linux:9::baseos

Red Hat · redhat

Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

0:0.10.4-9.el9_2.2 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:rhel_e4s:9.2::appstreamcpe:/o:redhat:rhel_e4s:9.2::baseos

Red Hat · redhat

Red Hat Enterprise Linux 9.4 Extended Update Support

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

0:0.10.4-13.el9_4.2 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:rhel_eus:9.4::appstreamcpe:/o:redhat:rhel_eus:9.4::baseos

Red Hat · redhat

Red Hat Enterprise Linux 9.6 Extended Update Support

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

0:0.10.4-15.el9_6.1 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:rhel_eus:9.6::appstreamcpe:/o:redhat:rhel_eus:9.6::baseos

Red Hat · redhat

Red Hat OpenShift Container Platform 4.13

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

413.92.202602240113-0 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:openshift:4.13::el9

Red Hat · redhat

Red Hat OpenShift Container Platform 4.14

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

414.92.202601191325-0 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:openshift:4.14::el9

Red Hat · redhat

Red Hat OpenShift Container Platform 4.15

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

415.92.202601271320-0 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:openshift:4.15::el9

Red Hat · redhat

Red Hat OpenShift Container Platform 4.16

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

416.94.202601160124-0 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:openshift:4.16::el9

Red Hat · redhat

Red Hat OpenShift Container Platform 4.17

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

417.94.202601120213-0 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:openshift:4.17::el9

Red Hat · redhat

Red Hat OpenShift Container Platform 4.18

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

418.94.202601202224-0 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:openshift:4.18::el9

Red Hat · redhat

Red Hat OpenShift Container Platform 4.19

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

4.19.9.6.202601260820-0 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:openshift:4.19::el9

Red Hat · redhat

Red Hat OpenShift Container Platform 4.20

1 range

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

4.20.9.6.202601211057-0 → before *

rpm versions

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:openshift:4.20::el9

Red Hat · redhat

Red Hat Enterprise Linux 6

0 ranges

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

unknown

Other versions: unknown

Product identifiers (CPE)cpe:/o:redhat:rhel_els:6

Red Hat · redhat

Red Hat Enterprise Linux 7

0 ranges

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

unknown

Other versions: unknown

Product identifiers (CPE)cpe:/o:redhat:rhel_els:7

Red Hat · redhat

Red Hat Enterprise Linux 8

0 ranges

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

unknown

Other versions: unaffected

Product identifiers (CPE)cpe:/a:redhat:enterprise_linux:8

Red Hat · redhat

Red Hat OpenShift Container Platform 4

0 ranges

Compare with this publisher’s ranges. This does not inspect your installation.

affected

unaffected

unknown

Other versions: affected

Product identifiers (CPE)cpe:/a:redhat:openshift:4
Automatic dependency matching is unavailable for this record. Use the product evidence and publisher’s instructions to check your installation.

What 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.

redhat guidance ↗

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 sources

Inside the record

Evidence available

Package identity · not supplied
Version evidence
Remediation guidance
Weakness classification
Additional publishers

Describes the evidence in this view, not whether the product is safe.

Original records

CVE-2025-5987

View 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.

CWE-393 ↗

Return of Wrong Status Code

redhat

Related →
Contributing organizations · 2
redhat

Assigning organization

2026-11-05
CISA-ADP

Additional data publisher

2026-02-26

Timeline

All times UTC
  1. Advisory published

    Publication date supplied by the source.

  2. Source updated

    Latest modification date supplied by the source.

  3. Last imported by cve.new

    Latest catalog import, not the date we first saw this advisory.

What changed

Follow changes
No substantive changes have been recorded here yet. History starts when cve.new observes a change after tracking is enabled; earlier edits are not reconstructed.

Large field values are marked as truncated previews. Original source snapshots remain retained.