CVE-2025-48493: Yii 2 Redis Exposes AUTH Parameters in Logs on Connection Failure

yiisoft/yii2-redis Updated 14 Dec 2025

Summary

05/06/2025
Yes i
Moderate
5.1

CVE-2025-48493: Yii 2 Redis may expose AUTH parameters in logs in case of connection failure. Affects yiisoft/yii2-redis versions < 2.0.20. Fixed in 2.0.20. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Yii 2 Redis is a PHP extension that provides a Redis client for Yii Framework applications. It allows developers to interact with Redis databases easily, leveraging its caching and data storage capabilities. The extension is widely used for improving application performance and scalability. However, it has a vulnerability that can expose sensitive authentication information in logs, particularly during connection failures.

Vulnerability Detail

The vulnerability arises when the Yii 2 Redis extension encounters a connection failure. In such cases, it logs the sequence of commands sent to Redis, including the AUTH parameters, which contain the username and password in plain text. This exposure can lead to unauthorized access if an attacker gains access to the logs, potentially compromising the security of the application and its data.

How To Fix

Minimum fixed version

2.0.20

This is the first release that contains the fix.

composer require yiisoft/yii2-redis:2.0.20

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can configure your logging settings to avoid logging sensitive information. This can be done by adjusting the logging level or by implementing a custom logging handler that filters out sensitive data.

Conclusion

The Yii 2 Redis vulnerability (CVE-2025-48493) poses a significant risk by exposing sensitive authentication details in logs during connection failures. It is crucial to update to the patched version (2.0.20 or later) to mitigate this risk. Additionally, consider using Vulert for ongoing monitoring of vulnerabilities in your open-source dependencies.

See every vulnerability recorded for yiisoft/yii2-redis →

Share this vulnerability

FAQ

CVE-2025-48493 is a vulnerability in the Yii 2 Redis extension that exposes authentication parameters in logs during connection failures.

If an attacker gains access to the logs, they can retrieve sensitive authentication information, potentially leading to unauthorized access to your Redis database.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your composer.lock file without any signup.

If an immediate update is not possible, consider implementing logging configurations that prevent sensitive information from being logged as a temporary measure.

Yes, Vulert provides a service that allows you to monitor and receive alerts for open-source vulnerabilities in your software, ensuring you stay informed about potential risks.

Related vulnerabilities

Recent vulnerabilities recorded for yiisoft/yii2-redis.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

2.0.20

This is the first release that contains the fix.

composer require yiisoft/yii2-redis:2.0.20

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback