Critical severity · published Mar 24, 2025
CVE-2025-2690
yiisoft Yii2 MockClass.php generate deserialization
9.8
CVSS
0.7%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 52% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
YI
Yii2 · yiisoft
2.0.0; 2.0.1; 2.0.2; 2.0.3; 2.0.4; 2.0.5; +34 more · source: vendor
YI
Yii · Yiiframework
2.0.0 through 2.0.39 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-2690
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-2690
Exploit
https://github.com/gaorenyusi/gaorenyusi/blob/main/Yii2-2.md
Permissions Required
https://vuldb.com/?ctiid.300711
Permissions Required
https://vuldb.com/?id.300711
Third Party Advisory
https://vuldb.com/?submit.521718
More from Yii2
9.8
CVE-2025-2689
yiisoft Yii2 SortableIterator.php getIterator deserialization
7.4
CVE-2026-39850
Yii 2: Local file inclusion via view parameter name collision
4.7
CVE-2024-32877
Reflected Cross-site Scripting in yiisoft/yii2 Debug mode
