Skip to content

govulncheck fails on dev-v3: x/crypto/openpgp advisory GO-2026-5932 has no fixed release #32361

Closed

Description

@TerryHowe

What happened

govulncheck fails on the dev-v3 branch, reporting a single vulnerability:

Vulnerability #1: GO-2026-5932
    The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design,
    and generally unsuitable for production use.
  More info: https://pkg.go.dev/vuln/GO-2026-5932
  Module: golang.org/x/crypto
    Found in: golang.org/x/[email protected]
    Fixed in: N/A

The reported call traces all originate in pkg/provenance/sign.go (provenance signing/verification via x/crypto/openpgp, clearsign, armor, packet, s2k, elgamal), e.g.:

  • pkg/provenance/sign.go:304 — Signatory.decodeSignature → clearsign.Decode → armor.Decode
  • pkg/provenance/sign.go:242 — Signatory.ClearSign → clearsign.dashEscaper.Close → armor.Encode
  • pkg/provenance/sign.go:315 — Signatory.verifySignature → openpgp.CheckDetachedSignature
  • pkg/provenance/sign.go:391 — provenance.loadKey → openpgp.ReadEntity

Why a dependency bump can't fix it

  • golang.org/x/crypto is a direct dependency, currently at v0.54.0, which is already the latest published version (released 2026-07-08).
  • The advisory is Fixed in: N/A — x/crypto/openpgp is frozen/deprecated with no patched release coming.

So Dependabot has no higher version to offer, and this check will stay red on every Go PR to dev-v3 until the code moves off the package (or the advisory is suppressed).

Impact

Any Dependabot / Go dependency PR targeting dev-v3 shows a failing govulncheck check (mergeState=UNSTABLE), even though all required checks pass. It's noise that obscures genuine govulncheck regressions and blocks a clean status.

Possible resolutions

  1. Migrate pkg/provenance off x/crypto/openpgp to a maintained fork such as github.com/ProtonMail/go-crypto/openpgp (the community-standard drop-in replacement).
  2. Suppress the advisory for dev-v3 if a migration isn't desired within the v3 support window — e.g. scope the govulncheck run or document the accepted risk.
  3. Make govulncheck non-blocking on dev-v3 (it is already non-required for merge), with a note explaining the known unfixable advisory.

Notes

  • main may be affected the same way if it still imports x/crypto/openpgp.
  • This surfaced while merging routine size/XS Dependabot PRs to dev-v3; the required checks (build, golangci-lint, Analyze (go), CodeQL, DCO) all pass — only govulncheck is red.

Activity

  1. karan-vk commented on Jul 24, 2026

    @karan-vk

    I'd like to take this one, going with option 1 (migrate off x/crypto/openpgp).
    Since main already migrated pkg/provenance to github.com/ProtonMail/go-crypto in 7c9176a, this is essentially a backport of an already-accepted change rather than new surface pkg/provenance is the only consumer of x/crypto/openpgp left on dev-v3 (the plugin signing path doesn't exist there). The only API delta is openpgp.CheckDetachedSignature gaining an io.Reader/*packet.Config signature.

    One wrinkle I hit while validating: go mod tidy resolves the fork's indirect dependency github.com/cloudflare/circl to v1.6.2, which govulncheck flags as GO-2026-4550 (fixed in v1.6.3, which is what main pins). So the PR pins circl at v1.6.3 as well otherwise we'd just trade one red check for another.

    With both in place, govulncheck ./... on dev-v3 reports 0 vulnerabilities. PR incoming.

  2. added a commit that references this issue on Aug 5, 2026
    bd392c6
  3. added a commit that references this issue on Aug 13, 2026
    ab71449
  4. TerryHowe commented on Sep 17, 2026

    @TerryHowe
    ContributorAuthor

    Resolved by #32463, which migrated pkg/provenance from x/crypto/openpgp to github.com/ProtonMail/go-crypto (commit bd392c6a6, merged 2026-07-24) — the approach @karan-vk proposed above.

    dev-v3 no longer imports x/crypto/openpgp anywhere, and GO-2026-5932 no longer appears in govulncheck output for the branch. The PR didn't use a closing keyword, so this stayed open.

    The remaining govulncheck failure on dev-v3 is a separate advisory, tracked in #32655.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions