Cyber Posture

CVE-2025-2690

MediumPublic PoC

Published: 24 March 2025

Published
24 March 2025
Modified
24 March 2025
KEV Added
Patch
CVSS Score 6.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
EPSS Score 0.0008 24.4th percentile
Risk Priority 13 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 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

What attackers do: exploitation maps to Exploit Public-Facing Application (T1190). What defenders deploy: see the NIST 800-53 controls recommended below.
Threat & Defense Details

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.

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.

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)

Affected Products

yiiframework
yii
2.0.0 — 2.0.39

CVEs Like This One

CVE-2025-2689Same product: Yiiframework Yii
CVE-2024-4990Same product: Yiiframework Yii
CVE-2025-15438Shared CWE-20, CWE-502
CVE-2025-8227Shared CWE-20, CWE-502
CVE-2025-1177Shared CWE-20, CWE-502
CVE-2025-11345Shared CWE-20, CWE-502
CVE-2025-2855Shared CWE-20, CWE-502
CVE-2025-0465Shared CWE-20, CWE-502
CVE-2025-0841Shared CWE-20, CWE-502
CVE-2025-7876Shared CWE-20, CWE-502

References