Skip to content

chore: upgrade golang.org/x/crypto to ^0.52.0 to address CVE-2026-39827#1363

Draft
linear-code[bot] wants to merge 1 commit into
mainfrom
linear/sou-1421-sourcebot-devsourcebot-cve-2026-39827-an-authenticated-47e7
Draft

chore: upgrade golang.org/x/crypto to ^0.52.0 to address CVE-2026-39827#1363
linear-code[bot] wants to merge 1 commit into
mainfrom
linear/sou-1421-sourcebot-devsourcebot-cve-2026-39827-an-authenticated-47e7

Conversation

@linear-code

@linear-code linear-code Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Fixes SOU-1421

Addresses CVE-2026-39827 (HIGH) in golang.org/x/crypto (v0.50.0 → v0.52.0), where an authenticated SSH client repeatedly opening rejected channels could cause unbounded memory growth in the server.

x/crypto enters the Sourcebot image only through the Go build of the vendored zoekt submodule, where it's an indirect dependency pinned at v0.50.0. The proper fix is to bump it in sourcebot-dev/zoekt's go.mod and then bump the submodule pointer here, but that requires a commit in the zoekt repo. As a self-contained mitigation, this forces the patched version into the zoekt build via the Dockerfile (go get golang.org/x/crypto@v0.52.0), so the compiled binaries embed v0.52.0.

⚠️ The override is marked as temporary in the Dockerfile and should be removed once vendor/zoekt pins x/crypto >= v0.52.0 directly.

Force-upgrade x/crypto in the zoekt Docker build to a patched version
(>= v0.52.0) to address CVE-2026-39827, where an authenticated SSH
client repeatedly opening rejected channels could cause unbounded
memory growth in the server. x/crypto enters the image only via the
vendored zoekt Go build, so the upgrade is applied there.

Generated with [Linear](https://linear.app/sourcebot/issue/SOU-1421/sourcebot-devsourcebot-cve-2026-39827-an-authenticated-ssh-client-that#agent-session-dd6262ca)

Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
@linear-code linear-code Bot force-pushed the linear/sou-1421-sourcebot-devsourcebot-cve-2026-39827-an-authenticated-47e7 branch from 4d219b7 to 5a0d2ed Compare June 23, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants