Skip to content
Memory corruption Advisory Advanced CVE-2016-9051

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.

the Cisco Talos Team Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

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 Cisco Talos Team, on Cisco Talos

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

  1. Connect to the Aerospike server port.
  2. Send a packet with the batch flag set in info1 and two fields: a namespace field and a batch field.
  3. 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.
  4. 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.

More by the Cisco Talos Team

View all

7 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.