CVE-2025-2690 Details
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.
A critical deserialization vulnerability has been identified in yiisoft Yii2 versions through 2.0.39. The issue arises in the 'generate' function of 'phpunit\src\Framework\MockObject\MockClass.php', where untrusted data is deserialized without proper validation. This vulnerability can be exploited remotely, leading to arbitrary command execution.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gaorenyusi/gaorenyusi/blob/main/Yii2-2.md | [email protected] | ExploitThird Party Advisory |
| https://vuldb.com/?ctiid.300711 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.300711 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?submit.521718 | [email protected] | Third Party AdvisoryVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-502 | Deserialization of Untrusted Data | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| yiiframework yii | >= 2.0.0, <= 2.0.39 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 24, 2025 | Initial Analysis | [email protected] |
| Mar 24, 2025 | New CVE Received | [email protected] |