CVE/vulnerability

Redis Server Use-After-Free Vulnerability Allows Remote Code Execution

A critical security vulnerability has been discovered in Redis Server that could allow authenticated attackers to achieve remote code execution through a use-after-free flaw in the Lua scripting engine.

The vulnerability, tracked as CVE-2025-49844, affects all versions of Redis that support Lua scripting functionality.

Critical Memory Corruption Flaw Discovered

Security researchers from Wiz, including Benny Isaacs, Nir Brakha, and Sagi Tzadik working with Trend Micro’s Zero Day Initiative, identified this severe vulnerability that exploits Redis’s garbage collection mechanism.

The flaw allows authenticated users to craft malicious Lua scripts that manipulate the garbage collector, triggering a use-after-free condition that can lead to arbitrary code execution on the target system.

FieldValue
CVE IDCVE-2025-49844
Vulnerability TypeUse-After-Free (CWE-416)
ImpactRemote Code Execution
CVSS 3.1 Score10.0 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H)
SeverityCritical

The vulnerability stems from improper memory management in Redis’s Lua scripting implementation, where memory references can persist after the garbage collector has freed the underlying memory structures.

This creates a dangerous condition where attackers can potentially control freed memory regions and execute arbitrary code with the privileges of the Redis server process.

The vulnerability presents significant risks to organizations running Redis deployments, particularly those allowing authenticated users to execute Lua scripts.

Attackers with valid Redis credentials can exploit this flaw remotely over network connections without requiring additional user interaction or elevated privileges on the target system.

The attack complexity is rated as low, meaning exploitation techniques are likely to be straightforward once the vulnerability details become widely known.

The changed scope rating indicates that successful exploitation could impact resources beyond the Redis server itself, potentially affecting other systems or data within the same security boundary.

While patches are still under development (marked as “TBD”), Redis administrators can implement immediate protective measures.

The primary workaround involves using Access Control Lists (ACLs) to restrict the EVAL and EVALSHA commands, effectively preventing users from executing Lua scripts altogether.

This mitigation strategy eliminates the attack vector while maintaining other Redis functionality.

Organizations should review their Redis configurations to identify instances where Lua scripting is enabled and assess whether this functionality is essential for their operations.

Those who can disable Lua scripting should implement ACL restrictions immediately as a temporary security measure.

Cyber Awareness Month Offer: Upskill With 100+ Premium Cybersecurity Courses From EHA's Diamond Membership: Join Today

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

2 days ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

2 days ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

2 days ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

2 days ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

2 days ago