1. Accueil
  2. Vulnérabilités
  3. CVE-2025-5987

CVE-2025-5987

Libssh: invalid return code for chacha20 poly1305 with openssl backend

Publiée le 7 juil. 2025 · modifiée le 23 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Moyen 55/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Redhat (17 ligne(s))
Redhat
ProduitVersionsCorrigé dansSource
Hat Enterprise Linux 10 Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 10.0 Extended Update Support Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 6 Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 7 Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 9 Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 9.2 Update Services for SAP Solutions Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 9.4 Extended Update Support Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 9.6 Extended Update Support Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift Container Platform 4 Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift Container Platform 4.13 Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift Container Platform 4.14 Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift Container Platform 4.15 Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift Container Platform 4.16 Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift Container Platform 4.17 Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift Container Platform 4.18 Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift Container Platform 4.19 Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift Container Platform 4.20 Versions non précisées — CNA (éditeur ou attributeur)
Libssh (1 ligne(s))
Libssh
ProduitVersionsCorrigé dansSource
Libssh de 0.10.0 (inclus) à 0.11.2 (exclu) — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Contournementsource officielle

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.

Source : CNA (éditeur ou attributeur)

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, CNA:secalert@redhat.com)
Faiblesse
CWE-393 · Autre (CWE-393)

Comment sont obtenues et calculées ces données