Skip to content

kex: do not match sudo KEX methods from server - #2707

Merged
willco007 merged 2 commits into
libssh2:masterfrom
willco007:master
Nov 6, 2026
Merged

willco007 merged 2 commits into
libssh2:masterfrom
willco007:master

Conversation

@willco007

Copy link
Copy Markdown
Member

Don't match on sudo KEX methods sent from a compromised server. Security advisory GHSA-92x4-f995-pjxq.

Credit:
t31m0

@vszakats vszakats changed the title Don't match sudo KEX methods from server kex: do not match sudo KEX methods from server Nov 3, 2026

@vszakats vszakats left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One patch suggestion for nits, see below.

Comment thread src/kex.c Resolved
Co-authored-by: Viktor Szakats <[email protected]>
@willco007
willco007 requested a review from vszakats November 4, 2026 18:30
@willco007
willco007 merged commit 22bba2e into libssh2:master Nov 6, 2026
88 of 91 checks passed
@t31m0

t31m0 commented Nov 9, 2026

Copy link
Copy Markdown

Hi Will,

Thanks for landing the fix in #2707 — I saw it merged into main on the 6th, and I appreciate the credit in the commit.

Since the patch is now public and the commit references this advisory, the embargo date I proposed no longer serves a purpose. Could you publish the advisory and request the CVE through GitHub when you get a chance? Having an identifier out alongside the public fix is what lets downstream packagers pick it up.

One small ask on the credit: could it read "Telmo Xavier (@t31m0)" rather than the handle alone?

Happy to re-run my test against main and confirm the fix from my side if that's useful before publication.

Thanks again,
Telmo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants