5.3medium
yiisoft Yii2 MockClass.php generate deserialization
- Severity
- 5.3medium CVSS:4.0 by VulDB
- Exploit likelihood
- 0.68% (higher than 53% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulDB
Description
A vulnerability, which was classified as critical, was found in yiisoft Yii2 up to 2.0.39. This affects the function Generate of the file phpunit\src\Framework\MockObject\MockClass.php. The manipulation leads to deserialization. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| yiisoft Yii2 | 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7 and 32 more | CVE List |
| yiiframework yii | from 2.0.0 up to 2.0.39 | NVD |
All scores
| VulDB | 5.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N |
| VulDB | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| VulDB | 6.3medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| VulDB | 6.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
A vulnerability, which was classified as critical, was found in yiisoft Yii2 up to 2.0.39. This affects the function Generate of the file phpunit\src\Framework\MockObject\MockClass.php. The manipulation leads to deserialization. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
CVE List (de)
Es wurde eine kritische Schwachstelle in yiisoft Yii2 bis 2.0.39 gefunden. Hiervon betroffen ist die Funktion Generate der Datei phpunit\src\Framework\MockObject\MockClass.php. Durch Manipulation mit unbekannten Daten kann eine deserialization-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk angegangen werden. Der Exploit steht zur öffentlichen Verfügung.
NVD (es)
Se encontró una vulnerabilidad, clasificada como crítica, en Yiisoft Yii2 (hasta la versión 2.0.39). Esta afecta la función Generate del archivo phpunit\src\Framework\MockObject\MockClass.php. La manipulación provoca la deserialización. Es posible iniciar el ataque remotamente. Se ha hecho público el exploit y puede que sea utilizado.
References
| https://vuldb.com/?id.300711 | permissions-required, technical-description, vdb-entry | |
| https://vuldb.com/?ctiid.300711 | permissions-required, signature, vdb-entry | |
| https://vuldb.com/?submit.521718 | third-party-advisory, vdb-entry | |
| https://github.com/gaorenyusi/gaorenyusi/blob/main/Yii2-2.md | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-2690 changed 2025-03-24 | CVE Terms of Use |
| NVD | CVE-2025-2690 changed 2026-06-17 | Public domain |