Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2024-45337

golang.org/x/crypto/ssh: Misuse of ServerConfig.PublicKeyCallback may cause authorization bypass in golang.org/x/crypto

Overview

Published
12 Dec 2024
Modified
17 Jun 2026
Critical CVE
1 Registry packages
712 OS packages
14 Linux distributions
Yes Fix available

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/cry...@v0.31.0 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.

Source: OX vulnerability database

Severity

9.1 · CRITICAL

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected packages · 1

Packages affected by CVE-2024-45337
EcosystemPackageVulnerableFixed in
Go golang.org/x/crypto <0.31.0 0.31.0

Open a package to see all its vulnerabilities.

Operating systems · 765 fixes

Azure Linux 1 release · 9 packages

fixed 9
docker-buildx cert-manager kubevirt telegraf packer docker-compose +3
Azure Linux fixes for CVE-2024-45337
ReleasePackageFixed in
3.0 docker-buildx 0:0.14.0-2.azl3
3.0 cert-manager 0:1.12.13-2.azl3
3.0 kubevirt 0:1.2.0-11.azl3
3.0 telegraf 0:1.31.0-3.azl3
3.0 packer 0:1.9.5-4.azl3
3.0 docker-compose 0:2.27.0-2.azl3

3 more rows

Red Hat 4 releases · 3 packages

eol 1 affected 3
heketi ose-oauth-proxy golang-golangorg-crypto-devel
Red Hat fixes for CVE-2024-45337
ReleasePackageFixed in
heketi +4 eol
7 ose-oauth-proxy affected
8 golang-golangorg-crypto-devel +1 affected
9 ose-oauth-proxy affected

SUSE Linux Enterprise 5 releases · 8 packages

fixed 17
supportutils-plugin-salt google-guest-agent helm golang-github-prometheus-promu apptainer kubevirt-manifests +2
SUSE Linux Enterprise fixes for CVE-2024-45337
ReleasePackageFixed inAdvisory
15.4 supportutils-plugin-salt 1.2.3-150000.3.16.1 SUSE-SU-2025:0525-1
15.4 google-guest-agent 20250327.01-150000.1.60.1 SUSE-SU-2025:1143-1
15.4 helm +2 3.17.1-150000.1.41.1 SUSE-SU-2025:0602-1
15.5 supportutils-plugin-salt 1.2.3-150000.3.16.1 SUSE-SU-2025:0525-1
15.5 google-guest-agent 20250327.01-150000.1.60.1 SUSE-SU-2025:1143-1
15.5 helm +2 3.17.1-150000.1.41.1 SUSE-SU-2025:0602-1

11 more rows

SUSE Linux Enterprise Micro 3 releases · 2 packages

fixed 5
google-guest-agent helm
SUSE Linux Enterprise Micro fixes for CVE-2024-45337
ReleasePackageFixed inAdvisory
5.5 google-guest-agent 20250327.01-150000.1.60.1 SUSE-SU-2025:1143-1
5.5 helm +1 3.17.1-150000.1.41.1 SUSE-SU-2025:0602-1
6.0 google-guest-agent 20250506.01-1.1 SUSE-SU-2026:21319-1
6.0 helm +1 3.17.2-1.1 SUSE-SU-2025:20196-1
6.1 helm +1 3.17.2-slfo.1.1_1.1 SUSE-SU-2025:20278-1

alpine 4 releases · 1 package

fixed 4
rclone
alpine fixes for CVE-2024-45337
ReleasePackageFixed in
3.22 rclone 1.69.0-r0
3.23 rclone 1.69.0-r0
3.24 rclone 1.69.0-r0
edge rclone 1.69.0-r0

amazon linux 1 release · 4 packages

fixed 4
amazon-cloudwatch-agent runfinch-finch containerd nerdctl
amazon linux fixes for CVE-2024-45337
ReleasePackageFixed in
2023 amazon-cloudwatch-agent 1.300052.1-1.amzn2023
2023 runfinch-finch 1.6.0-1.amzn2023.0.1
2023 containerd +4 1.7.25-1.amzn2023.0.1
2023 nerdctl 2.0.3-1.amzn2023.0.1

chainguard 1 release · 384 packages

