Critical Remote Code Execution Vulnerability in Redis via Lua Use-After-Free (CVE-2025-49844)
Patch & Detection Intelligence · 19 sources · Updated 4mo ago · First seen Oct 6, 2025

A critical security vulnerability, tracked as CVE-2025-49844, has been identified in Redis, an open-source, in-memory database widely used for caching and data storage. The flaw is rated with a CVSS score of 10.0, indicating maximum severity and potential for significant impact. This vulnerability arises from a use-after-free condition in the Lua scripting engine of Redis, which can be exploited by an authenticated user. By crafting a malicious Lua script, an attacker can manipulate the garbage collector within Redis, triggering the use-after-free bug. Successful exploitation of this flaw allows remote code execution on the affected Redis server, granting attackers the ability to run arbitrary code with the privileges of the Redis process. All Redis versions up to and including 8.2.1 are affected by this vulnerability, as they include the vulnerable Lua scripting functionality. The issue has been addressed in Redis version 8.2.2, which contains the necessary patch to remediate the flaw. As an immediate mitigation for organizations unable to upgrade, Redis administrators are advised to restrict the execution of Lua scripts by disabling the EVAL and EVALSHA commands through Access Control Lists (ACLs). The vulnerability requires authentication, but in environments where Redis is exposed to untrusted users or where credentials are weak, the risk of exploitation is heightened. Security advisories recommend prompt patching and review of user permissions to minimize exposure. The flaw was publicly disclosed in early October 2025, and security researchers have emphasized the critical nature of the bug due to its potential for remote exploitation. No specific products beyond Redis itself have been listed as affected, but any deployment using vulnerable versions is at risk. The vulnerability has been confirmed to be remotely exploitable, making it a high-priority issue for organizations relying on Redis for critical infrastructure. The security community has highlighted the importance of monitoring for suspicious Lua script activity as an additional detection measure. Redis users are urged to consult official advisories and update their systems as soon as possible to prevent compromise. The disclosure underscores the ongoing risks associated with embedded scripting engines in widely deployed software. Organizations should also review their network exposure and ensure Redis instances are not accessible from untrusted networks. The incident serves as a reminder of the importance of timely patch management and the need for defense-in-depth strategies in database deployments.
Why it matters
Impact assessment
CVE-2025-49844 is a critical Redis remote code execution flaw that affects widely deployed self-managed Redis environments across OSS, Community Edition, Stack, and Enterprise/Software release lines that include Lua scripting. The impact is severe because successful exploitation gives an authenticated attacker arbitrary code execution as the Redis process, enabling host compromise, malware deployment, data theft, lateral movement, and operational disruption.
Exposure is potentially broad rather than narrowly targeted because Redis is heavily used for caching, messaging, and session storage across cloud and enterprise environments, and many internet-exposed instances are weakly protected or unauthenticated. Public reporting states no confirmed exploitation in the wild at disclosure time, but a public PoC exists and the combination of maximum severity, remote exploitability, and common insecure deployments makes this a high-priority remediation issue.
Affected populations
- Organizations running self-managed Redis for caching, message brokering, session sharing, or in-memory data storage
- Cloud-hosted and internet-exposed Redis deployments
- Redis OSS/CE, Stack, and Enterprise/Software users on vulnerable branches
- Environments where Redis authentication is absent, weak, or broadly shared
Severity and business risk
- Remote code execution on the Redis host
- Potential data exfiltration from cached/session data and adjacent systems
- Malware or cryptominer deployment
- Lateral movement from compromised Redis infrastructure
- Service instability or crashes tied to malicious Lua execution
- Reputational and financial impact if Redis supports customer-facing applications or critical internal services
Scope and exploitation status
- Broad exposure due to Redis prevalence in cloud environments
- Reporting cites roughly 330,000 internet-exposed Redis instances and about 60,000 without authentication
- No confirmed in-the-wild exploitation reported in the provided references as of disclosure
- Public proof-of-concept availability materially raises near-term exploitation risk


