Infinite loop Affecting curl package, versions [8.13.0,8.14.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-CURL-10332636
  • published8 Jun 2025
  • disclosed7 Jun 2025
  • creditz2_

Introduced: 7 Jun 2025

NewCVE-2025-5399  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade curl to version 8.14.1 or higher.

Overview

curl is a command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP. libcurl offers a myriad of powerful features.

Affected versions of this package are vulnerable to Infinite loop in the function curl_ws_send(), due to a flaw in the handling of WebSocket packets. An attacker can cause the application to enter an endless loop, consuming resources indefinitely by sending a specially crafted packet, a carefully timed PING message while the client is constructing a frame via CURLWS_OFFSET that leads to the next curl_ws_send() invocation not terminating a loop that flushes data.

Note: The problem does not occur if "auto-pong" is disabled with the CURLWS_NOAUTOPONG option.

CVSS Base Scores

version 4.0
version 3.1