CVE-2025-48493: Yiisoft/yii2 redis Yii 2 Redis May Expose Vulnerability

MODERATE
Advisory Identifier: GHSA-g3p6-82vc-43jh
CWE-532
Published
Advisory Summary

CVE-2025-48493 is a MODERATE yii 2 redis may expose vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Yiisoft/yii2 redis libraries in the Packagist ecosystem. The issue involves yii 2 redis may expose auth parameters in logs in case of connection failure. Remediation is available by upgrading affected packages to version 2.0.20.

CVE-2025-48493 at a Glance

CVE Identifier CVE-2025-48493
GHSA Identifier GHSA-g3p6-82vc-43jh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Yiisoft/yii2 redis
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2025-48493

To remediate this vulnerability, upgrade all affected Yiisoft/yii2 redis 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-redis fixed: 2.0.20
Upgrade yiisoft/yii2-redis to 2.0.20
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-redis

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-48493, inspect your project dependencies for Yiisoft/yii2 redis:

inspect dependencies for yiisoft/yii2-redis

Analyze the terminal output to locate any version of Yiisoft/yii2 redis in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.20), 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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Yiisoft/yii2 redis, 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

### Impact On failing connection extension writes commands sequence to logs. AUTH parameters are written in plain text exposing username and password. That might be an issue if attacker has access to logs.

CVE-2025-48493 Affected Yiisoft/yii2 redis Versions

1 component(s)
Fixed Versions:
2.0.20
Product / Package Ecosystem Affected Versions Fixed Version
yiisoft/yii2-redis
Packagist
< 2.0.20
2.0.20

References

Frequently Asked Questions

What is CVE-2025-48493?
CVE-2025-48493 is a security vulnerability in Yiisoft/yii2 redis involving Yii 2 Redis may expose AUTH parameters in logs in case of connection failure under CWE-532: Insertion of Sensitive Information into Log File.
Which Yiisoft/yii2 redis versions are affected?
Affected versions include releases prior to 2.0.20 across affected packages: yiisoft/yii2-redis.
What version fixes CVE-2025-48493?
Upgrading to 2.0.20 (or the latest patched release for your respective branch) resolves the vulnerability.
Is yiisoft/yii2-redis affected?
Yes, yiisoft/yii2-redis is affected in releases prior to 2.0.20. Upgrade your dependency to 2.0.20 or later.
What CWE is associated with CVE-2025-48493?
CVE-2025-48493 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Packagist dependencies for CVE-2025-48493?
Run the dependency tree command: 'inspect dependencies for yiisoft/yii2-redis'. 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-g3p6-82vc-43jh",
  "modified" : "2025-06-06T15:59:53Z",
  "published" : "2025-06-05T16:53:23Z",
  "aliases" : [ "CVE-2025-48493" ],
  "summary" : "Yii 2 Redis may expose AUTH parameters in logs in case of connection failure",
  "details" : "### Impact\n\nOn failing connection extension writes commands sequence to logs. AUTH parameters are written in plain text exposing username and password. That might be an issue if attacker has access to logs.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "yiisoft/yii2-redis"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.20"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/yiisoft/yii2-redis/security/advisories/GHSA-g3p6-82vc-43jh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48493"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/yiisoft/yii2-redis/commit/962252d2c57c187181e67bb66da3f27b4698358d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/yiisoft/yii2-redis"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-05T16:53:23Z",
    "nvd_published_at" : "2025-06-05T17:15:29Z"
  }
}