CVE-2025-2690
Published: 24 March 2025
Summary
CVE-2025-2690 is a medium-severity Improper Input Validation (CWE-20) vulnerability in Yiiframework Yii. Its CVSS base score is 6.3 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 24.4th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified are NIST 800-53 RA-5 (Vulnerability Monitoring and Scanning) and SI-10 (Information Input Validation).
Threat & Defense at a Glance
Threat & Defense Details
Mitigating Controls (NIST 800-53 r5)AI
Directly remediates the critical deserialization flaw in Yii2 up to 2.0.39 by identifying, reporting, and patching the vulnerable software.
Addresses the root cause of improper input validation (CWE-20) that enables unsafe deserialization in the Generate function.
Scans systems to detect the presence of the known CVE-2025-2690 vulnerability in deployed Yii2 instances for timely remediation.
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
The critical deserialization vulnerability (CVE-2025-2690) in Yii2 web framework up to 2.0.39 allows remote attackers to achieve arbitrary code execution via crafted input to the Generate function in MockClass.php, enabling exploitation of public-facing web applications.
NVD 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…
more
been disclosed to the public and may be used.
Deeper analysisAI
CVE-2025-2690 is a critical vulnerability found in yiisoft Yii2 up to version 2.0.39, affecting the Generate function in the file phpunit\src\Framework\MockObject\MockClass.php. The flaw stems from improper input validation (CWE-20) enabling deserialization (CWE-502), and it was published on 2025-03-24.
The vulnerability can be exploited remotely by attackers with low privileges (PR:L) over the network (AV:N) with low attack complexity (AC:L) and no user interaction required (UI:N). Exploitation maintains unchanged scope (S:U) and yields low impacts to confidentiality, integrity, and availability (C:L/I:L/A:L), resulting in a CVSS 3.1 base score of 6.3.
Advisories and additional details are documented in references including VulDB entries at https://vuldb.com/?ctiid.300711, https://vuldb.com/?id.300711, and https://vuldb.com/?submit.521718, as well as a GitHub disclosure at https://github.com/gaorenyusi/gaorenyusi/blob/main/Yii2-2.md. The exploit has been publicly disclosed and may be used.
Details
- CWE(s)