CVE-2025-48493: Yiisoft/yii2 redis Yii 2 Redis May Expose Vulnerability
MODERATECVE-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
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.
Upgrade yiisoft/yii2-redis to 2.0.20
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
CVE-2025-48493 Affected Yiisoft/yii2 redis Versions
1 component(s)| 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?
Which Yiisoft/yii2 redis versions are affected?
What version fixes CVE-2025-48493?
Is yiisoft/yii2-redis affected?
What CWE is associated with CVE-2025-48493?
How can I check Packagist dependencies for CVE-2025-48493?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}