Skip to content

fix: bump golang.org/x/crypto to v0.52.0 and update alpine digest#307

Merged
Farjaad merged 2 commits into
mainfrom
fix/security-bump-crypto-alpine
Jul 7, 2026
Merged

fix: bump golang.org/x/crypto to v0.52.0 and update alpine digest#307
Farjaad merged 2 commits into
mainfrom
fix/security-bump-crypto-alpine

Conversation

@Farjaad

@Farjaad Farjaad commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes 4 critical vulnerabilities detected by grype in the opslevel-runner image.

Critical CVEs Fixed

CVE Package From To
GO-2026-5005 golang.org/x/crypto v0.50.0 v0.52.0
GO-2026-5019 golang.org/x/crypto v0.50.0 v0.52.0
GO-2026-5020 golang.org/x/crypto v0.50.0 v0.52.0
CVE-2026-34182 libcrypto3 (Alpine) 3.5.6-r0 3.5.7-r0 (via updated digest)

Changes

  • src/go.mod / src/go.sum: bumped golang.org/x/crypto from v0.50.0 to v0.52.0 (also pulls in updated x/net, x/sys, x/text, x/tools as transitive upgrades)
  • Dockerfile: updated pinned alpine:latest and golang:alpine digests to current, which includes libcrypto3 3.5.7-r0

Changelog

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-39833ssh/agent
NewKeyring() silently accepted keys with the ConfirmBeforeUse constraint 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-39831ssh
Verify() 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-39834ssh
Writing data larger than 4GB in a single Write call on an SSH channel caused an integer overflow in the payload size calculation, spinning indefinitely sending empty packets. Fixed by using int64 for 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 AuthEnvelopedData

Insufficient input validation on the cipher and tag length fields in AuthEnvelopedData containers. Two attack vectors:

  1. Cipher confusion: An on-path attacker can rewrite a captured AES-GCM message to use AES-256-OFB (unauthenticated mode), causing the victim to decrypt successfully with no MAC check — enabling a decryption oracle.
  2. Tag truncation: An attacker can reduce the AEAD tag to 1 byte, making it brute-forceable and bypassing integrity validation.

FIPS modules are not affected.

Transitive Go bumps (no CVEs)

Package From To
golang.org/x/net v0.53.0 v0.54.0
golang.org/x/mod v0.34.0 v0.35.0
golang.org/x/sys v0.43.0 v0.45.0
golang.org/x/term v0.42.0 v0.43.0
golang.org/x/text v0.36.0 v0.37.0
golang.org/x/tools v0.43.0 v0.44.0

Routine minor bumps pulled in as transitive dependencies of x/crypto.

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.
@Farjaad Farjaad requested a review from archf July 6, 2026 20:11
@Farjaad Farjaad merged commit e4b51a6 into main Jul 7, 2026
4 checks passed
@Farjaad Farjaad deleted the fix/security-bump-crypto-alpine branch July 7, 2026 14:43
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>
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.

3 participants