SAP Netweaver ABAP msg_server.exe Opcode 0x43 Remote Code Execution Vulnerability

ID ZDI-12-111
Type zdi
Reporter e6af8de8b1d4b2b6d5ba2610cbf9cd38
Modified 2012-11-09T00:00:00


This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of SAP Netweaver ABAP. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the msg_server.exe listening on 3900 by default. When the msg_server parses a message with opcode 0x43 and sub-opcode 0x04 it uses a user suplied size field to copy a string into a static sized stack buffer. The resulting buffer overflow can lead to remote code execution under the context of the process.