Cyber Resilience

CVE-2025-2690

MediumPublic PoC

Published: 24 March 2025

Published
24 March 2025
Modified
24 March 2025
KEV Added
Patch
CVSS Score v4 5.3 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.0008 24.6th percentile
Risk Priority 11 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2025-2690 is a medium-severity Improper Input Validation (CWE-20) vulnerability in Yiiframework Yii. Its CVSS base score is 5.3 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 24.6th 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).

Deeper analysis

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.

EU & UK References

Vulnerability details

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
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.

CVEs Like This One

CVE-2025-2689Same product: Yiiframework Yii
CVE-2024-4990Same product: Yiiframework Yii
CVE-2025-0465Shared CWE-20, CWE-502
CVE-2025-2376Shared CWE-20, CWE-502
CVE-2025-1113Shared CWE-20, CWE-502
CVE-2025-1177Shared CWE-20, CWE-502
CVE-2024-13136Shared CWE-20, CWE-502
CVE-2025-0734Shared CWE-20, CWE-502
CVE-2025-2855Shared CWE-20, CWE-502
CVE-2025-1186Shared CWE-20, CWE-502

Affected Assets

yiiframework
yii
2.0.0 — 2.0.39

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

prevent

Directly remediates the critical deserialization flaw in Yii2 up to 2.0.39 by identifying, reporting, and patching the vulnerable software.

prevent

Addresses the root cause of improper input validation (CWE-20) that enables unsafe deserialization in the Generate function.

detect

Scans systems to detect the presence of the known CVE-2025-2690 vulnerability in deployed Yii2 instances for timely remediation.

References