CVE-2025-22150

Aliases:GHSA-c76h-2ccp-4975
Deferred
Published: 21 Jan 2025, 17:46
Last modified:12 Feb 2025, 20:41

Vulnerability Summary

Overall Risk (default)
medium
27/100
CVSS Score
6.8 MEDIUM
v3.1 (cve.org)
EPSS Score
0.74% LOW
1% probability +0.61%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

21 Jan 2025, 17:46
Published
Vulnerability first disclosed
12 Feb 2025, 20:41
Last Modified
Vulnerability information updated

Description

Undici is an HTTP/1.1 client. Starting in version 4.5.0 and prior to versions 5.28.5, 6.21.1, and 7.2.3, undici uses `Math.random()` to choose the boundary for a multipart/form-data request. It is known that the output of `Math.random()` can be predicted if several of its generated values are known. If there is a mechanism in an app that sends multipart requests to an attacker-controlled website, they can use this to leak the necessary values. Therefore, an attacker can tamper with the requests going to the backend APIs if certain conditions are met. This is fixed in versions 5.28.5, 6.21.1, and 7.2.3. As a workaround, do not issue multipart requests to attacker controlled servers.

CVSS Metrics

  • v3.1MEDIUMScore: 6.8CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

EPSS Trends

Current EPSS score: 0.74% Percentile: 50%

Techniques & Countermeasures

  • CWE-330Use of Insufficiently Random Values

    The product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.

Affected Systems

  • nodejsundici

    ≥ 4.5.0, < 5.28.5 | ≥ 6.0.0, < 6.21.1 | ≥ 7.0.0, < 7.2.3

  • Npmundici

    ≥ 4.5.0, < 5.28.5 | ≥ 6.0.0, < 6.21.1 | ≥ 7.0.0, < 7.2.3

References (9)