Aerospike Database Server Client Batch Request Code Execution Vulnerability
An out-of-bounds write in Aerospike Database Server's batch request parsing allows a remote attacker to corrupt memory and potentially execute code by sending a crafted packet.
Originally disclosed on Cisco Talos
An exploitable out-of-bounds write vulnerability exists in the batch transaction field parsing functionality of Aerospike Database Server 3.10.0.3. A specially crafted packet can cause an out-of-bounds write resulting in memory corruption which can lead to remote code execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server fails to check that the size field of each message field stays within the packet bounds, so a crafted size can move the parsing pointer out of bounds and cause an out-of-bounds write.
Impact
A remote attacker could cause memory corruption leading to code execution under the server's context, and the text notes that setting the first transaction to repeat can also cause a denial-of-service condition.
What the attacker needed
Network access to the server port
How it was found
- Connect to the Aerospike server port.
- Send a packet with the batch flag set in info1 and two fields: a namespace field and a batch field.
- Inside the batch field, include a transaction with repeat byte 0 and an embedded message with two fields whose sizes are set to the maximum uint32_t value.
- The server processes the batch request and the out-of-bounds write occurs.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Aerospike is a database server that listens on a network port. A bug in how it reads certain batch requests lets an attacker send a packet that makes the server write data outside the intended memory area, which can crash it or let the attacker run their own code.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.