Skip to main content
Mallory
← Back to News
widely-deployed-product-advisoryopen-source-dependency-vulnerabilityinternet-exposed-serviceinitial-access-method

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

Critical Remote Code Execution Vulnerability in Redis via Lua Use-After-Free (CVE-2025-49844)

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
Patch this, or something else?See real exploitation activity before you spend the cycle.
Triage this advisory
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events · May 1, 2025 – Oct 9, 2025
  1. Oct 9, 20251y ago

    Public PoC and additional mitigation guidance emerge

    By October 9, 2025, reporting indicated a public proof-of-concept was available for CVE-2025-49844, increasing exploitation risk. Additional mitigation guidance recommended restricting or disabling the EVAL and EVALSHA commands via ACLs if immediate upgrading was not possible.

  2. Oct 6, 20251y ago

    Government advisory urges organizations to apply Redis updates

    On October 6, 2025, the Canadian Centre for Cyber Security issued advisory AV25-646, urging administrators to review Redis's security advisory and apply the necessary updates for CVE-2025-49844. The notice reinforced the severity of the issue across multiple Redis product versions using Lua scripting.

  3. Oct 6, 20251y ago

    Public technical details highlight internet-exposed Redis risk

    By October 6, 2025, public reporting and vendor research described the flaw as 'RediShell,' explained Lua sandbox escape and reverse-shell risks, and warned that roughly 330,000 Redis instances were internet-exposed, including about 60,000 without authentication. Guidance emphasized immediate patching, restricting network access, and disabling or limiting Lua scripting where needed.

  4. Oct 3, 20251y ago

    Redis publishes advisory and patches for CVE-2025-49844

    On October 3, 2025, Redis disclosed CVE-2025-49844, a critical Lua scripting use-after-free flaw that can allow authenticated remote code execution. Redis released patched versions across affected OSS, Community Edition, Stack, and Enterprise branches, while Redis Cloud users were already protected.

  5. May 1, 20252y ago

    Wiz reports Redis Lua RCE at Pwn2Own Berlin

    Wiz researchers discovered and reported the Redis Lua use-after-free remote code execution vulnerability, later assigned CVE-2025-49844, at Pwn2Own Berlin in May 2025. The flaw had reportedly existed in Redis code for about 13 years.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Vulnerabilities

1 linked

Organizations

1 linked
Redis
Do you run this?See real exploitation activity behind this advisory so you can triage it against everything else in the queue.
Prioritize This Patch
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.