Generation of Predictable Numbers or Identifiers Affecting libcurl package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (9th 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-CONAN-LIBCURL-12632970
  • 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?

A fix was pushed into the master branch but not yet published.

Overview

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