The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-14147

CVE-2020-14147: Redis Integer Overflow DoS Vulnerability

CVE-2020-14147 is an integer overflow vulnerability in Redis that allows attackers to cause denial of service through memory corruption. This article covers the technical details, affected versions, and mitigations.

Published: March 4, 2026

CVE-2020-14147 Overview

CVE-2020-14147 is an integer overflow vulnerability in the getnum function within lua_struct.c in Redis versions prior to 6.0.3. This flaw allows attackers with permission to run Lua code in a Redis session to cause a denial of service through memory corruption and application crash, or potentially bypass intended sandbox restrictions. The vulnerability is triggered by providing a large number that causes a stack-based buffer overflow. Notably, this issue exists as a regression of a previously addressed vulnerability (CVE-2015-8080).

Critical Impact

Authenticated attackers with Lua script execution permissions can crash Redis instances or potentially escape sandbox restrictions, leading to service disruption and possible further exploitation in multi-tenant environments.

Affected Products

  • Redis Labs Redis (versions prior to 6.0.3)
  • Oracle Communications Operations Monitor (versions 3.4, 4.1, 4.2, 4.3)
  • SUSE Linux Enterprise 12.0
  • Debian Linux 10.0

Discovery Timeline

  • 2020-06-15 - CVE-2020-14147 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-14147

Vulnerability Analysis

This integer overflow vulnerability exists in the Lua struct library bundled with Redis. The getnum function in lua_struct.c parses numeric values from format strings without properly validating the size of the accumulated integer. When processing format strings containing large numeric specifiers, the function performs arithmetic operations that can overflow the integer variable, resulting in unexpected behavior.

The vulnerability specifically manifests during the parsing loop where digits are accumulated. Each iteration multiplies the current value by 10 and adds the next digit, but no bounds checking is performed to prevent the integer from exceeding INT_MAX. This unchecked arithmetic allows an attacker to trigger a stack-based buffer overflow through carefully crafted Lua struct operations.

Root Cause

The root cause is insufficient integer overflow protection in the getnum function. The original fix for CVE-2015-8080 was either incomplete or was inadvertently removed in subsequent code changes, leading to this regression. The function directly multiplies and adds integer values without verifying that the result remains within valid bounds before proceeding with the calculation.

Attack Vector

An attacker requires authenticated access to a Redis instance with permission to execute Lua scripts. By crafting a Lua script that uses the struct library with maliciously large numeric format specifiers, the attacker can trigger the integer overflow. This network-accessible attack requires low privileges (authenticated access) and no user interaction.

The attack flow involves:

  1. Connecting to a vulnerable Redis instance with valid credentials
  2. Executing a Lua script using EVAL or EVALSHA commands
  3. Calling struct functions with format strings containing extremely large numbers
  4. Triggering the integer overflow in getnum, leading to memory corruption
c
// Security patch from deps/lua/src/lua_struct.c
// Source: https://github.com/antirez/redis/commit/ef764dde1cca2f25d00686673d1bc89448819571

 } Header;
 
 
-static int getnum (const char **fmt, int df) {
+static int getnum (lua_State *L, const char **fmt, int df) {
   if (!isdigit(**fmt))  /* no number? */
     return df;  /* return default value */
   else {
     int a = 0;
     do {
+      if (a > (INT_MAX / 10) || a * 10 > (INT_MAX - (**fmt - '0')))
+        luaL_error(L, "integral size overflow");
       a = a*10 + *((*fmt)++) - '0';
     } while (isdigit(**fmt));
     return a;

The patch adds proper bounds checking before each arithmetic operation, verifying that multiplying by 10 and adding the next digit won't exceed INT_MAX. If an overflow would occur, a Lua error is raised instead of proceeding with corrupted values.

Detection Methods for CVE-2020-14147

Indicators of Compromise

  • Unexpected Redis process crashes or restarts, particularly after Lua script execution
  • Core dumps indicating memory corruption in lua_struct.c or related Lua library functions
  • Anomalous Lua script executions containing unusually large numeric literals in struct operations
  • Redis error logs showing segmentation faults or memory access violations

Detection Strategies

  • Monitor Redis logs for crash events correlating with EVAL or EVALSHA command execution
  • Implement Lua script auditing to flag struct operations with numeric specifiers exceeding reasonable thresholds
  • Deploy application-level monitoring to detect unusual patterns in Lua script submissions
  • Use memory corruption detection tools in staging environments to identify exploitation attempts

Monitoring Recommendations

  • Enable Redis slow log and monitor for complex Lua scripts that may indicate exploitation attempts
  • Configure process monitoring to alert on unexpected Redis terminations
  • Implement network monitoring to detect authenticated sessions executing suspicious Lua code
  • Review Redis ACLs regularly to ensure Lua script permissions are appropriately restricted

How to Mitigate CVE-2020-14147

Immediate Actions Required

  • Upgrade Redis to version 6.0.3 or later immediately
  • Restrict Lua script execution permissions using Redis ACLs where possible
  • Audit existing Lua scripts for potentially malicious struct operations
  • Consider disabling Lua scripting temporarily if upgrade cannot be performed immediately

Patch Information

Redis Labs has released version 6.0.3 which includes the security fix for this vulnerability. The patch is available through the GitHub Redis Commit and was merged via GitHub Redis Pull Request #6875.

Distribution-specific patches are available:

  • Debian Security Advisory DSA-4731
  • Gentoo GLSA 202008-17
  • openSUSE Security Announcement
  • Oracle CPU January 2021 Alert

Workarounds

  • Implement strict Redis ACLs to limit which users can execute Lua scripts
  • Use network segmentation to restrict access to Redis instances to trusted clients only
  • Deploy Redis behind authentication and ensure strong credential policies
  • Monitor and limit the complexity of Lua scripts allowed in production environments
bash
# Configuration example - Restrict Lua script permissions via Redis ACL
# Create a user without Lua scripting capabilities
redis-cli ACL SETUSER restricted-user on >password ~keys:* +@read +@write -@scripting

# Verify ACL configuration
redis-cli ACL LIST

# Monitor for Lua script execution attempts
redis-cli MONITOR | grep -E "(EVAL|EVALSHA)"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechRedislabs Redis

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.27%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • openSUSE Security Announcement

  • Gentoo GLSA 202008-17

  • Debian Security Advisory DSA-4731

  • Oracle CPU January 2021 Alert
  • Vendor Resources
  • GitHub Redis Commit

  • GitHub Redis Pull Request
  • Related CVEs
  • CVE-2021-32625: Redis Integer Overflow RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English