← Vulnerability feed

Vulnerability record · CVE-2018-11218 · published 17 June 2018

CVE-2018-11218: Redis cmsgpack Lua library stack buffer overflow memory corruption

Redislabs · Redis

Redis versions before 3.2.12, 4.x before 4.0.10, and 5.x before 5.0 RC2 contain a stack-based buffer overflow in the cmsgpack library used by the Lua scripting subsystem. The flaw is an out-of-bounds write (CWE-787) that corrupts memory and can crash or compromise the Redis process. It matters because Redis is widely deployed and the CVSS 3.0 base score is 9.8 critical.

9.8 CVSS 3.0 Critical EPSS 59% · top 0.9% CWE-787 · Out-of-bounds write
9.8CVSS 3.0 base score, v2 7.5
59%EPSS exploitation probability, 30 days
NoNot in CISA KEV
4Affected product versions listed by NVD
26References, 4 tagged exploit
17 Jun 2026Last modified by NVD

Description

Memory Corruption was discovered in the cmsgpack library in the Lua subsystem in Redis before 3.2.12, 4.x before 4.0.10, and 5.x before 5.0 RC2 because of stack-based buffer overflows.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

critical priorityCVSS 9.8 critical with network reachability, no privileges or interaction required, high EPSS, and public exploit references make this a top remediation priority.

What it is

Redis versions before 3.2.12, 4.x before 4.0.10, and 5.x before 5.0 RC2 contain a stack-based buffer overflow in the cmsgpack library used by the Lua scripting subsystem. The flaw is an out-of-bounds write (CWE-787) that corrupts memory and can crash or compromise the Redis process. It matters because Redis is widely deployed and the CVSS 3.0 base score is 9.8 critical.

Impact

An attacker can corrupt memory in the Redis process, leading to a crash or potentially arbitrary code execution in the context of the Redis server. The CVSS vector rates confidentiality, integrity, and availability impact as high.

Attack surface

The CVSS vector is network-reachable with no privileges and no user interaction (AV:N/AC:L/PR:N/UI:N), so the vulnerable Lua/cmsgpack path is reached over the network. No authentication is required per the vector, though the record does not state whether the affected command path is exposed only to authenticated clients in default configurations.

Exploitation

CISA KEV does not list this CVE, but EPSS is 0.59006 (99.067th percentile), indicating high predicted exploitation activity. Multiple references are tagged Exploit, including the antirez advisory and a Redis commit, so public exploit material exists.

What to do

  • Upgrade Redis to 3.2.12, 4.0.10, 5.0 RC2 or later, or apply the vendor patches referenced in the record.
  • Apply distribution and vendor errata (Red Hat RHSA-2019:0052, RHSA-2019:0094, RHSA-2019:1860; Debian DSA-4230; Oracle CPU April 2019; Gentoo GLSA 201908-04).
  • Restrict network access to Redis so only trusted hosts and applications can reach the service.
  • Disable or avoid untrusted Lua scripting and cmsgpack use where the workload does not require it.
  • Monitor for and apply any later Redis security updates that supersede these fixed versions.

Detection

  • Monitor Redis logs and process health for crashes, restarts, or abnormal termination that could indicate memory corruption.
  • Alert on unexpected or malformed EVAL/EVALSHA or cmsgpack-related Lua script activity from untrusted clients.
  • Track Redis version inventory and flag instances still below 3.2.12, 4.0.10, or 5.0 RC2.
  • Watch for network connections to Redis from hosts outside the expected client set.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

4 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://antirez.com/news/119 ExploitThird Party Advisory
http://www.securityfocus.com/bid/104553 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2019:0052 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:0094 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:1860
https://github.com/antirez/redis/commit/52a00201fca331217c3b4b8b634f6a0f57d6b7d3 ExploitPatchThird Party Advisory
https://github.com/antirez/redis/commit/5ccb6f7a791bf3490357b00a898885759d98bab0 PatchThird Party Advisory
https://github.com/antirez/redis/issues/5017 Third Party Advisory
https://raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTES Third Party Advisory
https://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES Third Party Advisory
https://security.gentoo.org/glsa/201908-04
https://www.debian.org/security/2018/dsa-4230 Third Party Advisory
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html PatchThird Party Advisory
http://antirez.com/news/119 ExploitThird Party Advisory
http://www.securityfocus.com/bid/104553 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2019:0052 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:0094 Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:1860
https://github.com/antirez/redis/commit/52a00201fca331217c3b4b8b634f6a0f57d6b7d3 ExploitPatchThird Party Advisory
https://github.com/antirez/redis/commit/5ccb6f7a791bf3490357b00a898885759d98bab0 PatchThird Party Advisory
https://github.com/antirez/redis/issues/5017 Third Party Advisory
https://raw.githubusercontent.com/antirez/redis/4.0/00-RELEASENOTES Third Party Advisory
https://raw.githubusercontent.com/antirez/redis/5.0/00-RELEASENOTES Third Party Advisory
https://security.gentoo.org/glsa/201908-04
https://www.debian.org/security/2018/dsa-4230 Third Party Advisory
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html PatchThird Party Advisory

Track CVE-2018-11218 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2018-11218), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.