CVE-2025-2689: Yiisoft/yii2 dev Yiisoft Yii2 Deserialization Of Untrusted Vulnerability
MODERATECVE-2025-2689 is a MODERATE (CVSS 6.3) yiisoft yii2 deserialization of untrusted vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Yiisoft/yii2 dev libraries in the Packagist ecosystem. The issue involves yiisoft yii2 deserialization of untrusted data. Remediation is available in the latest vendor maintenance releases.
CVE-2025-2689 at a Glance
Security Impact
CVSS: 6.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2025-2689
To remediate this vulnerability, upgrade all affected Yiisoft/yii2 dev dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade yiisoft/yii2-dev to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for yiisoft/yii2-dev
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-2689, inspect your project dependencies for Yiisoft/yii2 dev:
inspect dependencies for yiisoft/yii2-dev
Analyze the terminal output to locate any version of Yiisoft/yii2 dev in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Yiisoft/yii2 dev, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-2689 Affected Yiisoft/yii2 dev Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
yiisoft/yii2-dev
|
Packagist |
≤ 2.0.45
|
|
References
Frequently Asked Questions
What is CVE-2025-2689?
Which Yiisoft/yii2 dev versions are affected?
What version fixes CVE-2025-2689?
Is yiisoft/yii2-dev affected?
What is the CVSS score of CVE-2025-2689?
What CWE is associated with CVE-2025-2689?
How can I check Packagist dependencies for CVE-2025-2689?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-88m2-j94x-v4fx",
"modified" : "2025-03-24T21:31:19Z",
"published" : "2025-03-24T09:34:03Z",
"aliases" : [ "CVE-2025-2689" ],
"summary" : "yiisoft Yii2 Deserialization of Untrusted Data",
"details" : "A vulnerability, which was classified as critical, has been found in yiisoft Yii2 up to 2.0.45. Affected by this issue is the function getIterator of the file symfony\\finder\\Iterator\\SortableIterator.php. The manipulation leads to deserialization. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "yiisoft/yii2-dev"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.0.45"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-2689"
}, {
"type" : "WEB",
"url" : "https://github.com/gaorenyusi/gaorenyusi/blob/main/Yii2.md"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/yiisoft/yii2"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.300710"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.300710"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.521709"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-502" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-24T21:31:19Z",
"nvd_published_at" : "2025-03-24T07:15:14Z"
}
}