not affected 1 fixed 383
go-fips-1-24 dagdotdev wireguard-go spegel local-path-provisioner promxy +378
chainguard fixes for CVE-2024-45337
ReleasePackageFixed in
go-fips-1-24 +2 not affected
dagdotdev 0.0.11-r1
wireguard-go 0.0.20230223-r16
spegel 0.0.27-r2
local-path-provisioner +1 0.0.30-r1
promxy +1 0.0.91-r2

378 more rows

debian 4 releases · 1 package

affected 3 fixed 1
golang-go-crypto
debian fixes for CVE-2024-45337
ReleasePackageFixed in
11 golang-go-crypto affected
12 golang-go-crypto affected
13 golang-go-crypto affected
14 golang-go-crypto 1:0.42.0-1

echo 1 release · 1 package

affected 1
golang-go-crypto
echo fixes for CVE-2024-45337
ReleasePackageFixed in
golang-go-crypto affected

minimos 1 release · 29 packages

fixed 29
kserve-modelmesh-runtime-adapter cadvisor kwok unoserver-rest-api kyverno-notation-aws messaging-topology-operator-1-14 +23
minimos fixes for CVE-2024-45337
ReleasePackageFixed in
kserve-modelmesh-runtime-adapter +3 0.12.0-r1
cadvisor 0.49.1-r1
kwok 0.6.1-r1
unoserver-rest-api 0.8.3-r2
kyverno-notation-aws +1 1.1-r1
messaging-topology-operator-1-14 1.14.2-r1

23 more rows

openSUSE 1 release · 25 packages

fixed 25
govulncheck-vulndb k3sup vexctl kubeseal trivy git-bug +19
openSUSE fixes for CVE-2024-45337
ReleasePackageFixed inAdvisory
Tumbleweed govulncheck-vulndb 0.0.20241213T205935-1.1 openSUSE-SU-2024:14599-1
Tumbleweed k3sup 0.13.14-1.1 openSUSE-SU-2026:12295-1
Tumbleweed vexctl 0.4.1+git78.f951e3a-1.1 openSUSE-SU-2026:10230-1
Tumbleweed kubeseal 0.41.1-1.1 openSUSE-SU-2026:12299-1
Tumbleweed trivy 0.58.2-1.1 openSUSE-SU-2025:14713-1
Tumbleweed git-bug +3 0.8.0+git.1733745604.d499b6e-1.1 openSUSE-SU-2024:14592-1

19 more rows

openSUSE Leap 1 release · 8 packages

fixed 8
git-bug gitea-tea vexctl trivy apptainer rclone +2
openSUSE Leap fixes for CVE-2024-45337
ReleasePackageFixed inAdvisory
16.0 git-bug +3 0.10.1-bp160.1.1 openSUSE-SU-2025:20143-1
16.0 gitea-tea +2 0.15.1-bp160.1.1 openSUSE-SU-2026:21603-1
16.0 vexctl 0.4.4+git20.5d61136-160000.1.1 openSUSE-SU-2026:21481-1
16.0 trivy 0.66.0-bp160.1.1 openSUSE-SU-2025:20117-1
16.0 apptainer +3 1.4.5-bp160.1.1 openSUSE-SU-2026:20730-1
16.0 rclone +2 1.73.5-bp160.1.1 openSUSE-SU-2026:20620-1

2 more rows

ubuntu 4 releases · 2 packages

fixed 6 affected 2
golang-go-crypto google-guest-agent
ubuntu fixes for CVE-2024-45337
ReleasePackageFixed in
18.04-ESM golang-go-crypto 1:0.0~git20170629.0.5ef0053-2ubuntu0.1~esm1
18.04-ESM google-guest-agent 20241011.01-0ubuntu1~18.04.0+esm1
20.04-ESM golang-go-crypto 1:0.0~git20200221.2aa609c-1ubuntu0.1~esm1
20.04-ESM google-guest-agent 20250116.00-0ubuntu1~20.04.0+esm1
22.04 golang-go-crypto affected
22.04 google-guest-agent 20250116.00-0ubuntu1~22.04.1

2 more rows

wolfi 1 release · 263 packages

fixed 263
dagdotdev wireguard-go spegel local-path-provisioner promxy nats +257
wolfi fixes for CVE-2024-45337
ReleasePackageFixed in
dagdotdev 0.0.11-r1
wireguard-go 0.0.20230223-r16
spegel 0.0.27-r2
local-path-provisioner 0.0.30-r1
promxy 0.0.91-r2
nats 0.1.5-r2

257 more rows

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.