Recently, NSFOCUS CERT detected that Redis issued a security bulletin and fixed the Redis Lua code execution vulnerability (CVE-2025-49844); Because Redis’s Lua script engine has a use-after-free reuse vulnerability when handling memory management, an authenticated attacker can write a specially crafted Lua script to manipulate the memory recycling mechanism and execute the Lua script through the EVAL and EVALSHA commands in Redis, thereby executing arbitrary code on the target server. CVSS score is 10. At present, the vulnerability PoC has been made public. Relevant users are requested to take measures to protect it as soon as possible.
Redis is an open source in-memory database that persists on disk. It is mainly used as a high-performance cache server, and can also be used as message middleware and session sharing.
Reference link: https://github.com/redis/redis/security/advisories/GHSA-4789-qfc9-5f9q
Affected version
Unaffected version
Official upgrade
At present, the official has released a new version to fix this vulnerability. Affected users are requested to upgrade the version as soon as possible for protection.
Download link: https://github.com/redis/redis/releases
Other protective measures
If the relevant users are temporarily unable to perform upgrade operations, the execution of Lua scripts can also be restricted without affecting the business. The use of EVAL and EVALSHA commands can be restricted or prohibited through ACL.
This advisory is only used to describe a potential risk. NSFOCUS does not provide any commitment or promise on this advisory. NSFOCUS and the author will not bear any liability for any direct and/or indirect consequences and losses caused by transmitting and/or using this advisory. NSFOCUS reserves all the rights to modify and interpret this advisory. Please include this statement paragraph when reproducing or transferring this advisory. Do not modify this advisory, add/delete any information to/from it, or use this advisory for commercial purposes without permission from NSFOCUS.
NSFOCUS, a pioneering leader in cybersecurity, is dedicated to safeguarding telecommunications, Internet service providers, hosting providers, and enterprises from sophisticated cyberattacks.
Founded in 2000, NSFOCUS operates globally with over 4000 employees at two headquarters in Beijing, China, and Santa Clara, CA, USA, and over 50 offices worldwide. It has a proven track record of protecting over 25% of the Fortune Global 500 companies, including four of the five largest banks and six of the world’s top ten telecommunications companies.
Leveraging technical prowess and innovation, NSFOCUS delivers a comprehensive suite of security solutions, including the Intelligent Security Operations Platform (ISOP) for modern SOC, DDoS Protection, Continuous Threat Exposure Management (CTEM) Service and Web Application and API Protection (WAAP). All the solutions and services are augmented by the Security Large Language Model (SecLLM), ML, patented algorithms and other cutting-edge research achievements developed by NSFOCUS.
The post Redis Lua Code Execution Vulnerability (CVE-2025-49844) Notice appeared first on NSFOCUS, Inc., a global network and cyber security leader, protects enterprises and carriers from advanced cyber attacks..
*** This is a Security Bloggers Network syndicated blog from NSFOCUS, Inc., a global network and cyber security leader, protects enterprises and carriers from advanced cyber attacks. authored by NSFOCUS. Read the original post at: https://nsfocusglobal.com/redis-lua-code-execution-vulnerability-cve-2025-49844-notice/