| commit | e79546e28b85ea53dd37afe1c4102746ef553b9c | [log] [tgz] |
|---|---|---|
| author | Neal Patel <nealpatel@google.com> | Wed Nov 19 13:35:12 2025 -0500 |
| committer | Gopher Robot <gobot@golang.org> | Wed Nov 19 11:28:37 2025 -0800 |
| tree | 1fea6dd50a03f22132077b4a32efd929fbc697b0 | |
| parent | f91f7a7c31bf90b39c1de895ad116a2bacc88748 [diff] |
ssh: curb GSSAPI DoS risk by limiting number of specified OIDs Previously, an attacker could specify an integer up to 0xFFFFFFFF that would directly allocate memory despite the observability of the rest of the payload. This change places a hard cap on the amount of mechanisms that can be specified and encoded in the payload. Additionally, it performs a small sanity check to deny payloads whose stated size is contradictory to the observed payload. Thank you to Jakub Ciolek for reporting this issue. Fixes CVE-2025-58181 Fixes golang/go#76363 Change-Id: I0307ab3e906a3f2ae763b5f9f0310f7073f84485 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/721961 Auto-Submit: Roland Shoemaker <roland@golang.org> Reviewed-by: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This repository holds supplementary Go cryptography packages.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/crypto.
The main issue tracker for the crypto repository is located at https://go.dev/issues. Prefix your issue with “x/crypto:” in the subject line, so it is easy to find.
Note that contributions to the cryptography package receive additional scrutiny due to their sensitive nature. Patches may take longer than normal to receive feedback.