FlawAtlas
Search the atlas
CVE-2025-22150 Not scored

Undici Uses Insufficiently Random Values

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.

Exploit probability 0.7%
Published January 21, 2025
Required by Not available
Last source change July 15, 2026

02 / AFFECTED SOFTWARE

Affected packages

Unknown Unknown

138 explicit affected versions

03 / CONNECTIONS

Connected vulnerabilities

related ALSA-2025:1351
related ALSA-2025:1443
related ALSA-2025:1446
related ALSA-2025:1582
related ALSA-2025:1611
related ALSA-2025:1613
related CGA-GJJV-RJ3W-CWPQ
related OPENSUSE-SU-2025:14706-1
related OPENSUSE-SU-2025:15802-1
related RLSA-2025:1443
related SUSE-SU-2025:0232-1
related SUSE-SU-2025:0233-1
related SUSE-SU-2025:0234-1
related SUSE-SU-2025:0237-1
related SUSE-SU-2025:0284-1

04 / EVIDENCE

Source records

Open Source Vulnerabilities CVE-2025-22150

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.

View original source

05 / REFERENCES

Further evidence