Skip to main content
EPSS 0.6%top 53%

CVE-2026-39832: CWE-281: Improper Preservation of Permissions in golang.org/x/crypto golang.org/x/crypto/ssh/agent

0
Critical
VulnerabilityCVE-2026-39832cvecve-2026-39832cwe-281
Published: 05/22/2026 (05/22/2026, 02:31:26 UTC)
Source: CVE Database V5
Vendor/Project: golang.org/x/crypto
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
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

Affected software

golang.org/x/crypto

golang.org/x/crypto/ssh/agent

Affected versions
>=0 <0.52.0
golang.org/x/crypto/ssh/agent
pkg:golang/golang.org/x/crypto/ssh/agent
Affected versions
=0
golang.org/x/crypto/ssh/agent
pkg:golang/golang.org/x/crypto/ssh/agent
Affected versions
>=0 <0.52.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/17/2026, 13:18:32 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses