CVE-2026-39830: Invoking client can cause server deadlock on unexpected responses in golang.org/x/crypto/ssh

Published May 22, 2026
·
Updated

A malicious SSH peer could send unsolicited global request responses to fill an internal buffer, blocking the connection's read loop. The blocked goroutine could not be released by calling Close(), resulting in a resource leak per connection. Unsolicited global responses are now discarded.

Other sources

Invoking client can cause server deadlock on unexpected responses in golang.org/x/crypto/ssh

— Microsoft

Affected Software

67 affected componentsFixes available
golang/golang.org/x/crypto/ssh
Microsoft azl3 nvidia-container-toolkit 1.17.8-2
Microsoft azl3 cf-cli 8.7.11-5
Microsoft azl3 docker-compose 2.27.0-9
Microsoft azl3 gh 2.62.0-15
Microsoft azl3 docker-buildx 0.14.0-11
Microsoft azl3 telegraf 1.31.0-19
Microsoft azl3 packer 1.9.5-13
Microsoft azl3 kubevirt 1.7.1-2
Microsoft azl3 cert-manager 1.12.15-6
Microsoft azl3 moby-engine 25.0.3-17
Microsoft azl3 kubernetes 1.30.10-23
Microsoft azl3 kubernetes 1.30.10-25
Microsoft azl3 moby-engine 25.0.3-18
go/golang.org/x/crypto/ssh<0.52.0
0.52.0
Golang Crypto Go<0.52.0
ubuntu/golang-go.crypto<1:0.0~git20151201.0.7b85b09-2ubuntu0.1~esm2
1:0.0~git20151201.0.7b85b09-2ubuntu0.1~esm2
ubuntu/lxd<2.0.11-0ubuntu1~16.04.4+esm3
2.0.11-0ubuntu1~16.04.4+esm3
ubuntu/snapd*
ubuntu/google-guest-agent<20240716.00-0ubuntu1~16.04.0+esm3
20240716.00-0ubuntu1~16.04.0+esm3
ubuntu/lxd<3.0.3-0ubuntu1~18.04.2+esm3
3.0.3-0ubuntu1~18.04.2+esm3
ubuntu/snapd*
ubuntu/golang-go.crypto<1:0.0~git20170629.0.5ef0053-2ubuntu0.1~esm2
1:0.0~git20170629.0.5ef0053-2ubuntu0.1~esm2
ubuntu/google-guest-agent<20241011.01-0ubuntu1~18.04.0+esm3
20241011.01-0ubuntu1~18.04.0+esm3
ubuntu/google-guest-agent<20250116.00-0ubuntu1~20.04.0+esm3
20250116.00-0ubuntu1~20.04.0+esm3
ubuntu/snapd*
ubuntu/golang-go.crypto<1:0.0~git20200221.2aa609c-1ubuntu0.1~esm2
1:0.0~git20200221.2aa609c-1ubuntu0.1~esm2
ubuntu/google-guest-agent<20250116.00-0ubuntu1~22.04.3
20250116.00-0ubuntu1~22.04.3
ubuntu/snapd*
ubuntu/golang-go.crypto<1:0.0~git20211202.5770296-1ubuntu0.1~esm2
1:0.0~git20211202.5770296-1ubuntu0.1~esm2
ubuntu/google-guest-agent<20250116.00-0ubuntu1~24.04.4
20250116.00-0ubuntu1~24.04.4
ubuntu/snapd*
ubuntu/golang-go.crypto<1:0.19.0-1ubuntu0.1~esm2
1:0.19.0-1ubuntu0.1~esm2
ubuntu/golang-go.crypto*
ubuntu/google-guest-agent<20250506.01-0ubuntu1.2
20250506.01-0ubuntu1.2
ubuntu/snapd*
ubuntu/snapd*
ubuntu/google-guest-agent<20250506.01-0ubuntu2.1
20250506.01-0ubuntu2.1
ubuntu/snapd*
ubuntu/golang-go.crypto<1:0.47.0-1ubuntu0.1~esm1
1:0.47.0-1ubuntu0.1~esm1
go/golang.org/x/crypto<0.52.0
0.52.0
IBM API Connect<=V10.0.8.0 - V10.0.8.13
debian/golang-go.crypto<=1:0.4.0-1, <=1:0.25.0-1
1:0.52.0-1
All of the following
azurelinux/moby-engine<25.0.3-18
25.0.3-18
Microsoft Azure Linux=3.0
All of the following
azurelinux/kubernetes<1.30.10-25
1.30.10-25
Microsoft Azure Linux=3.0
All of the following
azurelinux/kubevirt<1.7.1-5
1.7.1-5
Microsoft Azure Linux=3.0
All of the following
azurelinux/packer<1.9.5-14
1.9.5-14
Microsoft Azure Linux=3.0
All of the following
azurelinux/cert-manager<1.12.15-8
1.12.15-8
Microsoft Azure Linux=3.0
All of the following
azurelinux/nvidia-container-toolkit<1.17.8-3
1.17.8-3
Microsoft Azure Linux=3.0
All of the following
azurelinux/telegraf<1.31.0-21
1.31.0-21
Microsoft Azure Linux=3.0
All of the following
azurelinux/gh<2.62.0-16
2.62.0-16
Microsoft Azure Linux=3.0
All of the following
azurelinux/docker-buildx<0.14.0-13
0.14.0-13
Microsoft Azure Linux=3.0
All of the following
azurelinux/docker-compose<2.27.0-11
2.27.0-11
Microsoft Azure Linux=3.0
All of the following
azurelinux/cf-cli<8.7.11-6
8.7.11-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/gvisor-tap-vsock<6:0.9.0-2.azl4
6:0.9.0-2.azl4
Microsoft Azure Linux=4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 0.52.0
  2. Upgrade

    Upgrade ubuntu/golang-go.crypto to a version that resolves this vulnerability.

    Fixed in 1:0.0~git20151201.0.7b85b09-2ubuntu0.1~esm2
  3. Upgrade

    Upgrade ubuntu/lxd to a version that resolves this vulnerability.

    Fixed in 2.0.11-0ubuntu1~16.04.4+esm3
  4. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20240716.00-0ubuntu1~16.04.0+esm3
  5. Upgrade

    Upgrade ubuntu/lxd to a version that resolves this vulnerability.

    Fixed in 3.0.3-0ubuntu1~18.04.2+esm3
  6. Upgrade

    Upgrade ubuntu/golang-go.crypto to a version that resolves this vulnerability.

    Fixed in 1:0.0~git20170629.0.5ef0053-2ubuntu0.1~esm2
  7. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20241011.01-0ubuntu1~18.04.0+esm3
  8. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20250116.00-0ubuntu1~20.04.0+esm3
  9. Upgrade

    Upgrade ubuntu/golang-go.crypto to a version that resolves this vulnerability.

    Fixed in 1:0.0~git20200221.2aa609c-1ubuntu0.1~esm2
  10. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20250116.00-0ubuntu1~22.04.3
  11. Upgrade

    Upgrade ubuntu/golang-go.crypto to a version that resolves this vulnerability.

    Fixed in 1:0.0~git20211202.5770296-1ubuntu0.1~esm2
  12. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20250116.00-0ubuntu1~24.04.4
  13. Upgrade

    Upgrade ubuntu/golang-go.crypto to a version that resolves this vulnerability.

    Fixed in 1:0.19.0-1ubuntu0.1~esm2
  14. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20250506.01-0ubuntu1.2
  15. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20250506.01-0ubuntu2.1
  16. Upgrade

    Upgrade ubuntu/golang-go.crypto to a version that resolves this vulnerability.

    Fixed in 1:0.47.0-1ubuntu0.1~esm1
  17. Upgrade

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

    Fixed in 0.52.0
  18. Upgrade

    Upgrade debian/golang-go.crypto to a version that resolves this vulnerability.

    Fixed in 1:0.52.0-1
  19. Upgrade

    Upgrade azurelinux/moby-engine to a version that resolves this vulnerability.

    Fixed in 25.0.3-18
  20. Upgrade

    Upgrade azurelinux/kubernetes to a version that resolves this vulnerability.

    Fixed in 1.30.10-25
  21. Upgrade

    Upgrade azurelinux/packer to a version that resolves this vulnerability.

    Fixed in 1.9.5-14
  22. Upgrade

    Upgrade azurelinux/kubevirt to a version that resolves this vulnerability.

    Fixed in 1.7.1-5
  23. Upgrade

    Upgrade azurelinux/cert-manager to a version that resolves this vulnerability.

    Fixed in 1.12.15-8
  24. Upgrade

    Upgrade azurelinux/telegraf to a version that resolves this vulnerability.

    Fixed in 1.31.0-21
  25. Upgrade

    Upgrade azurelinux/nvidia-container-toolkit to a version that resolves this vulnerability.

    Fixed in 1.17.8-3
  26. Upgrade

    Upgrade azurelinux/gh to a version that resolves this vulnerability.

    Fixed in 2.62.0-16
  27. Upgrade

    Upgrade azurelinux/docker-compose to a version that resolves this vulnerability.

    Fixed in 2.27.0-11
  28. Upgrade

    Upgrade azurelinux/docker-buildx to a version that resolves this vulnerability.

    Fixed in 0.14.0-13
  29. Upgrade

    Upgrade azurelinux/cf-cli to a version that resolves this vulnerability.

    Fixed in 8.7.11-6
  30. Upgrade

    Upgrade azurelinux/gvisor-tap-vsock to a version that resolves this vulnerability.

    Fixed in 6:0.9.0-2.azl4
  31. Configuration

    Update the ssh implementation so that unsolicited global request responses are discarded (instead of being processed), preventing the internal buffer from filling and blocking the read loop.

    golang.org/x/crypto/ssh (SSH client/server) discard unsolicited global request responses = enabled

Event History

May 22, 2026
Advisory Published
via OSV·02:08 AM
Data Sourced
via OSV·02:08 AM
DescriptionAffected Software
CVE Published
via MITRE·02:31 AM
Data Sourced
via MITRE·02:31 AM
DescriptionWeakness
Data Sourced
via OSV·02:31 AM
Severity
Data Sourced
via Red Hat·04:02 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:16 AM
Description
Data Sourced
via NVD·07:17 PM
Severity
May 27, 2026
Data Sourced
via Microsoft·08:12 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:12 AM
Affected Software
Updated
via Microsoft·08:12 AM
Weakness
Jun 2, 2026
Data Sourced
via NVD·04:33 PM
WeaknessAffected Software
Jun 25, 2026
Advisory Published
via GitHub·10:18 PM
Data Sourced
via GitHub·10:18 PM
DescriptionSeverityWeaknessAffected Software
Jun 30, 2026
Updated
via NVD·03:19 AM
SeverityWeakness
Jul 13, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Sep 1, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 15, 2026
Updated
via GitHub·12:32 PM
WeaknessAffected Software
Sep 16, 2026
Updated
via NVD·01:17 PM
SeverityWeakness
Sep 26, 2026
Updated
via IBM·12:00 AM
Affected Software
Oct 14, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 18, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 21, 2026
Updated
via Microsoft·09:15 AM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-39830?

The severity of CVE-2026-39830 is rated at risk level 33.

2

How does CVE-2026-39830 impact Golang's SSH package?

CVE-2026-39830 allows a malicious SSH peer to cause a server deadlock by sending unsolicited global request responses.

3

What happens when the server encounters CVE-2026-39830?

The server's read loop gets blocked due to a filled internal buffer, leading to a resource leak per connection.

4

How can I mitigate the effects of CVE-2026-39830?

The mitigation for CVE-2026-39830 involves discarding unsolicited global request responses.

5

When was CVE-2026-39830 published?

CVE-2026-39830 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