{"id":"CVE-2020-13151","published":"2020-08-05T12:36:39Z","modified":"2024-08-04T12:11:19Z","title":"Aerospike Community Edition 4.9.0.5 allows for unauthenticated submission and execution of user-defined functions…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"Aerospike Community Edition 4.9.0.5 lets unauthenticated users submit and run Lua user-defined functions (UDFs) as part of a database query, and its attempt to restrict code execution by disabling os.execute() is insufficient. An attacker with network access can use a crafted UDF to run arbitrary OS commands on every node in the cluster, with the permissions of the account running the Aerospike service, and no authentication or user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:18:36Z"},"cvss":null,"epss":{"score":0.86516,"percentile":0.99739,"date":"2026-11-04","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"https://www.aerospike.com/docs/operations/configure/security/access-control/index.html#create-users-and-assign-roles","tags":["x_refsource_MISC"]},{"url":"https://b4ny4n.github.io/network-pentest/2020/08/01/cve-2020-13151-poc-aerospike.html","tags":["x_refsource_MISC"]},{"url":"https://www.aerospike.com/download/server/notes.html#5.1.0.3","tags":["x_refsource_MISC"]},{"url":"https://www.aerospike.com/enterprise/download/server/notes.html#5.1.0.3","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/160106/Aerospike-Database-5.1.0.3-Remote-Command-Execution.html","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/160451/Aerospike-Database-UDF-Lua-Code-Execution.html","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2020-5427","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2020-5427","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":49067,"url":"https://www.exploit-db.com/exploits/49067","title":"Aerospike Database 5.1.0.3 - OS Command Execution","type":"remote","platform":"multiple","date":"2020-11-17","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2020-11-17"},"pocGithub":{"count":2,"skipped":0,"earliest":"2020-08-01","earliestUrl":"https://github.com/b4ny4n/CVE-2020-13151","repos":[{"name":"b4ny4n/CVE-2020-13151","url":"https://github.com/b4ny4n/CVE-2020-13151","stars":43,"created":"2020-08-01"},{"name":"ByteMe1001/CVE-2020-13151-POC-Aerospike-Server-Host-Command-Execution-RCE-","url":"https://github.com/ByteMe1001/CVE-2020-13151-POC-Aerospike-Server-Host-Command-Execution-RCE-","stars":1,"created":"2025-05-03"}]},"metasploit":[{"name":"Aerospike Database UDF Lua Code Execution","module":"exploit/linux/misc/aerospike_database_udf_cmd_exec","type":"exploit","disclosureDate":"2020-07-31","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/misc/aerospike_database_udf_cmd_exec.rb"}],"first":{"date":"2020-07-31","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/misc/aerospike_database_udf_cmd_exec.rb"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/160106/Aerospike-Database-5.1.0.3-Remote-Command-Execution.html","http://packetstormsecurity.com/files/160451/Aerospike-Database-UDF-Lua-Code-Execution.html"],"flow":[],"timeline":[{"date":"2020-07-31","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2020-08-01, Exploit-DB 2020-11-17","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/misc/aerospike_database_udf_cmd_exec.rb","provenance":"source"},{"date":"2020-08-05","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2020-13151","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":24.9,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.95,"detail":"percentile 0.9974"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 2 NVD exploit links; 2 PoC-in-GitHub repos; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}