{"answers":{"affected":"3 open source packages ship an affected version, including golang.org/x/crypto.","exploited":"There is no known exploitation of CVE-2024-45337 in the wild and no public exploit code.","fix":"Upgrade golang.org/x/crypto to 0.31.0 or later.","what":"CVE-2024-45337 is a critical authentication bypass vulnerability in golang.org/x/crypto/ssh, published on 11 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-45337 and fix it if it is affected.\n\nWhat it is: CVE-2024-45337 is a critical authentication bypass vulnerability in golang.org/x/crypto/ssh, published on 11 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-45337 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- golang.org/x/crypto (Go): affected all versions; fixed in 0.31.0\n- golang.org/x/crypto (Go): affected all versions; fixed in 0.31.0\n- golang.org/x/crypto (Go): affected all versions; fixed in 0.31.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-45337/ (Markdown: https://insights.sbomify.com/CVE-2024-45337/index.md)","id":"CVE-2024-45337","markdown":"https://insights.sbomify.com/CVE-2024-45337/index.md","name":"CVE-2024-45337","record":{"aliases":["AZL-54281","AZL-54286","AZL-54290","AZL-54315","AZL-54317","AZL-54320","AZL-54327","AZL-54330","AZL-54333","AZL-54345","AZL-54353","AZL-54357","AZL-54363","AZL-54372","AZL-54381","AZL-54384","CLEANSTART-2026-GJ99404","CLEANSTART-2026-PY90502","CLEANSTART-2026-QZ20471","DEBIAN-CVE-2024-45337","GHSA-v778-237x-gjrc","GO-2024-3321","MINI-225p-wh6f-vm9w","MINI-24jf-gm96-44mh","MINI-2cj7-vh65-qqg5","MINI-339j-45j7-p732","MINI-4c36-3pvv-8h6q","MINI-4m22-gc7w-5qfj","MINI-53j9-962p-57q3","MINI-5f2c-r4qg-w5wf","MINI-5mmg-fq85-96f6","MINI-5vch-h76p-2gcr","MINI-6f8r-8mqf-7h46","MINI-6h66-5w62-hprr","MINI-8vgw-5xc7-m52c","MINI-8xwq-jfxw-2wcq","MINI-929j-7933-hq8g","MINI-933p-63gq-hp65","MINI-97rc-g8j5-chgj","MINI-98gr-4pm8-789p","MINI-9jfg-3c5f-r73h","MINI-c9cm-952w-ph54","MINI-cf44-vg2v-9x7r","MINI-cm4h-j3p8-5q77","MINI-f6g5-9vwf-xp6q","MINI-g8m7-36c2-4rx4","MINI-g9h3-2vq8-wmj7","MINI-gx78-3mqq-fv4x","MINI-gxfw-xhjp-g443","MINI-h7fm-vvq5-2mmm","MINI-hq66-4fx9-5vj4","MINI-hw6w-m24j-7jvp","MINI-j48x-x4qh-hfvp","MINI-j8x5-hqcf-xh32","MINI-jg4f-h5mv-5f5g","MINI-jp2r-cv7p-vh57","MINI-jqpp-v9cj-62c6","MINI-mfr2-r9p9-qxxj","MINI-mh5f-7w7q-hr7x","MINI-pfxx-69g8-qx8g","MINI-pv87-hmp5-26h7","MINI-qh9g-qq98-cpx4","MINI-qhq8-94x3-vc4c","MINI-r2m3-wpqx-hc62","MINI-r2wf-f5f8-282h","MINI-r4rq-cj28-vxrq","MINI-r7rc-f3pr-qpx3","MINI-rmfc-r9c4-ph89","MINI-rvrj-x89w-828j","MINI-rwr2-5r9m-h2r3","MINI-vhqw-8p54-x4m3","MINI-w47x-3ppw-2mq7","MINI-wv62-h89f-m95r","MINI-xwph-23r9-fhh4","ROOT-APP-GOBINARY-CVE-2024-45337","SUSE-SU-2025:1142-1","SUSE-SU-2025:1143-1","UBUNTU-CVE-2024-45337","USN-7839-1","USN-7839-2","openSUSE-SU-2024:14573-1","openSUSE-SU-2024:14585-1","openSUSE-SU-2024:14590-1","openSUSE-SU-2024:14592-1","openSUSE-SU-2024:14593-1","openSUSE-SU-2024:14595-1","openSUSE-SU-2024:14602-1","openSUSE-SU-2024:14604-1","openSUSE-SU-2025:0025-1","openSUSE-SU-2025:14633-1","openSUSE-SU-2025:14660-1","openSUSE-SU-2025:14920-1","openSUSE-SU-2025:14969-1","openSUSE-SU-2025:15013-1","openSUSE-SU-2025:15463-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go SSH library","requires_auth":"none","summary":"Attackers can bypass authorization in Go SSH applications by exploiting misuse of the PublicKeyCallback to authenticate with a different key than the one used for access decisions.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[],"cvss":{"score":9.1,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[],"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.","ecosystems":["Go","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Linux Enterprise Module for Public Cloud 15 SP3","SUSE:Linux Enterprise Module for Public Cloud 15 SP4","SUSE:Linux Enterprise Module for Public Cloud 15 SP5","SUSE:Linux Enterprise Module for Public Cloud 15 SP6","SUSE:Package Hub 15 SP6","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2024-12-17","github_poc":5,"max_poc_stars":6,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-12-17T22:07:53Z","kind":"github_poc","ref":"https://github.com/NHAS/CVE-2024-45337-POC","stars":6,"title":"Proof of concept (POC) for CVE-2024-45337 "},{"date":"2024-12-17T22:22:03Z","kind":"github_poc","ref":"https://github.com/NHAS/VULNERABLE-CVE-2024-45337","stars":1,"title":"An example project that showcases golang code vulnerable to CVE-2024-45337"},{"date":"2025-01-24T15:17:47Z","kind":"github_poc","ref":"https://github.com/peace-maker/CVE-2024-45337","stars":1,"title":"Proof of Concept for CVE-2024-45337 against Gitea and Forgejo"},{"date":"2026-04-13T11:47:51Z","kind":"github_poc","ref":"https://github.com/Backline-playground/gogs","stars":0,"title":"Fork of gogs/gogs for reachability benchmark testing (CVE-2024-45337)"},{"date":"2026-07-07T20:45:27Z","kind":"github_poc","ref":"https://github.com/ferralon-demo/gitea-cve-2024-45337","stars":0,"title":"Security case-study: reachability vs SCA on Gitea CVE-2024-45337 — real code reconstructed at historical commits (PoE → failed fix → fix). Demo only, not for use."}],"tier":"poc_unverified"},"has_fix":true,"headline":"Misuse of connection.serverAuthenticate may cause authorization bypass in golang.org/x/crypto","id":"CVE-2024-45337","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":26,"n_references":5,"next":{"headline":"Non-linear parsing of case-insensitive content in golang.org/x/net/html","id":"CVE-2024-45338"},"packages":[{"ecosystem":"Go","fixed":["0.31.0"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/crypto","purl":null,"source":"GHSA-v778-237x-gjrc"},{"ecosystem":"Go","fixed":["0.31.0"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/crypto","purl":"pkg:golang/golang.org/x/crypto","source":"GHSA-v778-237x-gjrc"},{"ecosystem":"Go","fixed":["0.31.0"],"introduced":["0"],"last_affected":[],"package":"golang.org/x/crypto","purl":"pkg:golang/golang.org/x/crypto","source":"GO-2024-3321"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["20250327.01-150000.1.60.1"],"introduced":["0"],"last_affected":[],"package":"google-guest-agent","purl":"pkg:rpm/suse/google-guest-agent\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2025:1143-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["20250327.01-1.50.1"],"introduced":["0"],"last_affected":[],"package":"google-guest-agent","purl":"pkg:rpm/suse/google-guest-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2025:1142-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP3","fixed":["20250327.01-150000.1.60.1"],"introduced":["0"],"last_affected":[],"package":"google-guest-agent","purl":"pkg:rpm/suse/google-guest-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP3","source":"SUSE-SU-2025:1143-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP4","fixed":["20250327.01-150000.1.60.1"],"introduced":["0"],"last_affected":[],"package":"google-guest-agent","purl":"pkg:rpm/suse/google-guest-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP4","source":"SUSE-SU-2025:1143-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP5","fixed":["20250327.01-150000.1.60.1"],"introduced":["0"],"last_affected":[],"package":"google-guest-agent","purl":"pkg:rpm/suse/google-guest-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP5","source":"SUSE-SU-2025:1143-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP6","fixed":["20250327.01-150000.1.60.1"],"introduced":["0"],"last_affected":[],"package":"google-guest-agent","purl":"pkg:rpm/suse/google-guest-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP6","source":"SUSE-SU-2025:1143-1"},{"ecosystem":"SUSE:Package Hub 15 SP6","fixed":["4.4.2-bp156.3.3.1"],"introduced":["0"],"last_affected":[],"package":"cheat","purl":"pkg:rpm/suse/cheat\u0026distro=SUSE%20Package%20Hub%2015%20SP6","source":"openSUSE-SU-2025:0025-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["4.4.2-bp156.3.3.1"],"introduced":["0"],"last_affected":[],"package":"cheat","purl":"pkg:rpm/opensuse/cheat\u0026distro=openSUSE%20Leap%2015.6","source":"openSUSE-SU-2025:0025-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["20250327.01-150000.1.60.1"],"introduced":["0"],"last_affected":[],"package":"google-guest-agent","purl":"pkg:rpm/opensuse/google-guest-agent\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:1143-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2024.12.1-1.1"],"introduced":["0"],"last_affected":[],"package":"cloudflared","purl":"pkg:rpm/opensuse/cloudflared\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14585-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.8.0+git.1733745604.d499b6e-1.1"],"introduced":["0"],"last_affected":[],"package":"git-bug","purl":"pkg:rpm/opensuse/git-bug\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14592-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.24.2-1.1"],"introduced":["0"],"last_affected":[],"package":"gitleaks","purl":"pkg:rpm/opensuse/gitleaks\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14920-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.1.0-1.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/opensuse/golang-github-prometheus-prometheus\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14660-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["20250327.01-1.1"],"introduced":["0"],"last_affected":[],"package":"google-guest-agent","purl":"pkg:rpm/opensuse/google-guest-agent\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14969-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.15.16-1.1"],"introduced":["0"],"last_affected":[],"package":"gopass","purl":"pkg:rpm/opensuse/gopass\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15013-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["11.3.0-4.1"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/opensuse/grafana\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14633-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.16.4-1.1"],"introduced":["0"],"last_affected":[],"package":"helm","purl":"pkg:rpm/opensuse/helm\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14593-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.3.2-1.1"],"introduced":["0"],"last_affected":[],"package":"loki","purl":"pkg:rpm/opensuse/loki\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14604-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.36.0-2.1"],"introduced":["0"],"last_affected":[],"package":"minikube","purl":"pkg:rpm/opensuse/minikube\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15463-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.78.3-2.1"],"introduced":["0"],"last_affected":[],"package":"tailscale","purl":"pkg:rpm/opensuse/tailscale\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14602-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["17.0.5-1.1"],"introduced":["0"],"last_affected":[],"package":"teleport","purl":"pkg:rpm/opensuse/teleport\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14573-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.2.3-1.1"],"introduced":["0"],"last_affected":[],"package":"traefik","purl":"pkg:rpm/opensuse/traefik\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14590-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.11.16-1.1"],"introduced":["0"],"last_affected":[],"package":"traefik2","purl":"pkg:rpm/opensuse/traefik2\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14595-1"}],"prev":{"headline":"Sensitive headers incorrectly sent after cross-domain redirect in net/http","id":"CVE-2024-45336"},"products":["golang.org/x/crypto/ssh"],"published":"2024-12-11","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-02-18","vendors":["golang.org/x/crypto"]},"summary":"Attackers can bypass authorization in Go SSH applications by exploiting misuse of the PublicKeyCallback to authenticate with a different key than the one used for access decisions.","url":"https://insights.sbomify.com/CVE-2024-45337/"}