Vulnerability
CVE-2024-45337
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.
2891 advisories report this vulnerability, across 12 ecosystems.
Advisories
-
ALAS2-2025-2749
Amazon Linux 2 2017.12 - ALAS2-2025-2749: important priority package update for nerdctl
-
ALAS2-2025-2779
Amazon Linux 2 2017.12 - ALAS2-2025-2779: important priority package update for amazon-cloudwatch-agent
-
ALAS2023-2025-833
Amazon Linux 2023 - ALAS2023-2025-833: Important priority package update for nerdctl
-
ALAS2023-2025-834
Amazon Linux 2023 - ALAS2023-2025-834: Important priority package update for runfinch-finch
-
ALAS2023-2025-835
Amazon Linux 2023 - ALAS2023-2025-835: Important priority package update for containerd
-
ALAS2023-2025-880
Amazon Linux 2023 - ALAS2023-2025-880: Important priority package update for amazon-cloudwatch-agent
-
ALPINE-CVE-2024-45337
Applications and libraries which misuse connection.serverAuthenticate (via callback field ServerConfig.PublicKeyCallback) may be susceptible to an authorization bypass. The documentation for…
- ALPINE-EDGE-CVE-2024-45337
-
AZL-54281
CVE-2024-45337 affecting package telegraf for versions less than 1.29.4-10
-
AZL-54286
CVE-2024-45337 affecting package moby-compose for versions less than 2.17.3-9
-
AZL-54290
CVE-2024-45337 affecting package packer for versions less than 1.9.5-5
-
AZL-54315
CVE-2024-45337 affecting package podman 4.1.1-26
-
AZL-54317
CVE-2024-45337 affecting package cert-manager for versions less than 1.11.2-16
-
AZL-54320
CVE-2024-45337 affecting package moby-engine for versions less than 24.0.9-13
-
AZL-54327
CVE-2024-45337 affecting package cf-cli for versions less than 8.7.3-4
-
AZL-54330
CVE-2024-45337 affecting package packer for versions less than 1.9.5-4
-
AZL-54333
CVE-2024-45337 affecting package kubevirt for versions less than 1.2.0-11
-
AZL-54345
CVE-2024-45337 affecting package docker-buildx for versions less than 0.14.0-2
-
AZL-54353
CVE-2024-45337 affecting package cri-o 1.30.1-1
-
AZL-54357
CVE-2024-45337 affecting package moby-engine for versions less than 25.0.3-9
-
AZL-54363
CVE-2024-45337 affecting package telegraf for versions less than 1.31.0-3
-
AZL-54372
CVE-2024-45337 affecting package cert-manager for versions less than 1.12.13-2
-
AZL-54381
CVE-2024-45337 affecting package docker-compose for versions less than 2.27.0-2
-
AZL-54384
CVE-2024-45337 affecting package gh for versions less than 2.62.0-3
- CGA-2256-8v3r-4jjf
- CGA-226x-5hvr-wpcv
- CGA-2273-m8j6-hp35
- CGA-2299-xhw2-jgw9
- CGA-22c9-278h-xhrx
- CGA-233j-6244-jcv7
- CGA-23hx-qmpv-qw6x
- CGA-244g-7425-j7w5
- CGA-244v-6f79-mqv7
- CGA-246g-jpr5-vf9j
- CGA-24g3-fm5j-p8c9
- CGA-24hc-558g-7j4f
- CGA-24hf-fwgv-v9mj
- CGA-24ph-279c-gr86
- CGA-24vg-5gxw-83v8
- CGA-24vm-28p5-hwp9
- CGA-24xx-596q-4qp5
- CGA-2544-7r63-h535
- CGA-2546-mf35-3vqj
- CGA-25f3-q29h-vm25
- CGA-25h4-6495-2cg6
- CGA-25h4-7ccx-phgp
- CGA-25hv-q299-wpxq
- CGA-25jc-mrrf-54h2
- CGA-25px-h863-g646
- CGA-2676-vhq2-jhvr
- CGA-26q5-q53j-5668
- CGA-26qv-5cg2-4q5w
- CGA-26rf-w2h6-vhvq
- CGA-26x9-p8j4-q463
- CGA-2759-c79m-gxhg
- CGA-276r-m49g-cwh6
- CGA-278w-gmjh-6j86
- CGA-2796-xcgc-m2rc
- CGA-27fx-55fp-443x
- CGA-27qc-hgp3-62fr
- CGA-27w3-jxjw-732w
- CGA-2835-j6p5-q547
- CGA-284x-m746-hcc4
- CGA-286g-j7h3-cwmw
- CGA-28fw-rqrp-fxqc
- CGA-28g3-w2m6-j99g
- CGA-28gp-gc6x-4rj6
- CGA-28hj-q9m3-pc4j
- CGA-296x-r85f-6mpq
- CGA-29f7-w9cw-3pw5
- CGA-29hh-f7gw-v6g7
- CGA-29jf-5mp7-gmc5
- CGA-29mg-9x7w-95fj
- CGA-29r8-jrxp-796v
- CGA-29x5-p8mh-xmhr
- CGA-29x5-pc43-hpfm
- CGA-2c75-xcg3-cjfh
- CGA-2cf6-g3c7-5prq
- CGA-2cvc-9627-v564
- CGA-2f93-r7xv-fjc9
- CGA-2f9j-8phf-m3h7
- CGA-2fmg-gh2c-mqpm
- CGA-2g83-72cv-2hq9
- CGA-2g95-4p3p-4gp2
- CGA-2gg9-c4wm-vv9g
- CGA-2gmc-mffq-3gqm
- CGA-2gw9-hq34-4jv7
- CGA-2h33-h95f-mhvr
- CGA-2h4r-3hq3-2jrr
- CGA-2h53-vgv7-w24j
- CGA-2h88-qfch-m8jf
- CGA-2hg2-ggc4-xq8q
- CGA-2hhf-5wxf-2jpm
- CGA-2hhq-p63w-fccv
- CGA-2hj3-7h5f-fr43
- CGA-2hm3-h43q-34gv
- CGA-2hmf-qf2w-2p8r
- CGA-2hq3-fq5h-2h6m
- CGA-2hqp-q7gv-vg56
- CGA-2hx5-532w-786m
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2024-45337.
References
- 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
- http://www.openwall.com/lists/oss-security/2024/12/11/2
- https://security.netapp.com/advisory/ntap-20250131-0007/