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.
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:deb/ubuntu/[email protected]~16.04.4+esm3?arch=source&distro=esm-infra-legacy/xenialpkg:deb/ubuntu/[email protected]+esm4?arch=source&distro=esm-infra-legacy/xenialpkg:deb/ubuntu/[email protected]~18.04.2+esm3?arch=source&distro=esm-infra/bionicpkg:deb/ubuntu/[email protected]+esm4?arch=source&distro=esm-infra/bionicpkg:deb/ubuntu/[email protected]+20.04ubuntu1~esm3?arch=source&distro=esm-infra/focalpkg:deb/ubuntu/golang-go.crypto@1:0.0~git20200221.2aa609c-1ubuntu0.1~esm2?arch=source&distro=esm-apps/focalpkg:deb/ubuntu/[email protected]+ubuntu22.04.1?arch=source&distro=jammypkg:deb/ubuntu/golang-go.crypto@1:0.0~git20211202.5770296-1ubuntu0.1~esm2?arch=source&distro=esm-apps/jammypkg:deb/ubuntu/[email protected]+ubuntu24.04.1?arch=source&distro=noblepkg:deb/ubuntu/golang-go.crypto@1:0.19.0-1ubuntu0.1~esm2?arch=source&distro=esm-apps/noblepkg:deb/ubuntu/golang-go.crypto@1:0.25.0-1ubuntu0.1?arch=source&distro=questingpkg:deb/ubuntu/[email protected]+ubuntu25.10?arch=source&distro=questingpkg:deb/ubuntu/[email protected]+ubuntu26.04.3?arch=source&distro=resolutepkg:deb/ubuntu/golang-go.crypto@1:0.47.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-39832
- Osv Schema Version
- 1.7.0
- Aliases
- []
- Ecosystems
- ["Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:25.10","Ubuntu:26.04:LTS","Ubuntu:Pro:26.04:LTS"]
- Database Specific Severity
- null
- Cvss Version
- 3.1
Threat ID: 6a5fd0891010f89cc2198445
Added to database: 07/21/2026, 20:03:21 UTC
Last updated: 07/31/2026, 19:30:14 UTC
Views: 26
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
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.