CVE-2026-39832: Invoking agent constraints dropped when forwarding keys in golang.org/x/crypto/ssh/agent

Published May 22, 2026
·
Updated

Invoking agent constraints dropped when forwarding keys in golang.org/x/crypto/ssh/agent

Other sources

When adding a key to a remote agent constraint extensions such as restrict-destination-v00 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.

Red Hat

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.

GitHub

Affected Software

9 affected componentsFixes available
go/golang.org/x/crypto/ssh/agent
Microsoft azl3 docker-compose 2.27.0-9
Microsoft azl3 docker-buildx 0.14.0-11
Microsoft azl3 telegraf 1.31.0-19
Microsoft azl3 packer 1.9.5-13
go/golang.org/x/crypto/ssh/agent<0.52.0
0.52.0
Golang Crypto Go<0.52.0
IBM Db2 Genius Hub<=1.1, 1.1.1, 1.1.2
IBM Agentics<=1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/golang.org/x/crypto/ssh/agent to a version that resolves this vulnerability.

    Fixed in 0.52.0

Event History

May 22, 2026
CVE Published
via MITRE·02:31 AM
Data Sourced
via MITRE·02:31 AM
DescriptionWeakness
Data Sourced
via Red Hat·04:02 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:16 AM
DescriptionSeverityWeaknessAffected Software
May 27, 2026
Data Sourced
via Microsoft·08:16 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:16 AM
Affected Software
Updated
via Microsoft·08:16 AM
DescriptionSeverity
Jun 25, 2026
Advisory Published
via GitHub·10:14 PM
Data Sourced
via GitHub·10:14 PM
DescriptionSeverityWeaknessAffected Software
Jul 13, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-39832?

CVE-2026-39832 has a risk rating of 53.

2

How do I fix CVE-2026-39832?

To fix CVE-2026-39832, update to the latest version of golang.org/x/crypto/ssh/agent where the issue is addressed.

3

What impact does CVE-2026-39832 have on key forwarding?

CVE-2026-39832 allows for destination restrictions to be stripped, enabling unrestricted use of forwarded keys on remote hosts.

4

Which software is affected by CVE-2026-39832?

CVE-2026-39832 affects the golang.org/x/crypto/ssh/agent software.

5

When was CVE-2026-39832 published?

CVE-2026-39832 was published on May 22, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203