CryptoApplication · Golang

CVE-2026-39833

CRITICAL · 9.1 CVSS v3.1 Published 2026-05-22
Fix available
A fix is available. Upgrade to 0.52.0 or later.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
The in-memory keyring returned by NewKeyring() silently accepted keys with the ConfirmBeforeUse constraint but never enforced it. The key would sign without any confirmation prompt, with no indication to the caller that the constraint was not in effect. NewKeyring() now returns an error when unsupported constraints are requested.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

The in-memory keyring's NewKeyring() function silently accepted keys with the ConfirmBeforeUse security constraint but never enforced it, allowing cryptographic key operations to proceed without user confirmation while falsely indicating such protection was active. This represents a security control bypass where the constraint was accepted but ineffective.

MitigationUpgrade to the version containing the fix where NewKeyring() returns errors for unsupported constraints, then audit all code paths that request ConfirmBeforeUse to implement proper error handling or alternative confirmation mechanisms.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
CryptoApplication
Affected:< 0.52.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check installed golang crypto version
    Run 'go list -m all' or 'go get golang.org/x/crypto@latest' to see the currently installed version of the crypto module
    Affected if The version listed is below 0.52.0 (e.g., 0.51.0, 0.50.0, etc.)
  2. Find NewKeyring usage in codebase
    Search source code for occurrences of 'NewKeyring(' function calls, using grep or IDE search across .go files
    Affected if Code calls NewKeyring() to create an in-memory keyring
  3. Identify ConfirmBeforeUse constraint usage
    Search for 'ConfirmBeforeUse' in the same files or contexts where NewKeyring is called, look for keyring constraints being passed to NewKeyring
    Affected if The code passes ConfirmBeforeUse as a constraint option to NewKeyring()
  4. Verify error handling for constraint validation
    Examine how NewKeyring() return values are handled - check if errors are checked and if the constraint validation failure would be caught
    Affected if The code does not check for errors from NewKeyring() or does not handle the case where ConfirmBeforeUse is rejected (in fixed versions)

You are affected if you use golang crypto version below 0.52.0 and your code relies on NewKeyring() with ConfirmBeforeUse constraint expecting user confirmation, because the constraint is silently ignored with no error or warning.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 0.52.0 or later
Fixed in 0.52.0
Interim mitigation

Upgrade to the version containing the fix where NewKeyring() returns errors for unsupported constraints, then audit all code paths that request ConfirmBeforeUse to implement proper error handling or alternative confirmation mechanisms.

Recommended fix High confidence

golang.org/x/crypto v0.52.0 or later

  1. Locate the go.mod file in your project that imports the crypto package
  2. Update the crypto package version to 0.52.0 or later in go.mod (e.g., golang.org/x/crypto v0.52.0)
  3. Run 'go mod tidy' to update dependencies and verify the upgrade
  4. Rebuild your application with 'go build ./...','Run tests to ensure the upgrade does not break existing functionality
Caveat Applications that were relying on ConfirmBeforeUse constraint being silently ignored will now receive an error and may need to handle this case or remove the unsupported constraint

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Crypto Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing4.0 h
  • Review / QA2.0 h
18.0 hours of engineering $3,200
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,120.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-39833 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-39833 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data