Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.1
CVE-2026-39832: golang.org/x/crypto key forwarding may drop restrictions
CVE-2026-39832 · published 4 months ago
Summary
The Go crypto library could omit destination limits when a key is sent to a remote agent, letting the key be used without the intended restrictions. This could allow wider access on the remote host than intended. Update the library to the latest version to ensure all constraints are correctly applied.
What to do
- Update x golang.org/x/crypto to version 0.52.0.
- Update golang.org x to version 0.52.0.
- Update x rootio-golang.org/x/crypto to version v0.45.0-root.io.1.
- Update x golang.org/x/crypto to version v0.45.0-aikido.1.
- Update x rootio-golang.org/x/crypto to version v0.31.0-root.io.8.
- Update x golang.org/x/crypto to version v0.31.0-aikido.8.
- Update x rootio-golang.org/x/crypto to version v0.35.0-root.io.3.
- Update x golang.org/x/crypto to version v0.35.0-aikido.3.
- Update x rootio-golang.org/x/crypto to version v0.46.0-root.io.2.
- Update x golang.org/x/crypto to version v0.46.0-aikido.2.
- Update canonical golang-go.crypto to version 1:0.0~git20200221.2aa609c-1ubuntu0.1~esm2.
- Update canonical golang-go.crypto to version 1:0.0~git20211202.5770296-1ubuntu0.1~esm2.
- Update canonical golang-go.crypto to version 1:0.19.0-1ubuntu0.1~esm2.
- Update canonical golang-go.crypto to version 1:0.47.0-1ubuntu0.1~esm1.
- Update debian golang-go.crypto to version 1:0.52.0-1.
- Update x golang.org/x/crypto to version v0.32.0-aikido.3.
- Update x rootio-golang.org/x/crypto to version v0.32.0-root.io.3.
- Update x golang.org/x/crypto to version v0.32.0-aikido.5.
- Update x rootio-golang.org/x/crypto to version v0.32.0-root.io.5.
- Update x golang.org/x/crypto to version v0.32.0-aikido.4.
- Update x rootio-golang.org/x/crypto to version v0.32.0-root.io.4.
- Update x golang.org/x/crypto to version v0.31.0-aikido.9.
- Update x rootio-golang.org/x/crypto to version v0.31.0-root.io.9.
- Update x golang.org/x/crypto to version v0.46.0-aikido.3.
- Update x rootio-golang.org/x/crypto to version v0.46.0-root.io.3.
- Update golang crypto to version 0.52.0 or later.
- Update golang.org/x/crypto golang.org/x/crypto/ssh/agent to version 0.52.0 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Ubuntu:Pro:16.04:LTS | canonical | golang-go.crypto | All versions |
| Ubuntu:Pro:16.04:LTS | canonical | lxd | All versions |
| Ubuntu:Pro:16.04:LTS | canonical | snapd | All versions |
| Ubuntu:Pro:16.04:LTS | canonical | google-guest-agent | All versions |
| Ubuntu:Pro:18.04:LTS | canonical | lxd | All versions |
| Ubuntu:Pro:18.04:LTS | canonical | snapd | All versions |
| Ubuntu:Pro:18.04:LTS | canonical | golang-go.crypto | All versions |
| Ubuntu:Pro:18.04:LTS | canonical | google-guest-agent | All versions |
| Ubuntu:Pro:20.04:LTS | canonical | google-guest-agent | All versions |
| Ubuntu:Pro:20.04:LTS | canonical | snapd | All versions |
| Ubuntu:Pro:20.04:LTS | canonical | golang-go.crypto |
< 1:0.0~git20200221.2aa609c-1ubuntu0.1~esm2 Fix: upgrade to 1:0.0~git20200221.2aa609c-1ubuntu0.1~esm2
|
| Ubuntu:22.04:LTS | canonical | google-guest-agent | All versions |
| Ubuntu:22.04:LTS | canonical | snapd | All versions |
| Ubuntu:Pro:22.04:LTS | canonical | golang-go.crypto |
< 1:0.0~git20211202.5770296-1ubuntu0.1~esm2 Fix: upgrade to 1:0.0~git20211202.5770296-1ubuntu0.1~esm2
|
| Ubuntu:24.04:LTS | canonical | google-guest-agent | All versions |
| Ubuntu:24.04:LTS | canonical | snapd | All versions |
| Ubuntu:Pro:24.04:LTS | canonical | golang-go.crypto |
< 1:0.19.0-1ubuntu0.1~esm2 Fix: upgrade to 1:0.19.0-1ubuntu0.1~esm2
|
| Ubuntu:25.10 | canonical | golang-go.crypto | All versions |
| Ubuntu:25.10 | canonical | google-guest-agent | All versions |
| Ubuntu:25.10 | canonical | snapd | All versions |
| Ubuntu:26.04:LTS | canonical | golang-go.crypto | All versions |
| Ubuntu:26.04:LTS | canonical | google-guest-agent | All versions |
| Ubuntu:26.04:LTS | canonical | snapd | All versions |
| Go | x | golang.org/x/crypto |
< 0.52.0 Fix: upgrade to 0.52.0
|
| Debian:11 | debian | golang-go.crypto | All versions |
| Debian:12 | debian | golang-go.crypto | All versions |
| Debian:13 | debian | golang-go.crypto | All versions |
| Debian:14 | debian | golang-go.crypto |
< 1:0.52.0-1 Fix: upgrade to 1:0.52.0-1
|
| – | golang | crypto |
< 0.52.0 cpe:2.3:a:golang:crypto:*:*:*:*:*:go:*:* |
| go | golang.org | x |
< 0.52.0 Fix: upgrade to 0.52.0
|
| Root:Go | x | rootio-golang.org/x/crypto |
< v0.45.0-root.io.1 < v0.31.0-root.io.8 < v0.35.0-root.io.3 < v0.46.0-root.io.2 < v0.32.0-root.io.3 < v0.32.0-root.io.5 < v0.32.0-root.io.4 < v0.31.0-root.io.9 < v0.46.0-root.io.3 Fix: upgrade to v0.45.0-root.io.1
|
| Root:Go | x | golang.org/x/crypto |
< v0.45.0-aikido.1 < v0.31.0-aikido.8 < v0.35.0-aikido.3 < v0.46.0-aikido.2 < v0.32.0-aikido.3 < v0.32.0-aikido.5 < v0.32.0-aikido.4 < v0.31.0-aikido.9 < v0.46.0-aikido.3 Fix: upgrade to v0.45.0-aikido.1
|
| – | golang.org/x/crypto | golang.org/x/crypto/ssh/agent | < 0.52.0 |
| Ubuntu:Pro:26.04:LTS | canonical | golang-go.crypto |
< 1:0.47.0-1ubuntu0.1~esm1 Fix: upgrade to 1:0.47.0-1ubuntu0.1~esm1
|
Original advisory text
CVE-2026-39832 in golang.org/x/crypto - Patched by Root
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.
References
- https://go.dev/cl/778642 Third Party Advisory
- https://security-tracker.debian.org/tracker/CVE-2026-39832 Vendor Advisory
- https://github.com/advisories/GHSA-f5wc-c3c7-36mc
- https://www.cve.org/CVERecord?id=CVE-2026-39832 Third Party Advisory
- https://ubuntu.com/security/CVE-2026-39832 Third Party Advisory
- https://github.com/golang/crypto/commit/e3d1254f1e7e60baa086142c46174bf6d8d0fe50 Third Party Advisory
- https://ubuntu.com/security/notices/USN-8447-1 Vendor Advisory
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39832.json
- https://access.redhat.com/errata/RHSA-2026:35833
- https://pkg.go.dev URL
- https://access.redhat.com/errata/RHSA-2026:36651
- https://access.redhat.com/errata/RHSA-2026:36796
- https://access.redhat.com/errata/RHSA-2026:36797
- https://access.redhat.com/errata/RHSA-2026:37072
- https://access.redhat.com/errata/RHSA-2026:37123
- https://access.redhat.com/errata/RHSA-2026:37387
- https://access.redhat.com/errata/RHSA-2026:40118
- https://access.redhat.com/errata/RHSA-2026:40945
- https://access.redhat.com/errata/RHSA-2026:42146
- https://access.redhat.com/errata/RHSA-2026:49944
- https://go.dev/cl/778641
- https://go.dev/issue/79435 Issue Tracking
- https://access.redhat.com/errata/RHSA-2026:36199
- https://access.redhat.com/errata/RHSA-2026:52910
- https://access.redhat.com/errata/RHSA-2026:57194
- https://nvd.nist.gov/vuln/detail/CVE-2026-39832 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2480685
- https://groups.google.com/g/golang-announce/c/a082jnz-LvI Mailing List
- https://pkg.go.dev/vuln/GO-2026-5006 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:41019
- https://access.redhat.com/errata/RHSA-2026:41031
- https://access.redhat.com/errata/RHSA-2026:66521
- https://go.dev/cl/778640
- https://access.redhat.com/errata/RHSA-2026:37271
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39832... Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:67450
- https://access.redhat.com/errata/RHSA-2026:36319
- https://access.redhat.com/errata/RHSA-2026:36625
- https://access.redhat.com/errata/RHSA-2026:36648
- https://access.redhat.com/errata/RHSA-2026:37410
- https://access.redhat.com/errata/RHSA-2026:40262
- https://access.redhat.com/errata/RHSA-2026:40972
- https://access.redhat.com/errata/RHSA-2026:41036
- https://access.redhat.com/errata/RHSA-2026:41066
- https://access.redhat.com/errata/RHSA-2026:42796
- https://access.redhat.com/errata/RHSA-2026:43052
- https://access.redhat.com/errata/RHSA-2026:43692
- https://access.redhat.com/errata/RHSA-2026:52857
- https://access.redhat.com/errata/RHSA-2026:59579
- https://access.redhat.com/errata/RHSA-2026:61314
- https://access.redhat.com/security/cve/CVE-2026-39832
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker full control
Severity
9.1
Critical
Type
CWE-502Deserialization of Untrusted Data
CWE-281Improper Preservation of Permissions
Timeline
Published22 May 2026
Updated11 Oct 2026
First seen22 May 2026
Sources
DEBIAN-CVE-2026-39832 · OSV
UBUNTU-CVE-2026-39832 · OSV
GO-2026-5006 · OSV
CVE-2026-39832 · NVD
GHSA-f5wc-c3c7-36mc · GHSA
CVE-2026-39832 · MITRE
CVE-2026-39832 · OSV
Track software like this
Free during beta