CVE-2026-39832: CWE-281: Improper Preservation of Permissions in golang.org/x/crypto golang.org/x/crypto/ssh/agent
When adding a key to a remote agent constraint extensions such as [email protected] were not serialized in the request. Destination restrictions were silently stripped when forwarding keys, allowing unrestricted use of the key on the remote host. The client now serializes all constraint extensions. Additionally, the in-memory keyring returned by NewKeyring() now rejects keys with unsupported constraint extensions instead of silently ignoring them.
AI Analysis
Technical Summary
The vulnerability arises from improper preservation of permissions (CWE-281) in the golang.org/x/crypto/ssh/agent package. When keys with constraint extensions were added to a remote SSH agent, these constraints were not serialized in the forwarding request, effectively removing destination restrictions. This allowed forwarded keys to be used without the intended limitations on the remote host. The fix involves serializing all constraint extensions during key addition and rejecting keys with unsupported constraints in the in-memory keyring returned by NewKeyring().
Potential Impact
Exploitation of this vulnerability allows an attacker to bypass destination restrictions on forwarded SSH keys, potentially enabling unauthorized use of keys on remote hosts. This can lead to unauthorized access and privilege escalation within affected environments. The CVSS score of 9.1 reflects the high confidentiality and integrity impact with no required privileges or user interaction for exploitation.
Mitigation Recommendations
The vendor advisory does not explicitly state the availability of an official patch or fix in the provided content. Patch status is not yet confirmed — check the vendor advisory at https://access.redhat.com/security/cve/CVE-2026-39832 for current remediation guidance. Users should monitor the vendor advisory for updates and apply any official fixes once available. Until then, avoid forwarding keys with constraint extensions or restrict usage to trusted environments if possible.
CVE-2026-39832: CWE-281: Improper Preservation of Permissions in golang.org/x/crypto golang.org/x/crypto/ssh/agent
Description
When adding a key to a remote agent constraint extensions such as [email protected] were not serialized in the request. Destination restrictions were silently stripped when forwarding keys, allowing unrestricted use of the key on the remote host. The client now serializes all constraint extensions. Additionally, the in-memory keyring returned by NewKeyring() now rejects keys with unsupported constraint extensions instead of silently ignoring them.
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 arises from improper preservation of permissions (CWE-281) in the golang.org/x/crypto/ssh/agent package. When keys with constraint extensions were added to a remote SSH agent, these constraints were not serialized in the forwarding request, effectively removing destination restrictions. This allowed forwarded keys to be used without the intended limitations on the remote host. The fix involves serializing all constraint extensions during key addition and rejecting keys with unsupported constraints in the in-memory keyring returned by NewKeyring().
Potential Impact
Exploitation of this vulnerability allows an attacker to bypass destination restrictions on forwarded SSH keys, potentially enabling unauthorized use of keys on remote hosts. This can lead to unauthorized access and privilege escalation within affected environments. The CVSS score of 9.1 reflects the high confidentiality and integrity impact with no required privileges or user interaction for exploitation.
Mitigation Recommendations
The vendor advisory does not explicitly state the availability of an official patch or fix in the provided content. Patch status is not yet confirmed — check the vendor advisory at https://access.redhat.com/security/cve/CVE-2026-39832 for current remediation guidance. Users should monitor the vendor advisory for updates and apply any official fixes once available. Until then, avoid forwarding keys with constraint extensions or restrict usage to trusted environments if possible.
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
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-39832","vendor":"Red Hat"}]
Threat ID: 6a0fcdabe1370fbb487d5016
Added to database: 05/22/2026, 03:29:47 UTC
Last enriched: 07/25/2026, 21:45:00 UTC
Last updated: 07/31/2026, 21:26:40 UTC
Views: 65
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.
External Links
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.