CVE-2025-47913 Potential denial of service in golang.org/x/crypto/ssh/agent

High 7.5 Published Updated

A malicious SSH agent can cause a client panic and termination by sending an unexpected success message, requiring a library upgrade.

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-47913?

CVE-2025-47913 is a high-severity denial of service vulnerability in golang.org/x/crypto/ssh/agent, published on 13 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

SSH clients receiving SSH_AGENT_SUCCESS when expecting a typed response will panic and cause early termination of the client process.

Weakness: CWE-617

Which versions are affected by CVE-2025-47913?

3 open source packages ship an affected version, including golang.org/x/crypto/ssh/agent and golang.org/x/crypto. It affects 1 product.

PackageAffectedFixed in
golang.org/x/crypto/ssh/agent GoAll versions0.43.0
golang.org/x/crypto/ssh/agent GoAll versions0.43.0
golang.org/x/crypto GoAll versions0.43.0
Linux distribution packages (37)
buildah AlmaLinux:10All versions2:1.41.8-1.el10_1
buildah-tests AlmaLinux:10All versions2:1.41.8-1.el10_1
podman-docker AlmaLinux:10All versions7:5.6.0-11.el10_1
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+4047+545787c4
aardvark-dns AlmaLinux:8All versions2:1.10.1-2.module_el8.10.0+4089+ce72bbbe
buildah AlmaLinux:8All versions2:1.33.14-1.module_el8.10.0+4102+6c76e544
buildah-tests AlmaLinux:8All versions2:1.33.14-1.module_el8.10.0+4102+6c76e544
cockpit-podman AlmaLinux:8All versions84.1-1.module_el8.10.0+4102+6c76e544
conmon AlmaLinux:8All versions3:2.1.10-1.module_el8.10.0+3970+8445edf6
conmon AlmaLinux:8All versions3:2.1.10-1.module_el8.10.0+4068+0e21408f
conmon AlmaLinux:8All versions3:2.1.10-1.module_el8.10.0+4090+91932338
container-selinux AlmaLinux:8All versions2:2.229.0-2.module_el8.10.0+4090+91932338
containernetworking-plugins AlmaLinux:8All versions1:1.4.0-6.module_el8.10.0+4016+efd18bf8
containernetworking-plugins AlmaLinux:8All versions1:1.4.0-6.module_el8.10.0+4047+545787c4
containernetworking-plugins AlmaLinux:8All versions1:1.4.0-6.module_el8.10.0+4102+6c76e544
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+4089+ce72bbbe
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
crit AlmaLinux:8All versions3.18-5.module_el8.10.0+4047+545787c4
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+3970+8445edf6
criu AlmaLinux:8All versions3.18-5.module_el8.10.0+4089+ce72bbbe
criu-devel AlmaLinux:8All versions3.18-5.module_el8.10.0+3858+6ad51f9f
criu-devel AlmaLinux:8All versions3.18-5.module_el8.10.0+4016+efd18bf8
criu-devel AlmaLinux:8All versions3.18-5.module_el8.10.0+4068+0e21408f
criu-devel AlmaLinux:8All versions3.18-5.module_el8.10.0+4089+ce72bbbe
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+4082+f7f0c95e
crun AlmaLinux:8All versions1.14.3-2.module_el8.10.0+3858+6ad51f9f

Products include Go Ssh.

How do I fix CVE-2025-47913?

Upgrade golang.org/x/crypto/ssh/agent to 0.43.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-47913 being exploited?

There is no known exploitation of CVE-2025-47913 in the wild and no public exploit code.

Sources

Also known as ALSA-2026:0436, ALSA-2026:0437, ALSA-2026:0470, ALSA-2026:0545, ALSA-2026:0753, AZL-70313 and 429 more.

Is CVE-2025-47913 in your software?

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

Check your SBOMs for free