{"schemaVersion":3,"id":"CVE-2020-13151","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2020-08-05T12:36:39.000Z","modified":"2024-08-04T12:11:19.091Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":10,"severity":"high","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.86749,"percentile":0.99745,"severity":"critical","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.86749},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.86749,"percentile":0.99745}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.86749,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.86749,"percentile":0.99745}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_F268233F43EBFE63","name":"Exploit Reference (aerospike.com)","source":"reference","url":"https://www.aerospike.com/docs/operations/configure/security/access-control/index.html#create-users-and-assign-roles","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_1E271AAF6B44E8EA","name":"Exploit Reference (b4ny4n.github.io)","source":"reference","url":"https://b4ny4n.github.io/network-pentest/2020/08/01/cve-2020-13151-poc-aerospike.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_4A96006A464D3264","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/160106/Aerospike-Database-5.1.0.3-Remote-Command-Execution.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_50654B116E6F7486","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/160451/Aerospike-Database-UDF-Lua-Code-Execution.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"49067","name":"Aerospike Database 5.1.0.3 - OS Command Execution","source":"exploit-database","url":"https://www.exploit-db.com/exploits/49067","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":"remote","platforms":["multiple"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"remote","platform":"multiple","file":"exploits/multiple/remote/49067.py","codes":["CVE-2020-13151"]},"metasploit":null},{"id":"MSF_EXPLOIT_LINUX_MISC_AEROSPIKE_DATABASE_UDF_CMD_EXEC","name":"Aerospike Database UDF Lua Code Execution","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/linux/misc/aerospike_database_udf_cmd_exec.rb","maturity":"weaponized","reliabilityScore":0.8333333333333334,"verified":true,"type":"remote","platforms":[],"requiresAuth":false,"exploitdb":null,"metasploit":{"fullname":"exploit/linux/misc/aerospike_database_udf_cmd_exec","rank":"500","rankName":"great","postAuth":false,"check":true,"stability":["crash-safe"],"sideEffects":["artifacts-on-disk","ioc-in-logs"],"reliability":["repeatable-session"]}}],"exploitCount":6,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"aerospike","product":"aerospike_server","name":"aerospike server","label":"aerospike_server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.5.3.21","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.6.0.1, < 4.6.0.19","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.7.0.1, < 4.7.0.17","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.8.0.1, < 4.8.0.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.9.0.1, < 4.9.0.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0.1, < 5.0.0.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.5.3.21 | ≥ 4.6.0.1, < 4.6.0.19 | ≥ 4.7.0.1, < 4.7.0.17 | ≥ 4.8.0.1, < 4.8.0.13 | ≥ 4.9.0.1, < 4.9.0.10 | ≥ 5.0.0.1, < 5.0.0.7","eol":null,"hubHref":"/vendor/aerospike/aerospike_server"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.aerospike.com/docs/operations/configure/security/access-control/index.html#create-users-and-assign-roles","label":"www.aerospike.com/docs/operations/configure/security/access-control/index.html","hostname":"www.aerospike.com","tags":["X Refsource MISC","Exploit","Vendor Advisory"]},{"url":"https://b4ny4n.github.io/network-pentest/2020/08/01/cve-2020-13151-poc-aerospike.html","label":"b4ny4n.github.io/network-pentest/2020/08/01/cve-2020-13151-poc-aerospike.html","hostname":"b4ny4n.github.io","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://www.aerospike.com/download/server/notes.html#5.1.0.3","label":"www.aerospike.com/download/server/notes.html","hostname":"www.aerospike.com","tags":["X Refsource MISC","Release Notes","Vendor Advisory"]},{"url":"https://www.aerospike.com/enterprise/download/server/notes.html#5.1.0.3","label":"www.aerospike.com/enterprise/download/server/notes.html","hostname":"www.aerospike.com","tags":["X Refsource MISC","Release Notes","Vendor Advisory"]},{"url":"http://packetstormsecurity.com/files/160106/Aerospike-Database-5.1.0.3-Remote-Command-Execution.html","label":"packetstormsecurity.com/files/160106/Aerospike-Database-5.1.0.3-Remote-Command-Execution.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/160451/Aerospike-Database-UDF-Lua-Code-Execution.html","label":"packetstormsecurity.com/files/160451/Aerospike-Database-UDF-Lua-Code-Execution.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-08-05T12:36:39.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T12:11:19.091Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":90,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T00:09:13.789Z","stale":false,"partial":false}}