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 in golang.org/x/crypto/ssh/agent involves improper preservation of SSH key constraint extensions during key forwarding. Specifically, extensions like [email protected] were not serialized in requests, causing destination restrictions to be silently removed. This allows an attacker to bypass intended security controls by using forwarded keys without the specified restrictions on remote hosts. The in-memory keyring now rejects keys with unsupported constraint extensions instead of ignoring them silently. Red Hat's advisory confirms the vulnerability affects their products that rely on this library for SSH agent key forwarding. No patch or mitigation currently meets Red Hat's deployment and stability criteria.
Potential Impact
This vulnerability allows an attacker to bypass SSH key usage restrictions when keys are forwarded via an SSH agent, potentially enabling unauthorized use of SSH keys on remote hosts. The confidentiality and integrity of systems relying on these restrictions can be compromised. There is no known exploitation in the wild at this time. The impact is rated critical with a CVSS score of 9.1, reflecting high confidentiality and integrity impact without availability impact.
Mitigation Recommendations
According to the Red Hat advisory, no mitigation or patch currently meets their criteria for ease of use, deployment, applicability, or stability. Users should monitor vendor advisories for updates. Until a fix is available, users relying on constraint extensions for limiting SSH key usage should exercise caution when forwarding keys via SSH agents. Engage with Red Hat support or Technical Account Managers for guidance specific to your environment.
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
golang.org/x/crypto
golang.org/x/crypto/ssh/agent
pkg:golang/golang.org/x/crypto/ssh/agentpkg: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 in golang.org/x/crypto/ssh/agent involves improper preservation of SSH key constraint extensions during key forwarding. Specifically, extensions like [email protected] were not serialized in requests, causing destination restrictions to be silently removed. This allows an attacker to bypass intended security controls by using forwarded keys without the specified restrictions on remote hosts. The in-memory keyring now rejects keys with unsupported constraint extensions instead of ignoring them silently. Red Hat's advisory confirms the vulnerability affects their products that rely on this library for SSH agent key forwarding. No patch or mitigation currently meets Red Hat's deployment and stability criteria.
Potential Impact
This vulnerability allows an attacker to bypass SSH key usage restrictions when keys are forwarded via an SSH agent, potentially enabling unauthorized use of SSH keys on remote hosts. The confidentiality and integrity of systems relying on these restrictions can be compromised. There is no known exploitation in the wild at this time. The impact is rated critical with a CVSS score of 9.1, reflecting high confidentiality and integrity impact without availability impact.
Mitigation Recommendations
According to the Red Hat advisory, no mitigation or patch currently meets their criteria for ease of use, deployment, applicability, or stability. Users should monitor vendor advisories for updates. Until a fix is available, users relying on constraint extensions for limiting SSH key usage should exercise caution when forwarding keys via SSH agents. Engage with Red Hat support or Technical Account Managers for guidance specific to your environment.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Go
- Date Reserved
- 2026-04-07T18:13:03.529Z
- State
- PUBLISHED
- 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: 08/17/2026, 13:18:32 UTC
Last updated: 09/14/2026, 22:11:26 UTC
Views: 82
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.