{"id":"CVE-2025-8277","aliases":["CVE-2025-8277"],"related":[],"kind":"vulnerability","state":"published","title":"Libssh: memory exhaustion via repeated key exchange in libssh","summary":"A flaw was found in libssh's handling of key exchange (KEX) processes when a client repeatedly sends incorrect KEX guesses. The library fails to free memory during these rekey operations, which can gradually exhaust system memory. This issue can lead to crashes on the client side, particularly when using libgcrypt, which impacts application stability and availability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in libssh's handling of key exchange (KEX) processes when a client repeatedly sends incorrect KEX guesses. The library fails to free memory during these rekey operations, which can gradually exhaust system memory. This issue can lead to crashes on the client side, particularly when using libgcrypt, which impacts application stability and availability.","source":"cvelist"},{"lang":"es","text":"Se encontró una falla en el manejo de libssh de los procesos de intercambio de claves (KEX) cuando un cliente envía repetidamente suposiciones KEX incorrectas. La biblioteca no libera memoria durante estas operaciones de renegociación de clave, lo que puede agotar gradualmente la memoria del sistema. Este problema puede provocar fallos en el lado del cliente, particularmente al usar libgcrypt, lo que afecta la estabilidad y disponibilidad de la aplicación.","source":"nvd"}],"published":"2025-09-09T11:55:39.036Z","modified":"2026-11-25T16:17:30.797Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L","score":3.1,"rating":"LOW"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L","score":3.1,"rating":"LOW"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"semver","introduced":"0.6.0","fixed":"0.11.3","status":"affected"}],"package":"libssh","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:0.10.4-18.el9","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"libssh","cpe":"cpe:/a:redhat:enterprise_linux:9::appstream","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:0.10.4-18.el9","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"libssh","cpe":"cpe:/a:redhat:enterprise_linux:9::appstream","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"libssh","cpe":"cpe:/o:redhat:enterprise_linux:10","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","package":"libssh2","cpe":"cpe:/o:redhat:rhel_els:6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"libssh2","cpe":"cpe:/o:redhat:rhel_els:7","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"libssh","cpe":"cpe:/o:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"openshift/ose-rhel-coreos-8","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","package":"openshift/ose-rhel-coreos-9","cpe":"cpe:/a:redhat:openshift:4","source":"cvelist"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:18683","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-8277","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2383888","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://www.libssh.org/security/advisories/CVE-2025-8277.txt","tags":[],"sources":["cvelist","nvd"]}],"credits":["Red Hat would like to thank Francesco Rollo for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-09T19:28:17.013Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-8277","url":"https://www.cve.org/CVERecord?id=CVE-2025-8277","licence":"CVE Terms of Use","modified":"2026-11-25T15:07:53.674Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-8277","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8277","licence":"Public domain","modified":"2026-11-25T16:17:30.797Z"}],"updatedAt":"2026-11-25T23:18:05.234Z","epss":{"score":0.00466,"percentile":0.41991,"date":"2026-12-01T12:00:22.000Z"}}