{"id":"CVE-2025-2690","state":"PUBLISHED","title":"yiisoft Yii2 MockClass.php generate deserialization","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.","publishedAt":"2025-03-24T07:31:04.253Z","updatedAt":"2025-03-24T12:14:34.960Z","severity":{"score":5.3,"label":"Medium","version":"4.0","vector":"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","source":"VulDB"},"assigner":"VulDB","products":["yiisoft Yii2"],"affected":[{"vendor":"yiisoft","product":"Yii2","versions":[{"version":"2.0.0","status":"affected"},{"version":"2.0.1","status":"affected"},{"version":"2.0.2","status":"affected"},{"version":"2.0.3","status":"affected"},{"version":"2.0.4","status":"affected"},{"version":"2.0.5","status":"affected"},{"version":"2.0.6","status":"affected"},{"version":"2.0.7","status":"affected"},{"version":"2.0.8","status":"affected"},{"version":"2.0.9","status":"affected"},{"version":"2.0.10","status":"affected"},{"version":"2.0.11","status":"affected"},{"version":"2.0.12","status":"affected"},{"version":"2.0.13","status":"affected"},{"version":"2.0.14","status":"affected"},{"version":"2.0.15","status":"affected"},{"version":"2.0.16","status":"affected"},{"version":"2.0.17","status":"affected"},{"version":"2.0.18","status":"affected"},{"version":"2.0.19","status":"affected"},{"version":"2.0.20","status":"affected"},{"version":"2.0.21","status":"affected"},{"version":"2.0.22","status":"affected"},{"version":"2.0.23","status":"affected"},{"version":"2.0.24","status":"affected"},{"version":"2.0.25","status":"affected"},{"version":"2.0.26","status":"affected"},{"version":"2.0.27","status":"affected"},{"version":"2.0.28","status":"affected"},{"version":"2.0.29","status":"affected"},{"version":"2.0.30","status":"affected"},{"version":"2.0.31","status":"affected"},{"version":"2.0.32","status":"affected"},{"version":"2.0.33","status":"affected"},{"version":"2.0.34","status":"affected"},{"version":"2.0.35","status":"affected"},{"version":"2.0.36","status":"affected"},{"version":"2.0.37","status":"affected"},{"version":"2.0.38","status":"affected"},{"version":"2.0.39","status":"affected"}]}],"references":["https://vuldb.com/?id.300711","https://vuldb.com/?ctiid.300711","https://vuldb.com/?submit.521718","https://github.com/gaorenyusi/gaorenyusi/blob/main/Yii2-2.md"],"weaknesses":["CWE-502","CWE-20"],"ingestedAt":"2026-10-29T20:08:55.257Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/2xxx/CVE-2025-2690.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-2690","state":"PUBLISHED","datePublished":"2025-03-24T07:31:04.253Z","dateUpdated":"2025-03-24T12:14:34.960Z","assignerShortName":"VulDB","assignerOrgId":"1af790b2-7ee1-4545-860a-a788eba489b5","dateReserved":"2025-03-23T09:36:29.048Z"},"containers":{"cna":{"title":"yiisoft Yii2 MockClass.php generate deserialization","descriptions":[{"lang":"en","value":"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."},{"lang":"de","value":"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."}],"affected":[{"vendor":"yiisoft","product":"Yii2","versions":[{"version":"2.0.0","status":"affected"},{"version":"2.0.1","status":"affected"},{"version":"2.0.2","status":"affected"},{"version":"2.0.3","status":"affected"},{"version":"2.0.4","status":"affected"},{"version":"2.0.5","status":"affected"},{"version":"2.0.6","status":"affected"},{"version":"2.0.7","status":"affected"},{"version":"2.0.8","status":"affected"},{"version":"2.0.9","status":"affected"},{"version":"2.0.10","status":"affected"},{"version":"2.0.11","status":"affected"},{"version":"2.0.12","status":"affected"},{"version":"2.0.13","status":"affected"},{"version":"2.0.14","status":"affected"},{"version":"2.0.15","status":"affected"},{"version":"2.0.16","status":"affected"},{"version":"2.0.17","status":"affected"},{"version":"2.0.18","status":"affected"},{"version":"2.0.19","status":"affected"},{"version":"2.0.20","status":"affected"},{"version":"2.0.21","status":"affected"},{"version":"2.0.22","status":"affected"},{"version":"2.0.23","status":"affected"},{"version":"2.0.24","status":"affected"},{"version":"2.0.25","status":"affected"},{"version":"2.0.26","status":"affected"},{"version":"2.0.27","status":"affected"},{"version":"2.0.28","status":"affected"},{"version":"2.0.29","status":"affected"},{"version":"2.0.30","status":"affected"},{"version":"2.0.31","status":"affected"},{"version":"2.0.32","status":"affected"},{"version":"2.0.33","status":"affected"},{"version":"2.0.34","status":"affected"},{"version":"2.0.35","status":"affected"},{"version":"2.0.36","status":"affected"},{"version":"2.0.37","status":"affected"},{"version":"2.0.38","status":"affected"},{"version":"2.0.39","status":"affected"}]}],"references":[{"url":"https://vuldb.com/?id.300711","name":"VDB-300711 | yiisoft Yii2 MockClass.php generate deserialization","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/?ctiid.300711","name":"VDB-300711 | CTI Indicators (IOB, IOC, IOA)","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/?submit.521718","name":"Submit #521718 | Yii Software LLC Yii 2.0 <=2.0.39 Deserialization","tags":["third-party-advisory"]},{"url":"https://github.com/gaorenyusi/gaorenyusi/blob/main/Yii2-2.md","tags":["exploit"]}],"metrics":[{"cvssV4_0":{"version":"4.0","baseScore":5.3,"vectorString":"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","baseSeverity":"MEDIUM"}},{"cvssV3_1":{"version":"3.1","baseScore":6.3,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","baseSeverity":"MEDIUM"}},{"cvssV3_0":{"version":"3.0","baseScore":6.3,"vectorString":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","baseSeverity":"MEDIUM"}},{"cvssV2_0":{"version":"2.0","baseScore":6.5,"vectorString":"AV:N/AC:L/Au:S/C:P/I:P/A:P"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-502","type":"CWE","lang":"en","description":"Deserialization"}]},{"descriptions":[{"cweId":"CWE-20","type":"CWE","lang":"en","description":"Improper Input Validation"}]}],"providerMetadata":{"shortName":"VulDB","orgId":"1af790b2-7ee1-4545-860a-a788eba489b5","dateUpdated":"2025-03-24T07:31:04.253Z"},"timeline":[{"time":"2025-03-23T00:00:00.000Z","lang":"en","value":"Advisory disclosed"},{"time":"2025-03-23T01:00:00.000Z","lang":"en","value":"VulDB entry created"},{"time":"2025-03-23T10:41:34.000Z","lang":"en","value":"VulDB entry last update"}],"credits":[{"lang":"en","value":"gaorenyusi (VulDB User)","type":"reporter"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-24T12:12:44.235025Z","id":"CVE-2025-2690","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-24T12:14:34.960Z"}}]}}}