CVE-2020-13151: Remote Command Execution via Lua UDF in Aerospike Community Edition
- Vendor
- Aerospike
CVE-2020-13151 is a critical vulnerability in Aerospike Community Edition (prior to 4.9.0.10 and 5.0.0.7) that allows unauthenticated remote attackers to submit and execute arbitrary Lua user-defined functions (UDFs) as part of a database query. The vulnerability arises from insufficient blacklisting of dangerous Lua functions: while os.execute() was blocked, io.popen() was not, enabling attackers to execute arbitrary OS commands on all cluster nodes with the privileges of the Aerospike service account. The community edition's lack of authentication further exacerbates the risk, making exploitation trivial for anyone with network access.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows unauthenticated attackers to execute arbitrary commands on all Aerospike cluster nodes, potentially leading to full system compromise, lateral movement within the network, data exfiltration, or installation of persistent malware. The availability of a public exploit increases the risk of widespread exploitation, especially for internet-exposed instances.
Mitigation
If you can’t patch tonight, do this now.
As immediate mitigation, restrict network access to Aerospike servers using firewalls or network ACLs to trusted hosts only. Disable Lua UDFs if not required. For enterprise edition users, enforce strong authentication and minimize service account privileges. Monitor for suspicious UDF submissions and command execution activity.
Remediation
Patch, then assume compromise.
Upgrade Aerospike Community Edition to at least 4.9.0.10, 5.0.0.7, or preferably 5.1.0.3 or later. These versions allow disabling Lua UDFs and block process creation functions (such as io.popen) in UDFs. Apply all relevant patches as soon as possible.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2020-13151 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2020-13151 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2020-13151?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2020-13151, the earliest disclosed Jul 31, 2020.
- Is there a patch for CVE-2020-13151?
- Upgrade Aerospike Community Edition to at least 4.9.0.10, 5.0.0.7, or preferably 5.1.0.3 or later. These versions allow disabling Lua UDFs and block process creation functions (such as io.popen) in UDFs.
- What products are affected by CVE-2020-13151?
- Aerospike Server.
- How severe is CVE-2020-13151?
- CVE-2020-13151 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 86.5% (100th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.