Server crash via malformed Lua script loading
Published Apr 27, 2022 · Updated Apr 22, 2025
NULL pointer dereference in Redis before 6.2.7 and before 7.0.0 allows local users to crash redis-server via a crafted Lua script. The luaCreateFunction path concatenates the script body into a generated global function and passes that composite to luaL_loadbuffer, allowing attacker-controlled syntax to execute during compilation and reach the invalid state. The user must have Redis access permitting SCRIPT LOAD or EVAL; successful exploitation terminates the server rather than reading or changing stored data.
Summary
What happened
NULL pointer dereference in Redis before 6.2.7 and before 7.0.0 allows local users to crash redis-server via a crafted Lua script. The luaCreateFunction path concatenates the script body into a generated global function and passes that composite to luaL_loadbuffer, allowing attacker-controlled syntax to execute during compilation and reach the invalid state. The user must have Redis access permitting SCRIPT LOAD or EVAL; successful exploitation terminates the server rather than reading or changing stored data.
The record
- CVE
- CVE-2022-24736
- Published
- Apr 27, 2022
- Updated
- Apr 22, 2025
- Vendor
- Redis
- Product
- Redis
- Classifications
- CWE-476, T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 27, 2022CVE publishedPublication date reported by the CVE source.
- Apr 22, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 6.2.7
- Affected versionversion=< 7.0.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo