Skip to content

ssh-encoding: cap decoder nesting depth at 64 - #641

Merged
tarcieri merged 1 commit into
masterfrom
ssh-encoding/cap-decoder-nesting-depth-at-64
Nov 18, 2026
Merged

tarcieri merged 1 commit into
masterfrom
ssh-encoding/cap-decoder-nesting-depth-at-64

Conversation

@tarcieri

Copy link
Copy Markdown
Member

Implements a bound on the number of stack frames that nested decoding is allowed to consume, similar to what RustCrypto/formats#2379 did for the der crate.

In practice it seems unlikely to actually be able to trigger this, but it serves as a nice defense-in-depth measure.

Implements a bound on the number of stack frames that nested decoding is
allowed to consume, similar to what RustCrypto/formats#2379 did for the
`der` crate.

In practice it seems unlikely to actually be able to trigger this, but
it serves as a nice defense-in-depth measure.
@tarcieri
tarcieri merged commit 453f07d into master Nov 18, 2026
21 checks passed
@tarcieri
tarcieri deleted the ssh-encoding/cap-decoder-nesting-depth-at-64 branch November 18, 2026 18:21
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.

1 participant