gk-cli icon indicating copy to clipboard operation
gk-cli copied to clipboard

[BUG] Security: gk binary compiled with Go < 1.25.7 — affected by CVE-2025-68121 (crypto/tls session resumption bypass)

Open lethequang opened this issue 7 months ago • 2 comments

Description

Summary

AWS Inspector flags the gk binary (bundled with GitLens for VS Code / Cursor) as affected by CVE-2025-68121, a Critical (CVSS 10.0) vulnerability in Go's crypto/tls package. The fix requires Go ≥ 1.25.7 (released 2026-02-04) or ≥ 1.24.13.

Details

  • CVE: [CVE-2025-68121](https://nvd.nist.gov/vuln/detail/CVE-2025-68121)
  • Go Advisory: [GO-2026-4337](https://pkg.go.dev/vuln/GO-2026-4337)
  • GHSA: [GHSA-j443-wcqq-xprh](https://github.com/advisories/GHSA-j443-wcqq-xprh)
  • Affected package: crypto/tls (Go stdlib)
  • Fix versions: Go 1.25.7+ / Go 1.24.13+

Vulnerability

During TLS session resumption, Go's crypto/tls does not re-validate the peer's certificate chain against the current ClientCAs / RootCAs configuration. If the trust store is modified between the initial handshake and a resumed connection (via Config.Clone() or GetConfigForClient), the resumed handshake may succeed when it should have failed.

How it was detected

Scanner: AWS Inspector
Severity: Critical
Type: Package Vulnerability
Affected package: go/stdlib
Installed version: 0:1.25.3
Fixed version: 1.25.7
File path: ~/.cursor-server/data/User/globalStorage/eamodio.gitlens/gk

The gk binary installed by GitLens was compiled with Go 1.25.3, which is below the patched version.

Practical risk assessment

We acknowledge the practical risk is low for this specific binary because:

  1. gk acts as a client-side CLI tool, not a TLS server
  2. MCP communication with the IDE uses stdio, not TLS
  3. The vulnerable code path (dynamic CA mutation during session resumption) is unlikely to be exercised

However, vulnerability scanners flag based on the embedded Go version, and organizations with compliance requirements need the binary rebuilt with a patched toolchain to clear the finding.

Request

  1. Rebuild gk with Go ≥ 1.25.7 (or 1.26.x) and publish a new release
  2. Document the Go toolchain version in release notes or attach SBOM / build provenance to release assets, so downstream consumers can verify remediation without downloading and inspecting the binary
  3. Confirm whether v3.1.55 (2026-04-08) already includes the fix — the release notes only mention "docs: add MCP section" and do not reference any dependency updates

Verification

Downstream users can check with:

go version -m ./gk | grep '^\s*go\s'

Expected output after fix: go1.25.7 or higher.

Environment

  • Extension: GitLens (eamodio.gitlens) in VS Code / Cursor remote server
  • Platform: Linux amd64
  • Scanner: AWS Inspector
  • gk version at time of finding: compiled with Go 1.25.3

GitKraken CLI Version

Core: 3.1.59 / Installer: 3.1.55

OS Version

No response

Git Version

No response

Logs, Screenshots, Screen Captures, URLs, etc

No response

lethequang avatar Apr 20 '26 07:04 lethequang

Thanks for the detailed report and for the thorough practical-risk analysis — it's appreciated.

You're right on both counts: the embedded Go version on the currently-shipping binary is 1.25.3, and the real-world exploitability for gk is low. As you noted, gk is a client-side CLI, MCP communication uses stdio rather than TLS, and we don't dynamically mutate ClientCAs/RootCAs between handshakes, so the vulnerable code path isn't exercised. That said, clearing the scanner finding is valuable for downstream users with compliance requirements, so we're rebuilding on a patched toolchain.

Fix is queued for the next release.

miguelb-gk avatar Apr 22 '26 21:04 miguelb-gk

Will be released in 3.1.60

miguelb-gk avatar Apr 22 '26 23:04 miguelb-gk