fix: bump golang.org/x/crypto to v0.52.0 and update alpine digest#307
Merged
Conversation
Fixes 4 critical vulnerabilities in the opslevel-runner image: - GO-2026-5005: NewKeyring ConfirmBeforeUse constraint not enforced (x/crypto < 0.52.0) - GO-2026-5019: FIDO/U2F User Presence flag not checked (x/crypto < 0.52.0) - GO-2026-5020: SSH integer overflow on writes > 4GB (x/crypto < 0.52.0) - CVE-2026-34182: OpenSSL CMS AuthEnvelopedData stack buffer overflow (libcrypto3 < 3.5.7-r0) Also pulls in updated golang.org/x/net, sys, term, text, tools as transitive upgrades.
archf
approved these changes
Jul 6, 2026
wesleyjellis
pushed a commit
that referenced
this pull request
Jul 10, 2026
* fix: bump golang.org/x/crypto to v0.52.0 and update alpine digest Fixes 4 critical vulnerabilities in the opslevel-runner image: - GO-2026-5005: NewKeyring ConfirmBeforeUse constraint not enforced (x/crypto < 0.52.0) - GO-2026-5019: FIDO/U2F User Presence flag not checked (x/crypto < 0.52.0) - GO-2026-5020: SSH integer overflow on writes > 4GB (x/crypto < 0.52.0) - CVE-2026-34182: OpenSSL CMS AuthEnvelopedData stack buffer overflow (libcrypto3 < 3.5.7-r0) Also pulls in updated golang.org/x/net, sys, term, text, tools as transitive upgrades. * chore: add changie for security dependency bumps --------- Co-authored-by: Farjaad Rawasia <farjaad@opslevel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes 4 critical vulnerabilities detected by grype in the
opslevel-runnerimage.Critical CVEs Fixed
golang.org/x/cryptogolang.org/x/cryptogolang.org/x/cryptolibcrypto3(Alpine)Changes
src/go.mod/src/go.sum: bumpedgolang.org/x/cryptofromv0.50.0tov0.52.0(also pulls in updatedx/net,x/sys,x/text,x/toolsas transitive upgrades)Dockerfile: updated pinnedalpine:latestandgolang:alpinedigests to current, which includeslibcrypto3 3.5.7-r0Changelog
golang.org/x/crypto: v0.50.0 → v0.52.0
Released May 22, 2026. All three CVEs fixed in this single release.
GO-2026-5005 / CVE-2026-39833 —
ssh/agentNewKeyring()silently accepted keys with theConfirmBeforeUseconstraint but never enforced it — keys would sign without any confirmation prompt. Now returns an error when unsupported constraints are requested.Credited to: NCC Group Cryptography Services, sponsored by Teleport
GO-2026-5019 / CVE-2026-39831 —
sshVerify()for FIDO/U2F key types (sk-ecdsa-sha2-nistp256@openssh.com,sk-ssh-ed25519@openssh.com) did not check the User Presence flag, so signatures generated without physical touch were accepted. Unattended hardware key use was possible.Credited to: NCC Group Cryptography Services, sponsored by Teleport
GO-2026-5020 / CVE-2026-39834 —
sshWriting data larger than 4GB in a single
Writecall on an SSH channel caused an integer overflow in the payload size calculation, spinning indefinitely sending empty packets. Fixed by usingint64for the size comparison.Credited to: NCC Group Cryptography Services, sponsored by Teleport
Alpine libcrypto3: 3.5.6-r0 → 3.5.7-r0
CVE-2026-34182 (CVSS 9.1 Critical) — OpenSSL CMS
AuthEnvelopedDataInsufficient input validation on the cipher and tag length fields in
AuthEnvelopedDatacontainers. Two attack vectors:FIPS modules are not affected.
Transitive Go bumps (no CVEs)
golang.org/x/netgolang.org/x/modgolang.org/x/sysgolang.org/x/termgolang.org/x/textgolang.org/x/toolsRoutine minor bumps pulled in as transitive dependencies of
x/crypto.