libssh2

Install command:
brew install libssh2

C library implementing the SSH2 protocol

https://libssh2.org/

License: BSD-3-Clause

Development: Pull requests

Formula JSON API: /api/formula/libssh2.json

Formula code: libssh2.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 1.11.1
head ⚡️ HEAD

Revision: 7

Patches:

https://github.com/Homebrew/homebrew-core/blob/main/Patches/libssh2/CVE-2025-15661.patch
https://github.com/libssh2/libssh2/commit/256d04b60d80bf1190e96b0ad1e91b2174d744b1
https://github.com/libssh2/libssh2/commit/17626857d20b3c9a1addfa45979dadcee1cd84a4
https://github.com/Homebrew/homebrew-core/blob/main/Patches/libssh2/CVE-2026-55200.patch
https://github.com/Homebrew/homebrew-core/blob/main/Patches/libssh2/CVE-2026-58050.patch
https://github.com/libssh2/libssh2/commit/a9758da45a52bc8c630ec9493804d0c6ea30b24a
https://github.com/Homebrew/homebrew-core/blob/main/Patches/libssh2/CVE-2026-66032.patch
https://github.com/libssh2/libssh2/commit/a2ed82d40964bbc0d64cd717aa0a5a892117d2e6
https://github.com/Homebrew/homebrew-core/blob/main/Patches/libssh2/CVE-2026-66034.patch
https://github.com/Homebrew/homebrew-core/blob/main/Patches/libssh2/CVE-2026-66035.patch
https://github.com/libssh2/libssh2/commit/631e2f82a32ef016299ebb1af66efeae0161f68e
https://github.com/libssh2/libssh2/commit/b89858b83d68d7e29e0c5b0bb803f8a68271710c

Depends on:

openssl@4 4.1.0 Cryptography and SSL/TLS Toolkit

GitHub Packages downloads:

Last 30 days882,248
Downloads25,718,305
Analytics install events (30 days)129,623
Downloads / install events (30 days)6.8×

Source: GitHub Packages, fetched 2026-11-14T00:20:08Z. Analytics dates: 2026-10-15 to 2026-11-14. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs129,613316,118945,747
Installs (--HEAD)102376
Installs on Request5,61515,76454,367
Installs on Request (--HEAD)82167
Build Errors89
Build Errors (--HEAD)1

Homebrew ships patches for: CVE-2025-15661, CVE-2026-55199, CVE-2026-55200, CVE-2026-58050, CVE-2026-58051, CVE-2026-66032, CVE-2026-66033, CVE-2026-66034, CVE-2026-66035, CVE-2026-7598, OSV-2022-24, OSV-2024-847, OSV-2025-90, OSV-2025-92.