GitHub Advisoryadvisory · Go

GHSA-f5wc-c3c7-36mc golang.org/x/crypto doesn't drop invoking agent constraints when forwarding keys

CRITICAL Published 2026-06-25 Modified 2026-08-11 Official page ↗
Aliases
CVE-2026-39832
Ecosystem
Go
Packages
golang.org/x/crypto
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weaknesses
CWE-281, CWE-502
Reviewed
2026-06-25

Affected packages

• Go golang.org/x/crypto: < 0.52.0 → fixed in 0.52.0

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.

Related

Alias · CVE (1)

Weakness · CWE (2)

  • CWE-281 Improper Preservation of Permissions weakness
  • CWE-502 Deserialization of Untrusted Data weakness

References