Vulnerability · Published Sep 12, 2025 · Assigned by curl
CVE-2025-10148predictable WebSocket mask
Medium 5.3
In plain English
A medium-severity security flaw in curl from curl. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
curl's WebSocket code did not update the 32-bit mask pattern for each new outgoing frame as the specification says. Instead it used a fixed mask that persisted and was used throughout the entire connection. A predictable mask pattern allows for a malicious server to induce traffic between the two communicating parties that could be interpreted by an involved proxy (configured or transparent) as genuine, real, HTTP traffic with content and thereby poison its cache. That cached poisoned content could then be served to all users of that proxy.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | curl | 8.14.1-r2 | ALPINE-CVE-2025-10148 |
| Alpine:v3.21 | curl | 8.14.1-r2 | ALPINE-CVE-2025-10148 |
| Alpine:v3.22 | curl | 8.14.1-r2 | ALPINE-CVE-2025-10148 |
| Alpine:v3.23 | curl | 8.16.0-r0 | ALPINE-CVE-2025-10148 |
| Alpine:v3.24 | curl | 8.16.0-r0 | ALPINE-CVE-2025-10148 |
| Debian:12 | curl | 7.88.1-10+deb12u15 | DEBIAN-CVE-2025-10148 |
| Debian:13 | curl | 8.14.1-2+deb13u1 | DEBIAN-CVE-2025-10148 |
| Debian:14 | curl | 8.16.0-1 | DEBIAN-CVE-2025-10148 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.22 | USN-8062-1 |
| Ubuntu:24.04:LTS | curl | 8.5.0-2ubuntu10.7 | USN-8062-1 |
| Ubuntu:24.04:LTS | curl | 8.5.0-2ubuntu10.7 | UBUNTU-CVE-2025-10148 |
| Ubuntu:25.10 | curl | 8.14.1-2ubuntu1.1 | USN-8062-1 |
| Ubuntu:25.10 | curl | 8.14.1-2ubuntu1.1 | UBUNTU-CVE-2025-10148 |
Affected products (as reported)
Weakness: CWE-340 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N