CVE-2026-39833: Invoking key constraints not enforced in golang.org/x/crypto/ssh/agent

Published May 22, 2026
·
Updated

Invoking key constraints not enforced in golang.org/x/crypto/ssh/agent

Other sources

The in-memory keyring returned by NewKeyring() silently accepted keys with the ConfirmBeforeUse constraint but never enforced it. The key would sign without any confirmation prompt, with no indication to the caller that the constraint was not in effect. NewKeyring() now returns an error when unsupported constraints are requested.

MITRE

Affected Software

10 affected componentsFixes available
golang/golang.org/x/crypto/ssh/agent
Golang Crypto Go<0.52.0
debian/golang-go.crypto<=1:0.0~git20201221.eec23a3-1, <=1:0.4.0-1, <=1:0.25.0-1
1:0.53.0-1
go/golang.org/x/crypto/ssh/agent<0.52.0
0.52.0
Microsoft azl3 telegraf 1.31.0-22<1.31.0-23
1.31.0-23
Microsoft azl3 docker-compose 2.27.0-11<2.27.0-13
2.27.0-13
Microsoft azl3 packer 1.9.5-15<1.9.5-16
1.9.5-16
Microsoft azl3 docker-buildx 0.14.0-13<0.14.0-15
0.14.0-15
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 debian/golang-go.crypto to a version that resolves this vulnerability.

    Fixed in 1:0.53.0-1
  2. Upgrade

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

    Fixed in 0.52.0
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.31.0-23
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.27.0-13
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.9.5-16
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.14.0-15

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:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:16 AM
DescriptionSeverityWeaknessAffected Software
May 27, 2026
Data Sourced
via Microsoft·08:17 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:17 AM
Affected Software
Updated
via Microsoft·08:17 AM
DescriptionSeverity
Jun 19, 2026
Data Sourced
via Ubuntu·08:48 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·08:49 PM
Description
Data Sourced
via Debian·08:49 PM
DescriptionAffected Software
Jun 25, 2026
Advisory Published
via GitHub·10:13 PM
Data Sourced
via GitHub·10:13 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-39833?

CVE-2026-39833 has a risk rating of 37 indicating a moderate severity level.

2

How do I fix CVE-2026-39833?

To fix CVE-2026-39833, update to the latest version of golang.org/x/crypto/ssh/agent where the enforcement of key constraints has been improved.

3

What does CVE-2026-39833 affect?

CVE-2026-39833 affects the NewKeyring() function in golang.org/x/crypto/ssh/agent that mishandles the ConfirmBeforeUse key constraint.

4

What happens if I use NewKeyring() without applying the fix for CVE-2026-39833?

Using NewKeyring() without applying the fix for CVE-2026-39833 may lead to unintended key operations without user confirmation.

5

Who should be concerned about CVE-2026-39833?

Developers and organizations using golang.org/x/crypto/ssh/agent should be aware of CVE-2026-39833 and implement the necessary updates to mitigate security risks.

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