CVE-2025-2690
published medium CVSS 4.0 · 5.3yiisoft Yii2 MockClass.php generate deserialization
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| yiisoft | — | Yii22.0.0 · 2.0.1 · 2.0.2 · 2.0.3 · 2.0.4 · 2.0.5 · 2.0.6 · 2.0.7 · 2.0.8 · 2.0.9 · 2.0.10 · 2.0.11 · 2.0.12 · 2.0.13 · 2.0.14 · 2.0.15 · 2.0.16 · 2.0.17 · 2.0.18 · 2.0.19 · 2.0.20 · 2.0.21 · 2.0.22 · 2.0.23 · 2.0.24 · 2.0.25 · 2.0.26 · 2.0.27 · 2.0.28 · 2.0.29 · 2.0.30 · 2.0.31 · 2.0.32 · 2.0.33 · 2.0.34 · 2.0.35 · 2.0.36 · 2.0.37 · 2.0.38 · 2.0.39 | Affected | Not stated | VulDB |
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.
Es wurde eine kritische Schwachstelle in yiisoft Yii2 bis 2.0.39 gefunden. Hiervon betroffen ist die Funktion Generate der Datei phpunit\src\Framework\MockObject\MockClass.php. Durch Manipulation mit unbekannten Daten kann eine deserialization-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk angegangen werden. Der Exploit steht zur öffentlichen Verfügung.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- VulDB · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.3 | medium | VulDB · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | — |
| 3.0 | 6.3 | medium | VulDB · cna | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | — |
| 2.0 | 6.5 | medium | VulDB · cna | AV:N/AC:L/Au:S/C:P/I:P/A:P | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| yiisoft | Yii2 | 2.0.0 (affected)2.0.1 (affected)2.0.2 (affected)2.0.3 (affected)2.0.4 (affected)2.0.5 (affected)2.0.6 (affected)2.0.7 (affected)2.0.8 (affected)2.0.9 (affected)2.0.10 (affected)2.0.11 (affected)2.0.12 (affected)2.0.13 (affected)2.0.14 (affected)2.0.15 (affected)2.0.16 (affected)2.0.17 (affected)2.0.18 (affected)2.0.19 (affected)2.0.20 (affected)2.0.21 (affected)2.0.22 (affected)2.0.23 (affected)2.0.24 (affected)2.0.25 (affected)2.0.26 (affected)2.0.27 (affected)2.0.28 (affected)2.0.29 (affected)2.0.30 (affected)2.0.31 (affected)2.0.32 (affected)2.0.33 (affected)2.0.34 (affected)2.0.35 (affected)2.0.36 (affected)2.0.37 (affected)2.0.38 (affected)2.0.39 (affected) | VulDB · cna |
Weaknesses
2- CWE-502 Deserialization
- CWE-20 Improper Input Validation
References
4- https://github.com/gaorenyusi/gaorenyusi/blob/main/Yii2-2.md
- VDB-300711 | CTI Indicators (IOB, IOC, IOA) https://vuldb.com/?ctiid.300711
- VDB-300711 | yiisoft Yii2 MockClass.php generate deserialization https://vuldb.com/?id.300711
- Submit #521718 | Yii Software LLC Yii 2.0 <=2.0.39 Deserialization https://vuldb.com/?submit.521718
Provider assertions
2VulDB · cna
yiisoft Yii2 MockClass.php generate deserialization
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 965585c72ffc94c210e6bdcfea3a8201a1e18dd6b4c3ec66f7153de2ded3c654
- Ingested
- 23 Sep 2026, 08:43:47 UTC
- Source record
- Official CVE record