Skip to main content
EPSS 82.3%top 0.36%

Valkey: Redis Lua Use-After-Free may lead to remote code execution (CVE-2025-49844)

0
Critical
Published: 10/16/2025 (10/16/2025, 09:19:55 UTC)
Source: GCVE Database
Product: valkey

Description

Redis versions 7.2.10 and earlier, 8.0.0 through 8.0.5, and 8.1.0 through 8.1.3 contain a use-after-free vulnerability in the Lua scripting engine. An authenticated user can exploit this by submitting a crafted Lua script that manipulates the garbage collector, potentially leading to remote code execution. This vulnerability is fixed in Redis version 8.2.2. As a workaround, administrators can restrict Lua script execution using ACLs to disable EVAL and EVALSHA commands.

Affected software

Bitnamimore threats →ghsa
valkey
pkg:bitnami/valkey
Affected versions
<7.2.11>=8.0.0 <8.0.6>=8.1.0 <8.1.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 13:19:20 UTC

Technical Analysis

Redis, an open source in-memory database, has a use-after-free vulnerability in its Lua scripting engine affecting versions <7.2.11, >=8.0.0 <8.0.6, and >=8.1.0 <8.1.4. Authenticated users can craft Lua scripts that manipulate the garbage collector to trigger a use-after-free condition, which may lead to remote code execution. The issue is resolved in version 8.2.2. Mitigation without patching involves restricting Lua script execution via ACLs.

Potential Impact

Successful exploitation allows an authenticated user to execute arbitrary code remotely on the Redis server, potentially compromising the system. This elevates the risk to critical severity due to the possibility of full system compromise.

Mitigation Recommendations

A patch is available and the issue is fixed in Redis version 8.2.2. Users should upgrade to this version to fully remediate the vulnerability. As a temporary workaround, administrators can prevent execution of Lua scripts by restricting the EVAL and EVALSHA commands using Redis ACLs. This limits the attack surface until patching is performed.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BIT-valkey-2025-49844
Osv Schema Version
1.6.2
Aliases
["CVE-2025-49844"]
Ecosystems
["Bitnami"]
Database Specific Severity
Critical

Threat ID: 6aa005b3acd9273b49ab58ab

Added to database: 09/08/2026, 12:55:15 UTC

Last enriched: 09/08/2026, 13:19:20 UTC

Last updated: 09/10/2026, 19:36:50 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses