CVE-2025-22869 Potential denial of service in golang.org/x/crypto
Attackers can cause denial of service in SSH servers by delaying key exchange, leading to memory exhaustion in the Go SSH library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-22869?
CVE-2025-22869 is a high-severity denial of service vulnerability in golang.org/x/crypto/ssh, published on 26 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
SSH servers which implement file transfer protocols are vulnerable to a denial of service attack from clients which complete the key exchange slowly, or not at all, causing pending content to be read into memory, but never transmitted.
Weakness: CWE-770
Which versions are affected by CVE-2025-22869?
3 open source packages ship an affected version, including golang.org/x/crypto. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
golang.org/x/crypto Go | All versions | 0.35.0 |
golang.org/x/crypto Go | All versions | 0.35.0 |
golang.org/x/crypto Go | All versions | 0.35.0 |
Linux distribution packages (37)
gvisor-tap-vsock AlmaLinux:10 | All versions | 6:0.8.5-1.el10_0 |
gvisor-tap-vsock-gvforwarder AlmaLinux:10 | All versions | 6:0.8.5-1.el10_0 |
aardvark-dns AlmaLinux:8 | All versions | 2:1.10.1-2.module_el8.10.0+3901+4b80ecd7 |
aardvark-dns AlmaLinux:8 | All versions | 2:1.10.1-2.module_el8.10.0+3909+6e1c1eb7 |
aardvark-dns AlmaLinux:8 | All versions | 2:1.10.1-2.module_el8.10.0+4016+efd18bf8 |
buildah AlmaLinux:8 | All versions | 2:1.33.12-1.module_el8.10.0+3959+b8dc5e6a |
buildah AlmaLinux:8 | All versions | 2:1.33.12-1.module_el8.10.0+3970+8445edf6 |
buildah-tests AlmaLinux:8 | All versions | 2:1.33.12-1.module_el8.10.0+3959+b8dc5e6a |
buildah-tests AlmaLinux:8 | All versions | 2:1.33.12-1.module_el8.10.0+3970+8445edf6 |
cockpit-podman AlmaLinux:8 | All versions | 84.1-1.module_el8.10.0+4016+efd18bf8 |
conmon AlmaLinux:8 | All versions | 3:2.1.10-1.module_el8.10.0+3970+8445edf6 |
container-selinux AlmaLinux:8 | All versions | 2:2.229.0-2.module_el8.10.0+3909+6e1c1eb7 |
containernetworking-plugins AlmaLinux:8 | All versions | 1:1.4.0-5.module_el8.10.0+3876+e55593a8 |
containernetworking-plugins AlmaLinux:8 | All versions | 1:1.4.0-5.module_el8.10.0+3926+f12484f5 |
containernetworking-plugins AlmaLinux:8 | All versions | 1:1.4.0-5.module_el8.10.0+3970+8445edf6 |
containers-common AlmaLinux:8 | All versions | 2:1-82.module_el8.10.0+3876+e55593a8 |
containers-common AlmaLinux:8 | All versions | 2:1-82.module_el8.10.0+3901+4b80ecd7 |
containers-common AlmaLinux:8 | All versions | 2:1-82.module_el8.10.0+3970+8445edf6 |
crit AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3845+87b84552 |
crit AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3858+6ad51f9f |
crit AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3901+4b80ecd7 |
criu AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3876+e55593a8 |
criu AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3909+6e1c1eb7 |
criu AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3926+f12484f5 |
criu AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3970+8445edf6 |
criu-devel AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3858+6ad51f9f |
criu-devel AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3876+e55593a8 |
criu-devel AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+4016+efd18bf8 |
criu-libs AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3909+6e1c1eb7 |
criu-libs AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3926+f12484f5 |
criu-libs AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+3970+8445edf6 |
criu-libs AlmaLinux:8 | All versions | 3.18-5.module_el8.10.0+4016+efd18bf8 |
crun AlmaLinux:8 | All versions | 1.14.3-2.module_el8.10.0+3845+87b84552 |
crun AlmaLinux:8 | All versions | 1.14.3-2.module_el8.10.0+3909+6e1c1eb7 |
crun AlmaLinux:8 | All versions | 1.14.3-2.module_el8.10.0+3926+f12484f5 |
fuse-overlayfs AlmaLinux:8 | All versions | 1.13-1.module_el8.10.0+3792+03eaed9c |
fuse-overlayfs AlmaLinux:8 | All versions | 1.13-1.module_el8.10.0+3909+6e1c1eb7 |
Products include Go Ssh.
How do I fix CVE-2025-22869?
Upgrade golang.org/x/crypto to 0.35.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-22869 being exploited?
There is no known exploitation of CVE-2025-22869 in the wild and no public exploit code.
Other vulnerabilities in golang.org/x/crypto/ssh
Sources
Also known as ALSA-2025:3210, ALSA-2025:3833, ALSA-2025:7484, AZL-57286, AZL-57289, AZL-57303 and 162 more.