Skip to main content
CVE-2024-45337VulnerabilityPublished Updated

Golang go.crypto: Applications and libraries which misuse connection.serverAuthenticate (via callback field

Affects golang-go.cryptoSource GCVE Database

0
Compare

Not known to be exploited · CVSS 9.1 Critical · fixed in 1:0.0~git20151201.0.7b85b09-2ubuntu0.1~esm1 : patch golang-go.crypto as a priority.

Data as of 24 Nov 2026, 21:14 UTC

CVSS 3.1 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
3.7% chance of exploitation in 30 days – higher than 90% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1:0.0~git20151201.0.7b85b09-2ubuntu0.1~esm1, 20240716.00-0ubuntu1~16.04.0+esm1, 1:0.0~git20170629.0.5ef0053-2ubuntu0.1~esm1 +7
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Dec 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    Public exploit code: GitHub proofs of concept

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 25.10golang-go.cryptopkg:deb/ubuntu/golang-go.crypto?arch=source&distro=questingOther threatsAffected
  • =1:0.25.0-1
  • =1:0.25.0-1ubuntu0.1
Fixed in–
Ubuntu 24.04 LTSgoogle-guest-agentpkg:deb/ubuntu/google-guest-agent?arch=source&distro=nobleOther threatsAffected
  • <20250116.00-0ubuntu1~24.04.2
Fixed in
  • 20250116.00-0ubuntu1~24.04.2
Ubuntu Pro 24.04 LTSgolang-go.cryptopkg:deb/ubuntu/golang-go.crypto?arch=source&distro=esm-apps/nobleOther threatsAffected
  • <1:0.19.0-1ubuntu0.1~esm1
Fixed in
  • 1:0.19.0-1ubuntu0.1~esm1
Ubuntu 22.04 LTSgoogle-guest-agentpkg:deb/ubuntu/google-guest-agent?arch=source&distro=jammyOther threatsAffected
  • <20250116.00-0ubuntu1~22.04.1
Fixed in
  • 20250116.00-0ubuntu1~22.04.1
Ubuntu Pro 22.04 LTSgolang-go.cryptopkg:deb/ubuntu/golang-go.crypto?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <1:0.0~git20211202.5770296-1ubuntu0.1~esm1
Fixed in
  • 1:0.0~git20211202.5770296-1ubuntu0.1~esm1
Ubuntu Pro 20.04 LTSgoogle-guest-agentpkg:deb/ubuntu/google-guest-agent?arch=source&distro=esm-infra/focalOther threatsAffected
  • <20250116.00-0ubuntu1~20.04.0+esm1
Fixed in
  • 20250116.00-0ubuntu1~20.04.0+esm1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…