# 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.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 26 Feb 2025
- **Updated:** 11 Apr 2025
- **Also known as:** ALSA-2025:3210, ALSA-2025:3833, ALSA-2025:7484, AZL-57286, AZL-57289, AZL-57303, AZL-57323, AZL-57347, AZL-57350, AZL-57353, AZL-57362, AZL-57366, AZL-57369, AZL-57374, AZL-57393, AZL-57401, AZL-57428, AZL-57434, AZL-57437, AZL-57440, AZL-57458, AZL-57459, AZL-57473, AZL-57485, AZL-57488, CLEANSTART-2026-BX44161, CLEANSTART-2026-EM66119, CLEANSTART-2026-ET25167, CLEANSTART-2026-KG56080, CLSA-2025-1747431414, DEBIAN-CVE-2025-22869, ECHO-4f9a-01c9-0571, GHSA-hcg3-q754-cr77, GO-2025-3487, MINI-275m-px9m-rm3f, MINI-288f-665c-j7pp, MINI-28h2-xjf6-g4hr, MINI-2hph-rvjv-w872, MINI-2v42-68mv-92hr, MINI-35qc-7xg8-99gg, MINI-37g7-825x-665g, MINI-389m-p2r2-25mh, MINI-3rhp-c6wh-w47r, MINI-42j7-99xh-v258, MINI-43pf-xfjf-69wr, MINI-4598-v4hv-mh7v, MINI-47wf-2c4p-2m3h, MINI-497m-f2wg-xcfw, MINI-4fcm-wgcw-mv3p, MINI-4hc4-67q9-gwfj, MINI-4jm5-4f2j-qm93, MINI-4p99-qfmv-9xr2, MINI-4wvh-6rh5-66w2, MINI-4x7q-xwm3-65fj, MINI-535f-8mj5-f6pf, MINI-57fc-6jxv-pm4h, MINI-598q-j24f-8p45, MINI-5jx8-8w8r-mpf6, MINI-5qj2-8xvv-q34p, MINI-64mv-rwq6-fc2q, MINI-6h9m-cw8x-8qh7, MINI-6hvm-324g-p67g, MINI-6wfj-v258-558j, MINI-722c-chcw-7gh4, MINI-743j-fvr7-v73f, MINI-74ch-g387-g5m2, MINI-759r-3jh6-pvgf, MINI-75v2-v3cw-hcqv, MINI-777r-9qmx-pp29, MINI-85j2-qxhx-24h6, MINI-8fxv-5727-fcr4, MINI-8jhj-gx85-4p2f, MINI-99rr-r2qf-q66g, MINI-ccgq-cmgw-42gm, MINI-cmx5-4p6j-f88p, MINI-cpcf-m4c8-rw75, MINI-f4w5-wjhx-r223, MINI-f563-fgjm-9r3q, MINI-fhxp-vfjq-mxgr, MINI-fq9x-p7j6-whw7, MINI-fvhx-pgjc-vpp8, MINI-g2cm-53vm-x743, MINI-gfj4-mpx9-vgpp, MINI-gj34-vpw3-cch6, MINI-gvwq-974h-4wph, MINI-h3w2-mx28-fc8r, MINI-h5q2-86jq-8g22, MINI-h99c-27mg-88m8, MINI-hgc2-mfq9-86mv, MINI-hmq5-6v7j-5jr7, MINI-hpjm-54xx-j58f, MINI-hwrp-g68x-r9xj, MINI-j2cc-xq82-v9qc, MINI-j359-5p5m-gv6h, MINI-j74v-m9hj-vgp6, MINI-jhhj-2rm6-h5qg, MINI-jj65-f8xj-3q9p, MINI-jwwc-x392-wff4, MINI-jxhf-5rxr-7jwf, MINI-m7wx-26pp-c45q, MINI-mg84-r5vv-25fx, MINI-mmwq-frph-77cq, MINI-mxgj-wcj8-hxvj, MINI-p58p-5p4r-p6rx, MINI-p8mg-4425-4fxg, MINI-pgvq-g2jx-92hc, MINI-ppf2-82x2-9855, MINI-prph-2c56-3gwx, MINI-pvmq-mhqg-qfj5, MINI-q6h8-26ff-2vj3, MINI-qg5c-p66f-9867, MINI-qg9w-36pv-gppf, MINI-qvx9-6rjp-wp8m, MINI-qwm2-q2w3-v489, MINI-rgf8-3w6c-5hfh, MINI-rq45-rhj4-xp2r, MINI-v2vw-p433-q56w, MINI-v4fw-8fqj-6h2j, MINI-vhfm-65wj-h7xf, MINI-vp8f-24jx-jw73, MINI-w97g-5gpr-c4w9, MINI-wcw9-hvhp-37qf, MINI-wqw7-67qq-fr94, MINI-wvg2-3wrw-m23j, MINI-x47h-56r3-j9gf, MINI-x632-rwfx-3v7v, MINI-xh9v-ph4p-85jp, MINI-xhc7-qvwg-8pf6, MINI-xm7p-xhh6-x5cj, MINI-xmrw-rfm4-2p25, MINI-xq74-956g-9vj4, MINI-xr62-8h8v-cffx, OESA-2025-2092, OESA-2025-2093, OESA-2026-3480, RHSA-2025:3165, RHSA-2025:3175, RHSA-2025:3184, RHSA-2025:3185, RHSA-2025:3186, RHSA-2025:3210, RHSA-2025:3266, RHSA-2025:3268, RHSA-2025:3336, RHSA-2025:3685, RHSA-2025:3833, RHSA-2025:7416, RHSA-2025:7484, RLSA-2025:3210, RLSA-2025:3833, RLSA-2025:7416, RLSA-2025:7484, ROOT-APP-GOBINARY-CVE-2025-22869, SUSE-SU-2026:1763-1, UBUNTU-CVE-2025-22869, USN-8519-1, openSUSE-SU-2025:14877-1, openSUSE-SU-2025:14881-1, openSUSE-SU-2025:14883-1, openSUSE-SU-2025:14887-1, openSUSE-SU-2025:14900-1, openSUSE-SU-2025:14919-1, openSUSE-SU-2025:14930-1, openSUSE-SU-2025:14932-1, openSUSE-SU-2025:14940-1, openSUSE-SU-2025:15220-1, openSUSE-SU-2025:15389-1, openSUSE-SU-2026:20581-1

## 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 (Allocation of Resources Without Limits or Throttling)

## 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 | Ecosystem | 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 |
| `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: Go Ssh.

## How do I fix CVE-2025-22869?

Upgrade golang.org/x/crypto to 0.35.0 or later.

## 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

- [CVE-2025-47913](https://insights.sbomify.com/CVE-2025-47913/): Potential denial of service in golang.org/x/crypto/ssh/agent (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-22869 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2025-22869 in the wild and no public exploit code.

Affected packages and fixed versions:
- golang.org/x/crypto (Go): affected all versions; fixed in 0.35.0
- golang.org/x/crypto (Go): affected all versions; fixed in 0.35.0
- golang.org/x/crypto (Go): affected all versions; fixed in 0.35.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-22869/ (Markdown: https://insights.sbomify.com/CVE-2025-22869/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-22869
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-22869
- OSV: https://osv.dev/vulnerability/CVE-2025-22869

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-22869/
Summaries are generated and may contain mistakes; the official description above is the record.
