CVE-2026-39833: CWE-358: Improperly Implemented Security Check for Standard in golang.org/x/crypto golang.org/x/crypto/ssh/agent
CVE-2026-39833 is a critical vulnerability in the golang.org/x/crypto/ssh/agent package where keys with the ConfirmBeforeUse constraint were accepted but the constraint was not enforced. This allowed such keys to be used for signing operations without user confirmation or indication. The issue stems from an improperly implemented security check in the NewKeyring() function. While NewKeyring() has been updated to return an error for unsupported constraints, no official patch or remediation level has been confirmed by the vendor yet.
AI Analysis
Technical Summary
The vulnerability CVE-2026-39833 affects the golang.org/x/crypto/ssh/agent package. The in-memory keyring returned by NewKeyring() accepted keys that had the ConfirmBeforeUse constraint but failed to enforce this constraint, allowing keys that should require user confirmation before use to sign operations silently. This is due to an improperly implemented security check for the ConfirmBeforeUse constraint. The NewKeyring() function has been updated to return an error when unsupported constraints are requested, but there is no confirmed official patch or remediation level from the vendor at this time.
Potential Impact
This vulnerability allows an attacker to use keys that should require explicit user confirmation for signing operations without any prompt or indication, potentially leading to unauthorized cryptographic operations. The CVSS score of 9.1 reflects a critical severity with high confidentiality and integrity impact and no required privileges or user interaction for exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The NewKeyring() function update to return an error on unsupported constraints suggests a potential mitigation path, but no official fix or remediation level has been confirmed by the vendor. Users should monitor the golang.org/x/crypto project advisories for updates.
CVE-2026-39833: CWE-358: Improperly Implemented Security Check for Standard in golang.org/x/crypto golang.org/x/crypto/ssh/agent
Description
CVE-2026-39833 is a critical vulnerability in the golang.org/x/crypto/ssh/agent package where keys with the ConfirmBeforeUse constraint were accepted but the constraint was not enforced. This allowed such keys to be used for signing operations without user confirmation or indication. The issue stems from an improperly implemented security check in the NewKeyring() function. While NewKeyring() has been updated to return an error for unsupported constraints, no official patch or remediation level has been confirmed by the vendor yet.
CVSS v3.1
Score 9.1critical
Affected software
pkg:golang/golang.org/x/crypto/ssh/agentRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-39833 affects the golang.org/x/crypto/ssh/agent package. The in-memory keyring returned by NewKeyring() accepted keys that had the ConfirmBeforeUse constraint but failed to enforce this constraint, allowing keys that should require user confirmation before use to sign operations silently. This is due to an improperly implemented security check for the ConfirmBeforeUse constraint. The NewKeyring() function has been updated to return an error when unsupported constraints are requested, but there is no confirmed official patch or remediation level from the vendor at this time.
Potential Impact
This vulnerability allows an attacker to use keys that should require explicit user confirmation for signing operations without any prompt or indication, potentially leading to unauthorized cryptographic operations. The CVSS score of 9.1 reflects a critical severity with high confidentiality and integrity impact and no required privileges or user interaction for exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The NewKeyring() function update to return an error on unsupported constraints suggests a potential mitigation path, but no official fix or remediation level has been confirmed by the vendor. Users should monitor the golang.org/x/crypto project advisories for updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Go
- Date Reserved
- 2026-04-07T18:13:03.529Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0fcdabe1370fbb487d501c
Added to database: 05/22/2026, 03:29:47 UTC
Last enriched: 07/08/2026, 13:54:57 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 150
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.