Skip to content

Commit 5a0d2ed

Browse files
chore: upgrade golang.org/x/crypto to ^0.52.0 to address CVE-2026-39827
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>
1 parent 889e2b1 commit 5a0d2ed

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111
- Added per-step token cost tracking and estimated tool call token usage to Ask Sourcebot chat history. [#1353](https://github.com/sourcebot-dev/sourcebot/pull/1353)
1212

13+
### Fixed
14+
- Upgraded `golang.org/x/crypto` to `^0.52.0` in the zoekt build to address CVE-2026-39827. [#1363](https://github.com/sourcebot-dev/sourcebot/pull/1363)
15+
1316
## [5.0.4] - 2026-06-18
1417

1518
### Changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ WORKDIR /zoekt
2626
COPY vendor/zoekt/go.mod vendor/zoekt/go.sum ./
2727
RUN go mod download
2828
COPY vendor/zoekt ./
29+
# Force-upgrade golang.org/x/crypto to a patched version to address CVE-2026-39827
30+
# (unbounded memory growth from repeatedly-rejected SSH channels). This pulls the
31+
# fixed version into the built zoekt binaries; remove once vendor/zoekt pins >= v0.52.0.
32+
RUN go get golang.org/x/crypto@v0.52.0
2933
RUN CGO_ENABLED=0 GOOS=linux go build -o /cmd/ ./cmd/...
3034
# -------------------------
3135

0 commit comments

Comments
 (0)