Skip to content

libssh2: Backport more security patches & fix source build - #62591

Open
mbauman wants to merge 2 commits into
JuliaLang:masterfrom
mbauman:mb/libssh2-1.11.104
Open

libssh2: Backport more security patches & fix source build#62591
mbauman wants to merge 2 commits into
JuliaLang:masterfrom
mbauman:mb/libssh2-1.11.104

Conversation

@mbauman

@mbauman mbauman commented Jul 31, 2026

Copy link
Copy Markdown
Member

Following JuliaPackaging/Yggdrasil#14317, this uses Debian's backported patches for four more CVEs.

Claude tried building both with- and without binary builder; that's how it identified the need for the first commit here.

mbauman added 2 commits July 31, 2026 09:29
When trying to build without BB, this was erroring:

```
$ make -n -C deps USE_BINARYBUILDER_LIBSSH2=0 configure-libssh2 2>&1 | tail -2
  ⎿  make: *** No rule to make target '/home/mbauman/julia-master/deps/srccache/libssh2-1.11.1/source-extracted', needed by
     '/home/mbauman/julia-master/deps/srccache/libssh2-1.11.1/libssh2-CVE-2026-7598-256d04b60d80bf1190e96b0ad1e91b2174d744b1.patch-applied'.  Stop.
     make: Leaving directory '/home/mbauman/julia-master/deps'
```

Unlike some other recipes (on which this idiom was likely based), libssh2 is a `git-external` and thus its src paths don't include the version number

Assisted-by: Claude Fable 5 <noreply@anthropic.com>
Update LibSSH2_jll to v1.11.104+0, built by JuliaPackaging/Yggdrasil#14317,
which bundles the security patches added in Debian's libssh2 1.11.1-5:

- CVE-2026-66032: sftp.c: prevent dangling pointer by nullifying data after free
- CVE-2026-66033: openssl: fix potential OOB read/write with AES-GCM in ssh2_cipher_crypt()
- CVE-2026-66034: publickey: fix potential OOB read in libssh2_publickey_list_fetch()
- CVE-2026-66035: transport: fix potential heap overflow on ETM decrypt

Apply the same patches to the source build as well.

Assisted-by: Claude Fable 5 <noreply@anthropic.com>
@mbauman
mbauman requested a review from giordano as a code owner July 31, 2026 13:39
@mbauman mbauman added stdlib Julia's standard library JLLs labels Jul 31, 2026
@mbauman
mbauman requested review from eschnett and giordano and removed request for giordano July 31, 2026 13:39
@giordano giordano added building Build system, or building Julia or its dependencies external dependencies Involves LLVM, OpenBLAS, or other linked libraries labels Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

building Build system, or building Julia or its dependencies external dependencies Involves LLVM, OpenBLAS, or other linked libraries JLLs stdlib Julia's standard library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants