CVE-2025-2689: Yiisoft/yii2 dev Yiisoft Yii2 Deserialization Of Untrusted Vulnerability

MODERATE
Advisory Identifier: GHSA-88m2-j94x-v4fx
CVSS 6.3
CWE-502 CWE-20
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-2689
GHSA Identifier GHSA-88m2-j94x-v4fx
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Yiisoft/yii2 dev
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

yiisoft/yii2-dev fixed: Latest secure release
Upgrade yiisoft/yii2-dev to Latest secure release
Verify Direct and Transitive Dependencies

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

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.

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?
CVE-2025-2689 is a security vulnerability in Yiisoft/yii2 dev involving yiisoft Yii2 Deserialization of Untrusted Data under CWE-502: Deserialization of Untrusted Data.
Which Yiisoft/yii2 dev versions are affected?
Affected versions include releases prior to current release patches across affected packages: yiisoft/yii2-dev.
What version fixes CVE-2025-2689?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is yiisoft/yii2-dev affected?
Yes, yiisoft/yii2-dev is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-2689?
CVE-2025-2689 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-2689?
CVE-2025-2689 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Packagist dependencies for CVE-2025-2689?
Run the dependency tree command: 'inspect dependencies for yiisoft/yii2-dev'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}