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.
- BDU:2024-11338
- GHSA-v778-237x-gjrc
- GO-2024-3321
- 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:14599-1
- openSUSE-SU-2024:14602-1
- openSUSE-SU-2024:14604-1
- openSUSE-SU-2025:0025-1
- openSUSE-SU-2025:0056-1
- openSUSE-SU-2025:0094-1
- openSUSE-SU-2025:14613-1
- openSUSE-SU-2025:14633-1
- openSUSE-SU-2025:14641-1
- openSUSE-SU-2025:14660-1
- openSUSE-SU-2025:14713-1
- Published
- Dec 11, 2024
- Updated
- Jun 17, 2026
- EPSS
- 3.2% · 88th percentile
- CWE
- CWE-1108
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
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 helpAffected 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.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | golang-go.crypto | all versions | — |
| Debian:14 | golang-go.crypto | before 1:0.42.0-1 | 1:0.42.0-1 |
| Go | golang.org/x/crypto | before 0.31.0 | 0.31.0 |
| openSUSE:Leap 15.6 | vexctl | before 0.4.1+git78.f951e3a-150000.1.11.1 | 0.4.1+git78.f951e3a-150000.1.11.1 |
| openSUSE:Leap 16.0 | git-bug | before 0.10.1-bp160.1.1 | 0.10.1-bp160.1.1 |
| openSUSE:Leap 16.0 | gitea-tea | before 0.15.1-bp160.1.1 | 0.15.1-bp160.1.1 |
| openSUSE:Leap 16.0 | google-guest-agent | before 20250506.01-160000.1.1 | 20250506.01-160000.1.1 |
| openSUSE:Leap 16.0 | trivy | before 0.66.0-bp160.1.1 | 0.66.0-bp160.1.1 |
| openSUSE:Leap 16.0 | vexctl | before 0.4.4+git20.5d61136-160000.1.1 | 0.4.4+git20.5d61136-160000.1.1 |
| openSUSE:Tumbleweed | apptainer | before 1.3.6-5.1 | 1.3.6-5.1 |
| openSUSE:Tumbleweed | cloudflared | before 2024.12.1-1.1 | 2024.12.1-1.1 |
| openSUSE:Tumbleweed | git-bug | before 0.8.0+git.1733745604.d499b6e-1.1 | 0.8.0+git.1733745604.d499b6e-1.1 |
| openSUSE:Tumbleweed | gitleaks | before 8.24.2-1.1 | 8.24.2-1.1 |
| openSUSE:Tumbleweed | golang-github-prometheus-prometheus | before 3.1.0-1.1 | 3.1.0-1.1 |
| openSUSE:Tumbleweed | google-guest-agent | before 20250327.01-1.1 | 20250327.01-1.1 |
| openSUSE:Tumbleweed | gopass | before 1.15.16-1.1 | 1.15.16-1.1 |
| openSUSE:Tumbleweed | govulncheck-vulndb | before 0.0.20241213T205935-1.1 | 0.0.20241213T205935-1.1 |
| openSUSE:Tumbleweed | grafana | before 11.3.0-4.1 | 11.3.0-4.1 |
| openSUSE:Tumbleweed | helm | before 3.16.4-1.1 | 3.16.4-1.1 |
| openSUSE:Tumbleweed | helm3 | before 3.19.2-1.1 | 3.19.2-1.1 |
| openSUSE:Tumbleweed | loki | before 3.3.2-1.1 | 3.3.2-1.1 |
| openSUSE:Tumbleweed | minikube | before 1.36.0-2.1 | 1.36.0-2.1 |
| openSUSE:Tumbleweed | rclone | before 1.69.0-1.1 | 1.69.0-1.1 |
| openSUSE:Tumbleweed | rime-plum-go | before 1.0.3-1.1 | 1.0.3-1.1 |
+59
Same product
golang.org/x/crypto: all recordsOther 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/ssh30Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| golang.org/x/crypto golang.org/x/crypto/ssh | 0.31.0 | Vendor (CNA) |
| debian:golang-go.crypto | 1:0.42.0-1 · Debian:14 | Package registry (OSV) |
| Go:golang.org/x/crypto | 0.31.0 | Package registry (OSV) |
| opensuse:dracut-saltboot | 0.1.1728559936.c16d4fb-150000.1.56.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:golang-github-prometheus-promu | 0.17.0-150000.3.24.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:kubevirt | 1.4.1-150600.5.24.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| red hat:rosa | 0:1.2.53-5be4e19.el8 · Red Hat:openshift_service_on_aws:1::el8 | Package registry (OSV) |
| red hat:rosa-redistributable | 0:1.2.53-5be4e19.el8 · Red Hat:openshift_service_on_aws:1::el8 | Package registry (OSV) |
| suse:dracut-saltboot | 0.1.1728559936.c16d4fb-150000.1.56.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:golang-github-prometheus-prometheus | 2.53.3-1.56.1 · SUSE:Manager Client Tools 12 | Package registry (OSV) |
| suse:golang-github-prometheus-prometheus | 2.53.3-150000.3.59.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:golang-github-prometheus-promu | 0.17.0-1.24.1 · SUSE:Manager Client Tools 12 | Package registry (OSV) |
| suse:golang-github-prometheus-promu | 0.17.0-150000.3.24.1 · SUSE:Linux Enterprise Module for Package Hub 15 SP6 | Package registry (OSV) |
| suse:grafana | 10.4.13-1.66.2 · SUSE:Manager Client Tools 12 | Package registry (OSV) |
| suse:grafana | 10.4.13-150000.1.66.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:kubevirt | 1.4.1-150600.5.24.1 · SUSE:Linux Enterprise Module for Containers 15 SP6 | Package registry (OSV) |
| suse:kubevirt | 1.5.2-150700.3.5.2 · SUSE:Linux Enterprise Module for Containers 15 SP7 | Package registry (OSV) |
| suse:release-notes-susemanager | 4.3.15.2-150400.3.133.1 · SUSE:Manager Server 4.3 | Package registry (OSV) |
| suse:spacecmd | 5.0.11-150000.3.130.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:spacecmd | 5.0.11-38.153.1 · SUSE:Manager Client Tools 12 | Package registry (OSV) |
| suse:supportutils-plugin-salt | 1.2.3-150000.3.16.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:supportutils-plugin-salt | 1.2.3-6.25.1 · SUSE:Manager Client Tools 12 | Package registry (OSV) |
| suse:supportutils-plugin-susemanager-client | 5.0.4-150000.3.27.1 · SUSE:Manager Client Tools 15 | Package registry (OSV) |
| suse:supportutils-plugin-susemanager-client | 5.0.4-6.33.1 · SUSE:Manager Client Tools 12 | Package registry (OSV) |
| suse:uyuni-tools | 0.1.28-1.16.1 · SUSE:Manager Client Tools 12 | Package registry (OSV) |
| suse:uyuni-tools | 0.1.28-150000.1.16.1 · SUSE:Manager Client Tools 15 | Package 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.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:6 | 2024-12-17 |
| Proof-of-concept repository on GitHub | stars:1 | 2024-12-17 |
| Proof-of-concept repository on GitHub | stars:1 | 2025-01-24 |
| Proof-of-concept repository on GitHub | stars:0 | 2026-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.
- Published
- First PoC+5 d
- TodaySep 30, 2026+658 d
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.
Credits
All researchersFinders, 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
Weakness class (CWE)
CWE-1108 · Excessive Reliance on Global VariablesCVSS 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
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- www.openwall.com/lists/oss-security/2024/12/11/2
- security.netapp.com/advisory/ntap-20250131-0007/
- github.com/golang/crypto/commit/b4f1988a35dee11ec3e05d6bf3e90b695fbd8909
- go.dev/cl/635315
- go.dev/issue/70779
- groups.google.com/g/golang-announce/c/-nPEi39gI4Q/m/cGVPJCqdAQAJ
- pkg.go.dev/vuln/GO-2024-3321
Vendor advisories and official records. Exploit/PoC links are deliberately left out.