Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.6%top 55%

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/ssh/agent
pkg:golang/golang.org/x/crypto/ssh/agent
Affected versions
=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: 07/25/2026, 21:45:00 UTC

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.

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
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 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