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

Aerospike Database Server Index Name Code Execution Vulnerability

A stack-based buffer overflow in the Aerospike Database Server's secondary index name handling allows a remote attacker to send a crafted packet and potentially execute code. The vulnerability is triggered when the server processes a query with an overly long index name, overflowing a fixed-size stack buffer.

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 assindexsimatchbyiname 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 the length of the attacker-supplied index name as the size limit for a fixed-size stack buffer, instead of the buffer's actual size.

Impact

A remote attacker could execute arbitrary code on the server, potentially leading to full compromise.

What the attacker needed

Network access to the Aerospike port; namespace with a secondary index

How it was found

  1. Connect to the Aerospike server port.
  2. Send a packet with protocol type AS_MSG and a namespace field.
  3. Include an INDEX_RANGE field to make the transaction a query.
  4. Include an INDEX_NAME field with a value longer than 0x200 bytes.
  5. The server processes the query and overflows the stack buffer.

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, causing adjacent memory to be overwritten. Here, the server copies an index name from a network packet into a small stack buffer without checking the length, so a long name can overwrite important data and potentially let an 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.