CriticalCVE-2022-0543

    Debian-specific Redis Server Lua Sandbox Escape Vulnerability (CVE-2022-0543)

    Published In CISA KEV since Sources: Debian, CVE.org, Schneider Electric, OSV

    What is affected, what to do

    It was discovered, that redis, a persistent key-value database, due to a packaging issue, is prone to a (Debian-specific) Lua sandbox escape, which could result in remote code execution.

    The vulnerability is being actively exploited; treat it as a priority. The available sources name no fixed version. Check the vendor guidance in the references below. Immediate actions, mitigation and detection rules are in the runbook below.

    Affected
    • Debian Redis 5:5.0.14-1+deb10u2..*
    • Debian Redis 5:6.0.16-1+deb11u2..*

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    10.0

    Priority

    XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.

    Source: NVD, CVSS v3

    10.0

    CVSS v3

    Severity Critical on the scale from 0 to 10.

    Source: Debian, CVE.org, Schneider Electric, OSV

    99.35 %

    EPSS score

    High — model estimates ≥ 50% chance of real-world exploitation within 30 days.

    Source: FIRST EPSS, percentile 99.94

    Show all metrics
    Severity
    Critical
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    230.36 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    actively exploited
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    10.0 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    10.0
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    99.35 %
    High — model estimates ≥ 50% chance of real-world exploitation within 30 days.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    99.94
    Critical — this CVE ranks in the top fifth of all CVEs scored today (rank ≥ 80%).
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    Actively exploited
    Published
    In CISA KEV since

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    CISA assessment (SSVC)
    Exploitation: active · automatable · Technical impact: total
    Source: CISA Vulnrichment, as of 29 January 2025
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-862

    Response and mitigation

    Why act now?

    Prioritisation rationale

    This is one of the most aggressively exploited entries on KEV: network-reachable with no authentication required, trivial public exploits (Metasploit module, dozens of PoCs), and an exploitation likelihood that ranks among the highest in the entire CVE corpus. Botnets such as Muhstik, Redigo and HeadCrab continuously scan the internet for exposed Debian and Bitnami Redis and take over fresh instances within minutes. Rank any internet-facing or DMZ-adjacent Redis host as P1 with an immediate patch-or-isolate window; purely internal instances in flat networks are P2, because any compromised app server or SSRF-capable frontend turns lateral reach into the same catastrophe. Container platforms running old Bitnami charts, developer VMs and quickly stood-up caching tiers without segmentation are the typical casualty profile.

    1. Runbook step 1

      Immediate response (0-24 h)

      • Apply the vendor patch: on Debian/Ubuntu run apt-get update && apt-get install --only-upgrade redis-server (fixed in Debian redis 5:5.0.14-1+deb10u2 and 5:6.0.16-1+deb11u2). Replace Bitnami Redis containers with the current image rather than restarting the old pod.
      • Inventory every Redis instance: ss -tlnp | grep 6379, scan the container registry for bitnami/redis tags, and check Helm/Terraform for pinned old image digests.
      • Cut network exposure immediately: block 6379/tcp (and 6380, 16379, 26379 for Sentinel/Cluster) at the perimeter firewall and security groups; whitelist only internal backend subnets. Treat any internet-reachable Redis as already compromised.
      • Disable Lua scripting as a bridging control: in redis.conf set rename-command EVAL "" and rename-command EVALSHA "", then restart. If applications genuinely need Lua, rename to an unpredictable token instead of the empty string.
      • Harden authentication: set a strong requirepass, enforce protected-mode yes, bind to loopback or a dedicated management NIC. Shut down any passwordless default deployment now.
      • Triage exposed hosts: check the redis-server process tree for shell children (sh, bash, curl, wget, python), inspect /tmp, the Redis data dir and ~redis/.ssh/authorized_keys for dropped binaries, cron entries and injected SSH keys.
    2. Runbook step 2

      Mitigation layers

      • Network segmentation: place Redis in a dedicated backend VLAN with zero-trust ingress from app tiers only. Egress filtering must block the redis-server process from reaching 80/443, SSH or arbitrary high ports — downloading miners or reverse shells is the standard post-exploitation move.
      • WAF/API gateway: if end-user input ever reaches an EVAL/EVALSHA path, deny Lua payloads containing package, require, io, os or ffi at the application boundary.
      • Container hardening: run Bitnami Redis with readOnlyRootFilesystem: true, non-root UID, allowPrivilegeEscalation: false, the runtime/default seccomp profile, and a Kubernetes NetworkPolicy that only permits the application pods to reach 6379.
      • Host hardening: deploy an AppArmor or SELinux profile that forbids execve of shells for redis-server. Extend the systemd unit with NoNewPrivileges=true, ProtectSystem=strict, PrivateTmp=true.
      • IAM / least privilege: redis service account must have /usr/sbin/nologin, no sudo rights, and no write access to /etc/cron.* or /var/spool/cron. Config files owned by root, mode 0644.
      • Config-change control: rename CONFIG SET via rename-command or restrict it to an admin jump host, so an attacker cannot pivot dir/dbfilename to a writable path for webshell staging.
    3. Runbook step 3

      Detection rules

      • Sysmon EID 1 / auditd execve: parent process redis-server spawning sh, bash, dash, python, perl, curl, wget or nc — a near-zero-false-positive exploitation signal. Sigma shape: parent_image|endswith: 'redis-server' and image|endswith: ('/sh','/bash','/curl','/wget','/python3').
      • Network telemetry (Zeek/Suricata): inbound connections to 6379 from unexpected sources; outbound traffic from the Redis host to mining pools, pastebin, raw.githubusercontent.com or IP-literal URLs. Suricata idea: alert on TCP payload containing EVAL plus package.loadlib or io.popen.
      • Redis slowlog and periodic MONITOR sampling: Lua scripts invoking redis.call('CONFIG','SET','dir',...) or cjson/cmsgpack payloads with shell metacharacters. KQL shape: DeviceProcessEvents | where InitiatingProcessFileName == "redis-server" and FileName in ("sh","bash","curl","wget").
      • File-system auditing (auditd -w): writes to /var/spool/cron/, /etc/cron.d/ or ~/.ssh/authorized_keys by the redis UID — the classic persistence pattern after a sandbox escape.
      • Application and web logs: error spikes or latency anomalies on endpoints that trigger Redis Lua, correlated with CPU surges on Redis hosts — a strong indicator of crypto-miner payloads, the most common post-exploitation outcome.

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    Actively exploited: treat the vulnerability as a priority in vulnerability handling under Art. 21(2)(e) NIS2. If it is exploited in your environment, check the reporting obligation under Art. 23 (early warning within 24 hours).
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    Since 11.09.2026, manufacturers of affected products with digital elements must report actively exploited vulnerabilities under Art. 14 CRA, with an early warning within 24 hours via ENISA's single reporting platform.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    Description

    It was discovered, that redis, a persistent key-value database, due to a packaging issue, is prone to a (Debian-specific) Lua sandbox escape, which could result in remote code execution.

    Source: Debian Security Advisories, NVD (NIST), schneider_csaf, cvelistv5, CISA KEV Catalog, OSV (Open Source Vulnerabilities), CVE.org (MITRE)

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    redisredis
    • —
    • —
    Distribution and container packages (1)

    Downstream packages (e.g. Bitnami, Debian, Ubuntu, Red Hat). Versions refer to the distribution, not the vendor.

    Distribution and container packages
    Affected versionsFixed in
    bitnamiredis
    • —
    • —

    Vendors and products

    Affected operating systems

    Affected operating systems
    Linuxdebianredisbullseye
    Linuxdebianredisbuster

    Weakness classes (CWE)

    • CWE-862Missing Authorization

      Class

      The product does not perform an authorization check when an actor attempts to access a resource or perform an action.

      Entry at MITRE CWE-862

    Public exploit references

    Publicly reported proof-of-concepts, exploit modules and detection templates for this vulnerability. NEOSEC links to the original sources only and does not provide any exploit code.

    Public exploit references
    CISA KEV CatalogCISA Known Exploited Vulnerability (opens in a new tab)cisa.govactively exploited
    Packet StormRedis Lua Sandbox Escape (opens in a new tab)packetstormsecurity.comPoC (publicly reported)reported, not verified—
    PoC-in-GitHub (nomi-sec)vulhub-redis-cve-2022-0543 (opens in a new tab)github.comPoC (publicly reported)reported, not verified
    PoC-in-GitHub (nomi-sec)CVE-2022-0543 (opens in a new tab)github.comPoC (publicly reported)reported, not verified

    References & sources

    • packetstormsecurity.comfiles/166885/Redis-Lua-Sandbox-Escape.htmlweb, x_refsource_MISC, Exploit, Third-party advisory, Vulnerability database
    • bugs.debian.org1005787web, x_refsource_MISC, Issue tracking, Patch, Third-party advisory
    • lists.debian.org[debian-security-announce] 20220218 [SECURITY] [DSA 5081-1] redis security updateweb, Mailing list, x_refsource_MLIST, Mailing list, Third-party advisory
    • security.netapp.comadvisory/ntap-20220331-0004web, x_refsource_CONFIRM, Third-party advisory
    • debian.orgDSA-5081web, Vendor advisory, x_refsource_DEBIAN, Mailing list, Third-party advisory
    • ubercomp.composts/2022-01-20_redis_on_debian_rceweb, x_refsource_MISC, Third-party advisory
    • cisa.govknown-exploited-vulnerabilities-catalog?field_cve=CVE-2022-0543government-resource, US government resource
    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2022-0543
    <a href="https://intel.neosec.eu/en/cve/CVE-2022-0543"><img src="https://intel.neosec.eu/badge/cve/CVE-2022-0543.svg?lang=en" alt="CVE-2022-0543 – NEOSEC Intel" height="20"></a>