Skip to content

fix(envconsul): GO-2026-6303, GO-2026-6354, GO-2026-6355 0.14.0-r6 - #78737

Open
rq-jwhitlock wants to merge 1 commit into
wolfi-dev:mainfrom
rq-jwhitlock:fix-envconsul-xcrypto-ssh
Open

rq-jwhitlock wants to merge 1 commit into
wolfi-dev:mainfrom
rq-jwhitlock:fix-envconsul-xcrypto-ssh

Conversation

@rq-jwhitlock

Copy link
Copy Markdown

Bumps golang.org/x/crypto to v0.56.0 to remediate three High-severity advisories in the version currently vendored into the envconsul binary (v0.53.0, an indirect dependency of envconsul v0.14.0).

Advisory CVE CVSS Fixed in
GO-2026-6303 CVE-2026-56854 7.5 0.55.0
GO-2026-6354 CVE-2026-78662 7.5 0.56.0
GO-2026-6355 CVE-2026-56855 7.5 0.56.0

v0.56.0 is the lowest version that clears all three. This also clears GO-2026-5932 (the unmaintained x/crypto/openpgp notice) from module-version-level SCA reports.

Why the x/text change is included

x/crypto@v0.56.0 requires golang.org/x/text@v0.41.0, so the existing v0.39.0 pin would be raised by MVS regardless. Bumping it explicitly keeps the manifest consistent with what actually resolves. v0.41.0 > v0.39.0, so the GO-2026-5970 remediation that pin was added for (#185712) stays in place. Happy to drop this line if you'd prefer the minimal diff and let the resolver handle it.

Notes

  • Upstream hashicorp/envconsul is still at v0.14.0 (2026-07-09) and carries x/crypto v0.53.0 // indirect, so a bump override is the only way to pick this up — there is no upstream release to track.
  • x/crypto@v0.56.0 declares go 1.26.0; the package builds with go-1.27, so no toolchain change is needed.
  • Follows the same shape as #185712, which added this bump step to remediate GO-2026-5970.
  • These advisories are all in golang.org/x/crypto/ssh, which envconsul does not link (it uses only bcrypt, blowfish, pbkdf2 and scrypt), so this is not believed to be exploitable in the shipped binary — but the module version bump clears it for downstream consumers whose scanners flag at module-version level.

Bump golang.org/x/crypto to v0.56.0 to remediate three x/crypto/ssh
advisories. Also moves golang.org/x/text to v0.41.0, which x/crypto
v0.56.0 requires (still >= v0.39.0, so GO-2026-5970 stays remediated).
@rq-jwhitlock

Copy link
Copy Markdown
Author

Gentle bump on this one — it's been open three weeks with all checks green and mergeable: true, and it still applies cleanly against current main (master envconsul.yaml is still at epoch: 5).

Context on why it matters: envconsul-0.14.0-r5 links golang.org/x/crypto v0.53.0, which carries GO-2026-6303 (fixed in 0.55.0), GO-2026-6354 and GO-2026-6355 (both fixed in 0.56.0). Because the package builds from tag: v0.14.0 and upstream has not cut a release since — main has carried x/crypto v0.56.0 since 2026-09-25 via the consul-template 0.43.0 bump, but there's no tag — a plain toolchain/epoch rebuild can't clear these. The bump step is the only route until HashiCorp tags, which is what this PR uses.

The approach is the one already established in this repo: k3s.yaml bumps golang.org/x/crypto@v0.56.0 through the same bump step with a CVE citation, so this is not a new pattern.

Happy to rebase, split the x/text bump out into its own PR if you'd prefer this be minimal and scoped to just the three x/crypto advisories, or adjust anything else that would help it land.

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.

1 participant