CVE-2025-22869 Potential denial of service in golang.org/x/crypto

High 7.5 Published Updated

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.

PackageAffectedFixed in
golang.org/x/crypto GoAll versions0.35.0
golang.org/x/crypto GoAll versions0.35.0
golang.org/x/crypto GoAll versions0.35.0
Linux distribution packages (37)
gvisor-tap-vsock AlmaLinux:10All versions6:0.8.5-1.el10_0
gvisor-tap-vsock-gvforwarder AlmaLinux:10All versions6:0.8.5-1.el10_0
aardvark-dns AlmaLinux:8All versions2:1.10.1-2.module_el8.10.0+3901+4b80ecd7
aardvark-dns AlmaLinux:8All versions2:1.10.1-2.module_el8.10.0+3909+6e1c1eb7
aardvark-dns AlmaLinux:8All versions2:1.10.1-2.module_el8.10.0+4016+efd18bf8
buildah AlmaLinux:8All versions2:1.33.12-1.module_el8.10.0+3959+b8dc5e6a
buildah AlmaLinux:8All versions2:1.33.12-1.module_el8.10.0+3970+8445edf6
buildah-tests AlmaLinux:8All versions2:1.33.12-1.module_el8.10.0+3959+b8dc5e6a
buildah-tests AlmaLinux:8All versions2:1.33.12-1.module_el8.10.0+3970+8445edf6
cockpit-podman AlmaLinux:8All versions84.1-1.module_el8.10.0+4016+efd18bf8
conmon AlmaLinux:8All versions3:2.1.10-1.module_el8.10.0+3970+8445edf6
container-selinux AlmaLinux:8All versions2:2.229.0-2.module_el8.10.0+3909+6e1c1eb7
containernetworking-plugins AlmaLinux:8All versions1:1.4.0-5.module_el8.10.0+3876+e55593a8
containernetworking-plugins AlmaLinux:8All versions1:1.4.0-5.module_el8.10.0+3926+f12484f5
containernetworking-plugins AlmaLinux:8All versions1:1.4.0-5.module_el8.10.0+3970+8445edf6
containers-common AlmaLinux:8All versions2:1-82.module_el8.10.0+3876+e55593a8
containers-common AlmaLinux:8All versions2:1-82.module_el8.10.0+3901+4b80ecd7
containers-common AlmaLinux:8All versions2:1-82.module_el8.10.0+3970+8445edf6
crit AlmaLinux:8All versions3.18-5.module_el8.10.0+3845+87b84552
crit AlmaLinux:8All versions3.18-5.module_el8.10.0+3858+6ad51f9f
crit AlmaLinux:8All versions3.18-5.module_el8.10.0+3901+4b80ecd7
criu AlmaLinux:8All versions3.18-5.module_el8.10.0+3876+e55593a8
criu AlmaLinux:8All versions3.18-5.module_el8.10.0+3909+6e1c1eb7
criu AlmaLinux:8All versions3.18-5.module_el8.10.0+3926+f12484f5
criu AlmaLinux:8All versions3.18-5.module_el8.10.0+3970+8445edf6
criu-devel AlmaLinux:8All versions3.18-5.module_el8.10.0+3858+6ad51f9f
criu-devel AlmaLinux:8All versions3.18-5.module_el8.10.0+3876+e55593a8
criu-devel AlmaLinux:8All versions3.18-5.module_el8.10.0+4016+efd18bf8
criu-libs AlmaLinux:8All versions3.18-5.module_el8.10.0+3909+6e1c1eb7
criu-libs AlmaLinux:8All versions3.18-5.module_el8.10.0+3926+f12484f5
criu-libs AlmaLinux:8All versions3.18-5.module_el8.10.0+3970+8445edf6
criu-libs AlmaLinux:8All versions3.18-5.module_el8.10.0+4016+efd18bf8
crun AlmaLinux:8All versions1.14.3-2.module_el8.10.0+3845+87b84552
crun AlmaLinux:8All versions1.14.3-2.module_el8.10.0+3909+6e1c1eb7
crun AlmaLinux:8All versions1.14.3-2.module_el8.10.0+3926+f12484f5
fuse-overlayfs AlmaLinux:8All versions1.13-1.module_el8.10.0+3792+03eaed9c
fuse-overlayfs AlmaLinux:8All versions1.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.

Sources

Also known as ALSA-2025:3210, ALSA-2025:3833, ALSA-2025:7484, AZL-57286, AZL-57289, AZL-57303 and 162 more.

Is CVE-2025-22869 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free