CVE-2024-45337
published critical CVSS 3.1 · 9.1Misuse of connection.serverAuthenticate may cause authorization bypass in golang.org/x/crypto
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| golang.org/x/crypto | — | golang.org/x/crypto/ssh0 to < 0.31.0 · Other versions: unaffected | Affected | Not stated | Go |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2749 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2779 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2DOCKER-2025-049 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2DOCKER-2025-050 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12 | google-guest-agentaarch64 | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12 | google-guest-agentaarch64 | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
Show 105 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | Release evaluationALAS2ECS-2025-046 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2NITRO-ENCLAVES-2025-049 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-833 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-834 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-835 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-880 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12 | google-guest-agentppc64le | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12 | google-guest-agentppc64le | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12 | google-guest-agents390x | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12 | google-guest-agents390x | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12 | google-guest-agentx86_64 | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12 | google-guest-agentx86_64 | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12-SP3 | google-guest-agentaarch64 | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12-SP3 | google-guest-agentaarch64 | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12-SP3 | google-guest-agentppc64le | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12-SP3 | google-guest-agentppc64le | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12-SP3 | google-guest-agents390x | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12-SP3 | google-guest-agents390x | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12-SP3 | google-guest-agentx86_64 | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12-SP3 | google-guest-agentx86_64 | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12-SP4 | google-guest-agentaarch64 | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12-SP4 | google-guest-agentaarch64 | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12-SP4 | google-guest-agentppc64le | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12-SP4 | google-guest-agentppc64le | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12-SP4 | google-guest-agents390x | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12-SP4 | google-guest-agents390x | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12-SP4 | google-guest-agentx86_64 | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12-SP4 | google-guest-agentx86_64 | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12-SP5 | google-guest-agentaarch64 | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12-SP5 | google-guest-agentaarch64 | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12-SP5 | google-guest-agentppc64le | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12-SP5 | google-guest-agentppc64le | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12-SP5 | google-guest-agents390x | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12-SP5 | google-guest-agents390x | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-12-SP5 | google-guest-agentx86_64 | Advisory build | 20250327.01-1.50.1 | SUSE-SU-2025:1142-1 |
| SUSE / openSUSE | SLE-12-SP5 | google-guest-agentx86_64 | Advisory build | 20260529.00-1.61.1 | SUSE-SU-2026:2581-1 |
| SUSE / openSUSE | SLE-15-SP3 | google-guest-agentaarch64 | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP3 | google-guest-agentppc64le | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP3 | google-guest-agents390x | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP3 | google-guest-agentx86_64 | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP3 | helmaarch64 | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP3 | helmppc64le | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP3 | helms390x | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP3 | helmx86_64 | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP3 | helm-bash-completionnoarch | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP3 | helm-zsh-completionnoarch | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP3 | supportutils-plugin-saltnoarch | Advisory build | 1.2.3-150000.3.16.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP4 | google-guest-agentaarch64 | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP4 | google-guest-agentaarch64 | Advisory build | 20260529.00-150000.1.70.1 | SUSE-SU-2026:2612-1 |
| SUSE / openSUSE | SLE-15-SP4 | google-guest-agentppc64le | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP4 | google-guest-agentppc64le | Advisory build | 20260529.00-150000.1.70.1 | SUSE-SU-2026:2612-1 |
| SUSE / openSUSE | SLE-15-SP4 | google-guest-agents390x | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP4 | google-guest-agents390x | Advisory build | 20260529.00-150000.1.70.1 | SUSE-SU-2026:2612-1 |
| SUSE / openSUSE | SLE-15-SP4 | google-guest-agentx86_64 | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP4 | google-guest-agentx86_64 | Advisory build | 20260529.00-150000.1.70.1 | SUSE-SU-2026:2612-1 |
| SUSE / openSUSE | SLE-15-SP4 | helmaarch64 | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP4 | helmppc64le | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP4 | helms390x | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP4 | helmx86_64 | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP4 | helm-bash-completionnoarch | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP4 | helm-zsh-completionnoarch | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP4 | supportutils-plugin-saltnoarch | Advisory build | 1.2.3-150000.3.16.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP5 | google-guest-agentaarch64 | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP5 | google-guest-agentaarch64 | Advisory build | 20260529.00-150000.1.70.1 | SUSE-SU-2026:2612-1 |
| SUSE / openSUSE | SLE-15-SP5 | google-guest-agentppc64le | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP5 | google-guest-agentppc64le | Advisory build | 20260529.00-150000.1.70.1 | SUSE-SU-2026:2612-1 |
| SUSE / openSUSE | SLE-15-SP5 | google-guest-agents390x | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP5 | google-guest-agents390x | Advisory build | 20260529.00-150000.1.70.1 | SUSE-SU-2026:2612-1 |
| SUSE / openSUSE | SLE-15-SP5 | google-guest-agentx86_64 | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP5 | google-guest-agentx86_64 | Advisory build | 20260529.00-150000.1.70.1 | SUSE-SU-2026:2612-1 |
| SUSE / openSUSE | SLE-15-SP5 | helmaarch64 | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP5 | helmppc64le | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP5 | helms390x | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP5 | helmx86_64 | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP5 | helm-bash-completionnoarch | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP5 | helm-zsh-completionnoarch | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP5 | supportutils-plugin-saltnoarch | Advisory build | 1.2.3-150000.3.16.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP6 | apptaineraarch64 | Advisory build | 1.3.6-150600.4.9.1 | SUSE-SU-2025:0980-1 |
| SUSE / openSUSE | SLE-15-SP6 | apptainerx86_64 | Advisory build | 1.3.6-150600.4.9.1 | SUSE-SU-2025:0980-1 |
| SUSE / openSUSE | SLE-15-SP6 | apptainer-sle15_6noarch | Advisory build | 1.3.6-150600.4.9.1 | SUSE-SU-2025:0980-1 |
| SUSE / openSUSE | SLE-15-SP6 | golang-github-prometheus-promuaarch64 | Advisory build | 0.17.0-150000.3.24.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP6 | golang-github-prometheus-promuppc64le | Advisory build | 0.17.0-150000.3.24.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP6 | golang-github-prometheus-promus390x | Advisory build | 0.17.0-150000.3.24.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP6 | golang-github-prometheus-promux86_64 | Advisory build | 0.17.0-150000.3.24.1 | SUSE-SU-2025:0525-1 |
| SUSE / openSUSE | SLE-15-SP6 | google-guest-agentaarch64 | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP6 | google-guest-agentaarch64 | Advisory build | 20260529.00-150000.1.70.1 | SUSE-SU-2026:2612-1 |
| SUSE / openSUSE | SLE-15-SP6 | google-guest-agentppc64le | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP6 | google-guest-agentppc64le | Advisory build | 20260529.00-150000.1.70.1 | SUSE-SU-2026:2612-1 |
| SUSE / openSUSE | SLE-15-SP6 | google-guest-agents390x | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP6 | google-guest-agents390x | Advisory build | 20260529.00-150000.1.70.1 | SUSE-SU-2026:2612-1 |
| SUSE / openSUSE | SLE-15-SP6 | google-guest-agentx86_64 | Advisory build | 20250327.01-150000.1.60.1 | SUSE-SU-2025:1143-1 |
| SUSE / openSUSE | SLE-15-SP6 | google-guest-agentx86_64 | Advisory build | 20260529.00-150000.1.70.1 | SUSE-SU-2026:2612-1 |
| SUSE / openSUSE | SLE-15-SP6 | govulncheck-vulndbnoarch | Advisory build | 0.0.20250226T025151-150000.1.35.1 | SUSE-SU-2025:0770-1 |
| SUSE / openSUSE | SLE-15-SP6 | grafanaaarch64 | Advisory build | 10.4.13-150200.3.59.1 | SUSE-SU-2025:0545-1 |
| SUSE / openSUSE | SLE-15-SP6 | grafanappc64le | Advisory build | 10.4.13-150200.3.59.1 | SUSE-SU-2025:0545-1 |
| SUSE / openSUSE | SLE-15-SP6 | grafanas390x | Advisory build | 10.4.13-150200.3.59.1 | SUSE-SU-2025:0545-1 |
| SUSE / openSUSE | SLE-15-SP6 | grafanax86_64 | Advisory build | 10.4.13-150200.3.59.1 | SUSE-SU-2025:0545-1 |
| SUSE / openSUSE | SLE-15-SP6 | helmaarch64 | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP6 | helmppc64le | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP6 | helms390x | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP6 | helmx86_64 | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP6 | helm-bash-completionnoarch | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP6 | helm-fish-completionnoarch | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
| SUSE / openSUSE | SLE-15-SP6 | helm-zsh-completionnoarch | Advisory build | 3.17.1-150000.1.41.1 | SUSE-SU-2025:0602-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
Applications and libraries which misuse connection.serverAuthenticate (via callback field ServerConfig.PublicKeyCallback) may be susceptible to an authorization bypass. The documentation for ServerConfig.PublicKeyCallback says that "A call to this function does not guarantee that the key offered is in fact used to authenticate." Specifically, the SSH protocol allows clients to inquire about whether a public key is acceptable before proving control of the corresponding private key. PublicKeyCallback may be called with multiple keys, and the order in which the keys were provided cannot be used to infer which key the client successfully authenticated with, if any. Some applications, which store the key(s) passed to PublicKeyCallback (or derived information) and make security relevant determinations based on it once the connection is established, may make incorrect assumptions. For example, an attacker may send public keys A and B, and then authenticate with A. PublicKeyCallback would be called only twice, first with A and then with B. A vulnerable application may then make authorization decisions based on key B for which the attacker does not actually control the private key. Since this API is widely misused, as a partial mitigation golang.org/x/[email protected] enforces the property that, when successfully authenticating via public key, the last key passed to ServerConfig.PublicKeyCallback will be the key used to authenticate the connection. PublicKeyCallback will now be called multiple times with the same key, if necessary. Note that the client may still not control the last key passed to PublicKeyCallback if the connection is then authenticated with a different method, such as PasswordCallback, KeyboardInteractiveCallback, or NoClientAuth. Users should be using the Extensions field of the Permissions return value from the various authentication callbacks to record data associated with the authentication attempt instead of referencing external state. Once the connection is established the state corresponding to the successful authentication attempt can be retrieved via the ServerConn.Permissions field. Note that some third-party libraries misuse the Permissions type by sharing it across authentication attempts; users of third-party libraries should refer to the relevant projects for guidance.
Related advisories
Vendor advisories explicitly linked to this CVE.
Showing the first 100 linked advisory records.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| golang.org/x/crypto | golang.org/x/crypto/ssh | 0 to < 0.31.0 (affected · semver)Default: unaffected | Go · cna |
Weaknesses
1- CWE-1108 CWE-1108: Excessive Reliance on Global Variables
References
7- http://www.openwall.com/lists/oss-security/2024/12/11/2
- https://github.com/golang/crypto/commit/b4f1988a35dee11ec3e05d6bf3e90b695fbd8909
- https://go.dev/cl/635315
- https://go.dev/issue/70779
- https://groups.google.com/g/golang-announce/c/-nPEi39gI4Q/m/cGVPJCqdAQAJ
- https://pkg.go.dev/vuln/GO-2024-3321
- https://security.netapp.com/advisory/ntap-20250131-0007/
Provider assertions
3Go · cna
Misuse of connection.serverAuthenticate may cause authorization bypass in golang.org/x/crypto
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 20f20b5c3eeb8bc02f20de78982693f5fad5c3e9a16269f681bea9717029c8f1
- Ingested
- 23 Sep 2026, 08:27:47 UTC
- Source record
- Official CVE record