CVE-2020-13151
Aerospike Server vulnerability
Aerospike Community Edition 4.9.0.5 allows for unauthenticated submission and execution of user-defined functions (UDFs), written in Lua, as part of a database query. It attempts to restrict code execution by disabling os.execute() calls, but this is insufficient. Anyone with network access can use a crafted UDF to execute arbitrary OS commands on all nodes of the cluster at the permission level of the user running the Aerospike service.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Aerospike Server. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Aerospike Server runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.aerospike.com/docs/operations/configure/security/access-control/index.html#create-user · Exploit
- www.aerospike.com/download/server/notes.html#5.1.0.3 · Vendor Advisory
- www.aerospike.com/enterprise/download/server/notes.html#5.1.0.3 · Vendor Advisory
- packetstormsecurity.com/files/160106/Aerospike-Database-5.1.0.3-Remote-Command-Execution.h · Exploit
- packetstormsecurity.com/files/160451/Aerospike-Database-UDF-Lua-Code-Execution.html · Exploit
- b4ny4n.github.io/network-pentest/2020/08/01/cve-2020-13151-poc-aerospike.html · Exploit
- nvd.nist.gov/vuln/detail/CVE-2020-13151
- cve.org/CVERecord?id=CVE-2020-13151
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.