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

Aerospike Database Server Set Name Code Execution Vulnerability

A stack-based buffer overflow in Aerospike Database Server's query handling allows a remote attacker to send a crafted packet with an overly long set name, causing memory corruption and potentially remote code execution. The vulnerability is triggered when the set name plus bin id exceeds the fixed-size buffer used in a sprintf call.

the Cisco Talos Team Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

An exploitable stack-based buffer overflow vulnerability exists in the querying functionality of Aerospike Database Server 3.10.0.3. A specially crafted packet can cause a stack-based buffer overflow in the function assindexsimatchlistbysetbinid resulting in 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

The server uses sprintf to copy a user-controlled set name into a fixed-size stack buffer without bounds checking, allowing a stack-based buffer overflow.

Impact

A remote unauthenticated attacker could cause a stack-based buffer overflow, potentially leading to remote code execution.

What the attacker needed

Network access to the Aerospike port; no authentication required

How it was found

  1. Connect to the Aerospike server on its service port.
  2. Send a packet with protocol type AS_MSG and a data section containing at least three fields: NAMESPACE, INDEX_RANGE, and SET.
  3. Ensure the SET field's data length exceeds 84 bytes and contains a long string.
  4. The server processes the query and passes the set name to as_sindex__simatch_list_by_set_binid, triggering the overflow.

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.

A buffer overflow happens when a program writes more data into a fixed-size memory area than it can hold, overwriting nearby memory. Here, the server copies a user-supplied set name into a small stack buffer without checking its length, so a long name can corrupt the stack and let an attacker control execution flow. The attacker only needs to connect to the database port and send a specially crafted message.

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.