Generation of Predictable Numbers or Identifiers Affecting curl package, versions [,8.16.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-12632969
  • published12 Sept 2025
  • disclosed12 Sept 2025
  • creditCalvin Ruocco

Introduced: 12 Sep 2025

NewCVE-2025-10148  (opens in a new tab)
CWE-340  (opens in a new tab)

How to fix?

Upgrade curl to version 8.16.0 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 Generation of Predictable Numbers or Identifiers via the websocket component due to using a fixed 32 bit mask that persisted and was used throughout the entire connection instead of updating it for each new outgoing frame as the specification says. An attacker can manipulate traffic between communicating parties by exploiting the use of the fixed mask, potentially causing a proxy to cache maliciously crafted HTTP content that could later be served to other users.

Notes:

  1. This is only exploitable if the libcurl-using application is communicating through such a (defective) proxy that confuses a WebSocket communication for HTTP traffic. Further, to trigger the problem it requires the traffic to be done using clear text HTTP / WebSocket (ws://) and not over TLS (wss://);

  2. This flaw also affects the curl command line tool.

CVSS Base Scores

version 4.0
version 3.1