RealNetworks RealPlayer RV30 Sample Arbitrary Index Remote Code Execution Vulnerability

2012-03-26T00:00:00
ID ZDI-12-053
Type zdi
Reporter Damian Put
Modified 2012-11-09T00:00:00

Description

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of RealNetworks Real Player. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within how the application parses sample data encoded with the RV30 codec. When processing certain values within the sample data, the application will use a one as a size for an allocation, and then the use the immediately following byte as an index into that buffer. Due to the lack of correlation between the allocation and the loop that writes to the allocation, this can be used to write outside the buffer and can lead to code execution under the context of the application.