CVE-2020-13151 in the critical feed json
Aerospike Community Edition 4.9.0.5 allows for unauthenticated submission and execution of user-defined functions (UDFs), written in Lua, a…
published 6y ago modified 4mo ago also EUVD-2020-5427
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 86.5%
- EPSS 86.5% chance of exploitation in 30 days, percentile 99.7%
- public exploits
- 2
- Metasploit and Exploit-DB
Summary
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.
Patch / fix
- aerospike aerospike_server 4.5.3.21, 4.6.0.19, 4.7.0.17, 4.8.0.13, 4.9.0.10, 5.0.0.7
Is CVE-2020-13151 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerTimeline
- First public exploit (Metasploit exploit/linux/misc/aerospike_database_udf_cmd_exec)
- Published
Exploit prediction
86.52% chance of exploitation in the next 30 days, higher than 99.7% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Metasploit exploit/linux/misc/aerospike_database_udf_cmd_exec Aerospike Database UDF Lua Code Execution metasploit exploit, great rank, 2020-07-31
- EDB-49067 Aerospike Database 5.1.0.3 - OS Command Execution remote, 2020-11-17
- aerospike.com https://www.aerospike.com/docs/operations/configure/security/access-control/index.html#create-users-and-assign-roles referenced PoC, tagged "exploit" by a source, unverified
- b4ny4n.github.io https://b4ny4n.github.io/network-pentest/2020/08/01/cve-2020-13151-poc-aerospike.html referenced PoC, tagged "exploit" by a source, unverified
- packetstormsecurity.com http://packetstormsecurity.com/files/160106/Aerospike-Database-5.1.0.3-Remote-Command-Execution.html referenced PoC, tagged "exploit" by a source, unverified
- packetstormsecurity.com http://packetstormsecurity.com/files/160451/Aerospike-Database-UDF-Lua-Code-Execution.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
aerospike.com
/docs/operations/configure/security/access-control/index.html#create-users-and-assign-roles
exploit, vendor-advisory
-
b4ny4n.github.io
/network-pentest/2020/08/01/cve-2020-13151-poc-aerospike.html
exploit, third-party-advisory
-
packetstormsecurity.com
/files/160106/Aerospike-Database-5.1.0.3-Remote-Command-Execution.html
exploit, third-party-advisory, vdb-entry
-
packetstormsecurity.com
/files/160451/Aerospike-Database-UDF-Lua-Code-Execution.html
exploit, third-party-advisory, vdb-entry
-
aerospike.com
/download/server/notes.html#5.1.0.3
release-notes, vendor-advisory
-
aerospike.com
/enterprise/download/server/notes.html#5.1.0.3
release-notes, vendor-advisory
Sources
- CVE List CVE-2020-13151
- NVD CVE-2020-13151
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.