CVE-2025-2690
JSON

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 packageVersionsReported by
yiisoft Yii22.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 moreCVE List
yiiframework yiifrom 2.0.0 up to 2.0.39NVD

All scores

VulDB5.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
VulDB6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
VulDB6.3medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
VulDB6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-20CWE-502

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

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.300711permissions-required, technical-description, vdb-entry
https://vuldb.com/?ctiid.300711permissions-required, signature, vdb-entry
https://vuldb.com/?submit.521718third-party-advisory, vdb-entry
https://github.com/gaorenyusi/gaorenyusi/blob/main/Yii2-2.mdexploit, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2025-2690 changed 2025-03-24CVE Terms of Use
NVDCVE-2025-2690 changed 2026-06-17Public domain