Skip to content
Noroxi
CVE-2024-45337· NVD / CVE Program· CNA Go

Misuse of connection.serverAuthenticate may cause authorization bypass in golang.org/x/crypto

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.

CriticalCVSS 9.1 · v3.1—Proof of concept Fix available
Published
Dec 11, 2024
Updated
Jun 17, 2026
EPSS
3.2% · 88th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

37

Monitor

Low priority for now.

CVSS
36 / 40 · 9.1 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 3.2%

CISA SSVC decision

Exploitation
none
Automatable
yes
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Affected systems

—

Versions reported by the vendor

Affected version ranges reported by the assigning authority (Go). Independent of NVD's CPE analysis and usually ahead of it.

  • golang.org/x/crypto golang.org/x/crypto/ssh

    • before 0.31.0affected · semver

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12golang-go.cryptoall versions—
Debian:14golang-go.cryptobefore 1:0.42.0-11:0.42.0-1
Gogolang.org/x/cryptobefore 0.31.00.31.0
openSUSE:Leap 15.6vexctlbefore 0.4.1+git78.f951e3a-150000.1.11.10.4.1+git78.f951e3a-150000.1.11.1
openSUSE:Leap 16.0git-bugbefore 0.10.1-bp160.1.10.10.1-bp160.1.1
openSUSE:Leap 16.0gitea-teabefore 0.15.1-bp160.1.10.15.1-bp160.1.1
openSUSE:Leap 16.0google-guest-agentbefore 20250506.01-160000.1.120250506.01-160000.1.1
openSUSE:Leap 16.0trivybefore 0.66.0-bp160.1.10.66.0-bp160.1.1
openSUSE:Leap 16.0vexctlbefore 0.4.4+git20.5d61136-160000.1.10.4.4+git20.5d61136-160000.1.1
openSUSE:Tumbleweedapptainerbefore 1.3.6-5.11.3.6-5.1
openSUSE:Tumbleweedcloudflaredbefore 2024.12.1-1.12024.12.1-1.1
openSUSE:Tumbleweedgit-bugbefore 0.8.0+git.1733745604.d499b6e-1.10.8.0+git.1733745604.d499b6e-1.1
openSUSE:Tumbleweedgitleaksbefore 8.24.2-1.18.24.2-1.1
openSUSE:Tumbleweedgolang-github-prometheus-prometheusbefore 3.1.0-1.13.1.0-1.1
openSUSE:Tumbleweedgoogle-guest-agentbefore 20250327.01-1.120250327.01-1.1
openSUSE:Tumbleweedgopassbefore 1.15.16-1.11.15.16-1.1
openSUSE:Tumbleweedgovulncheck-vulndbbefore 0.0.20241213T205935-1.10.0.20241213T205935-1.1
openSUSE:Tumbleweedgrafanabefore 11.3.0-4.111.3.0-4.1
openSUSE:Tumbleweedhelmbefore 3.16.4-1.13.16.4-1.1
openSUSE:Tumbleweedhelm3before 3.19.2-1.13.19.2-1.1
openSUSE:Tumbleweedlokibefore 3.3.2-1.13.3.2-1.1
openSUSE:Tumbleweedminikubebefore 1.36.0-2.11.36.0-2.1
openSUSE:Tumbleweedrclonebefore 1.69.0-1.11.69.0-1.1
openSUSE:Tumbleweedrime-plum-gobefore 1.0.3-1.11.0.3-1.1

+59

Other highest-scoring records for the same primary product.

  • CVE-2026-56854Source-address critical option not enforced for non-public-key auth callbacks in golang.org/x/crypto/ssh
    30Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
golang.org/x/crypto golang.org/x/crypto/ssh0.31.0Vendor (CNA)
debian:golang-go.crypto1:0.42.0-1 · Debian:14Package registry (OSV)
Go:golang.org/x/crypto0.31.0Package registry (OSV)
opensuse:dracut-saltboot0.1.1728559936.c16d4fb-150000.1.56.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:golang-github-prometheus-promu0.17.0-150000.3.24.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kubevirt1.4.1-150600.5.24.1 · openSUSE:Leap 15.6Package registry (OSV)
red hat:rosa0:1.2.53-5be4e19.el8 · Red Hat:openshift_service_on_aws:1::el8Package registry (OSV)
red hat:rosa-redistributable0:1.2.53-5be4e19.el8 · Red Hat:openshift_service_on_aws:1::el8Package registry (OSV)
suse:dracut-saltboot0.1.1728559936.c16d4fb-150000.1.56.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:golang-github-prometheus-prometheus2.53.3-1.56.1 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:golang-github-prometheus-prometheus2.53.3-150000.3.59.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:golang-github-prometheus-promu0.17.0-1.24.1 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:golang-github-prometheus-promu0.17.0-150000.3.24.1 · SUSE:Linux Enterprise Module for Package Hub 15 SP6Package registry (OSV)
suse:grafana10.4.13-1.66.2 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:grafana10.4.13-150000.1.66.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:kubevirt1.4.1-150600.5.24.1 · SUSE:Linux Enterprise Module for Containers 15 SP6Package registry (OSV)
suse:kubevirt1.5.2-150700.3.5.2 · SUSE:Linux Enterprise Module for Containers 15 SP7Package registry (OSV)
suse:release-notes-susemanager4.3.15.2-150400.3.133.1 · SUSE:Manager Server 4.3Package registry (OSV)
suse:spacecmd5.0.11-150000.3.130.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:spacecmd5.0.11-38.153.1 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:supportutils-plugin-salt1.2.3-150000.3.16.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:supportutils-plugin-salt1.2.3-6.25.1 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:supportutils-plugin-susemanager-client5.0.4-150000.3.27.1 · SUSE:Manager Client Tools 15Package registry (OSV)
suse:supportutils-plugin-susemanager-client5.0.4-6.33.1 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:uyuni-tools0.1.28-1.16.1 · SUSE:Manager Client Tools 12Package registry (OSV)
suse:uyuni-tools0.1.28-150000.1.16.1 · SUSE:Manager Client Tools 15Package registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Proof-of-concept repository on GitHub ×4

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Proof-of-concept repository on GitHubstars:62024-12-17
Proof-of-concept repository on GitHubstars:12024-12-17
Proof-of-concept repository on GitHubstars:12025-01-24
Proof-of-concept repository on GitHubstars:02026-04-13

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoC+5 d
  3. TodaySep 30, 2026+658 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
none
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
None

CVSS vector

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

nvd-secondary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records