CRITICAL🇵🇱 Wersja polska

CVE-2026-39832

CVSS 9.1pub. 2026-05-22upd. 2026-09-02

When adding a key to a remote agent constraint extensions such as restrict-destination-v00@openssh.com 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
How it works

When a key was added to a remote SSH agent with constraint extensions, the library did not include these extensions in the serialized request. This resulted in constraint extensions being silently stripped during key forwarding operations. The remote agent treated the forwarded key as unrestricted, ignoring the client's access control intentions. The vulnerability stems from improper handling of deserialization and serialization of constraint extensions (CWE-502).

Impact

An attacker or unauthorized process with access to a remote SSH agent can use the forwarded key without any restrictions on the destination, violating access control policies and enabling unauthorized authentication and potential modification of resources on remote hosts.

Mitigation & patch

Patches available from the vendor should be applied according to references (https://go.dev/cl/778642, https://pkg.go.dev/vuln/GO-2026-5006). After updating, the library correctly serializes all constraint extensions, and the in-memory keyring returned by NewKeyring() rejects keys with unsupported extensions instead of silently ignoring them.

Who is affected

Golang Crypto library (golang.org/x/crypto) — versions indicated in vendor references; affects applications using key forwarding to remote SSH agents and the NewKeyring() function.

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Golang Crypto

    APP
    Golang
    < 0.52.0
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
Deserialization
CWE
References

Related vulnerabilities

CVE-2026-39833CRITICAL9.1PL ✓same product

Golang Crypto: brak wymuszenia ograniczenia ConfirmBeforeUse w NewKeyring()

CVE-2026-39834CRITICAL9.1PL ✓same product

Integer overflow w Golang Crypto SSH — nieskończona pętla przy zapisie >4GB

CVE-2026-39831CRITICAL9.1PL ✓same product

Brak weryfikacji flagi User Presence w FIDO/U2F w Golang Crypto

CVE-2026-39830CRITICAL9.1PL ✓same product

Golang Crypto: resource leak przez niezamawiane odpowiedzi SSH global request

CVE-2026-42508CRITICAL9.1PL ✓same product

Nieprawidłowa weryfikacja unieważnionych kluczy CA w Golang Crypto