Loop with Unreachable Exit Condition ('Infinite Loop') Affecting libssh package, versions <0.12.2-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.73% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE324-LIBSSH-18366530
  • published28 Jul 2026
  • disclosed21 Jul 2026

Introduced: 21 Jul 2026

CVE-2026-59843  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade Alpine:3.24 libssh to version 0.12.2-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libssh package and not the libssh package as distributed by Alpine. See How to fix? for Alpine:3.24 relevant fixed versions and status.

A flaw was found in libssh. A remote authenticated peer can advertise a zero maximum packet size in SSH_MSG_CHANNEL_OPEN, causing later channel writes to loop indefinitely and consume CPU, leading to denial of service.

CVSS Base Scores

version 3.1