CVE-2025-5399WebSocket endless loop
Due to a mistake in libcurl's WebSocket code, a malicious server can send a particularly crafted packet which makes libcurl get trapped in an endless busy-loop. There is no other way for the application to escape or exit this loop other than killing the thread/process. This might be used to DoS libcurl-using application.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Rocky Linux: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | curl | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | curl | Not affected vulnerable_code_not_present | ||
| Debian 14 | curl | Fixed | 8.14.1-1 | DEBIAN-CVE-2025-5399 |
| Debian 13 | curl | Fixed | 8.14.1-1 | DEBIAN-CVE-2025-5399 |
| Red Hat Enterprise Linux 10 | cargo | Not affected | ||
| Red Hat Enterprise Linux 10 | clippy | Not affected | ||
| Red Hat Enterprise Linux 10 | curl | Not affected | ||
| Red Hat Enterprise Linux 10 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 10 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | libcurl-minimal | Not affected | ||
| Red Hat Enterprise Linux 10 | rust | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-analyzer | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-debugger-common | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-doc | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-gdb | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-lldb | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-src | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-aarch64-unknown-none-softfloat | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-wasm32-unknown-unknown | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-wasm32-wasip1 | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-std-static-x86_64-unknown-none | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-toolset | Not affected | ||
| Red Hat Enterprise Linux 10 | rust-toolset-srpm-macros | Not affected | ||
| Red Hat Enterprise Linux 10 | rustfmt | Not affected | ||
| Red Hat Enterprise Linux 10 | snphost | Not affected | ||
| Red Hat Enterprise Linux 10 | trustee-guest-components | Not affected | ||
| Red Hat Enterprise Linux 9 | cargo | Not affected | ||
| Red Hat Enterprise Linux 9 | clippy | Not affected | ||
| Red Hat Enterprise Linux 9 | curl | Not affected | ||
| Red Hat Enterprise Linux 9 | curl-minimal | Not affected | ||
| Red Hat Enterprise Linux 9 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 9 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libcurl-minimal | Not affected | ||
| Red Hat Enterprise Linux 9 | rust | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-analysis | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-analyzer | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-debugger-common | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-gdb | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-lldb | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-src | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-unknown-unknown | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasi | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasip1 | Not affected | ||
| Red Hat Enterprise Linux 9 | rust-toolset | Not affected | ||
| Red Hat Enterprise Linux 9 | rustfmt | Not affected | ||
| Red Hat Enterprise Linux 9 | snphost | Not affected | ||
| Red Hat Enterprise Linux 9 | trustee-guest-components | Not affected | ||
| Red Hat Enterprise Linux 8 | curl | Not affected | ||
| Red Hat Enterprise Linux 8 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 8 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libcurl-minimal | Not affected | ||
| Red Hat Enterprise Linux 7 | curl | Not affected | ||
| Red Hat Enterprise Linux 7 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 7 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | curl | Not affected | ||
| Red Hat Enterprise Linux 6 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 6 | libcurl-devel | Not affected | ||
| AlmaLinux 10 | mysql-selinux | Fixed | 1.0.14-1.el10_0 | ALSA-2025:15699 |
| AlmaLinux 10 | mysql8.4-common | Fixed | 8.4.6-2.el10_0 | ALSA-2025:15699 |
| AlmaLinux 10 | mysql8.4-errmsg | Fixed | 8.4.6-2.el10_0 | ALSA-2025:15699 |
| AlmaLinux 10 | mysql8.4-test-data | Fixed | 8.4.6-2.el10_0 | ALSA-2025:15699 |
| AlmaLinux 9 | mecab | Fixed | 0.996-3.module_el9.6.0+152+8cbce00c.4 | ALSA-2025:16046 |
| AlmaLinux 9 | mecab-devel | Fixed | 0.996-3.module_el9.6.0+152+8cbce00c.4 | ALSA-2025:16046 |
| AlmaLinux 9 | mecab-ipadic | Fixed | 2.7.0.20070801-24.module_el9.6.0+152+8cbce00c | ALSA-2025:16046 |
| AlmaLinux 9 | mecab-ipadic-EUCJP | Fixed | 2.7.0.20070801-24.module_el9.6.0+152+8cbce00c | ALSA-2025:16046 |
| AlmaLinux 9 | mysql | Fixed | 8.4.6-1.module_el9.6.0+180+a4e757e5 | ALSA-2025:16046 |
| AlmaLinux 9 | mysql-common | Fixed | 8.4.6-1.module_el9.6.0+180+a4e757e5 | ALSA-2025:16046 |
| AlmaLinux 9 | mysql-devel | Fixed | 8.4.6-1.module_el9.6.0+180+a4e757e5 | ALSA-2025:16046 |
| AlmaLinux 9 | mysql-errmsg | Fixed | 8.4.6-1.module_el9.6.0+180+a4e757e5 | ALSA-2025:16046 |
| AlmaLinux 9 | mysql-libs | Fixed | 8.4.6-1.module_el9.6.0+180+a4e757e5 | ALSA-2025:16046 |
| AlmaLinux 9 | mysql-server | Fixed | 8.4.6-1.module_el9.6.0+180+a4e757e5 | ALSA-2025:16046 |
| AlmaLinux 9 | mysql-test | Fixed | 8.4.6-1.module_el9.6.0+180+a4e757e5 | ALSA-2025:16046 |
| AlmaLinux 9 | mysql-test-data | Fixed | 8.4.6-1.module_el9.6.0+180+a4e757e5 | ALSA-2025:16046 |
| AlmaLinux 9 | rapidjson-devel | Fixed | 1.1.0-19.module_el9.6.0+152+8cbce00c | ALSA-2025:16046 |
| AlmaLinux 9 | rapidjson-doc | Fixed | 1.1.0-19.module_el9.6.0+152+8cbce00c | ALSA-2025:16046 |
| Rocky Linux 10 | mysql-selinux | Fixed | 0:1.0.14-1.el10_0 | RLSA-2025:15699 |
| Rocky Linux 10 | mysql8.4 | Fixed | 0:8.4.6-2.el10_0 | RLSA-2025:15699 |
| Alpine Linux 3.24 | curl | Fixed | 8.14.1-r0 | ALPINE-CVE-2025-5399 |
| Alpine Linux 3.23 | curl | Fixed | 8.14.1-r0 | ALPINE-CVE-2025-5399 |
| Alpine Linux 3.22 | curl | Fixed | 8.14.1-r0 | ALPINE-CVE-2025-5399 |
| Alpine Linux 3.21 | curl | Fixed | 8.14.1-r0 | ALPINE-CVE-2025-5399 |
| Alpine Linux 3.20 | curl | Fixed | 8.14.1-r0 | ALPINE-CVE-2025-5399 |
| Alpine Linux 3.19 | curl | Fixed | 8.14.1-r0 | ALPINE-CVE-2025-5399 |
What the vendor says
As published in the CVE record by curl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- curl: affected: 8.14.0 to 8.14.0, 8.13.0 to 8.13.0
References
- https://curl.se/docs/CVE-2025-5399.json
- https://curl.se/docs/CVE-2025-5399.html
- https://hackerone.com/reports/3168039
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.