vulnerability alert CVE-2012-6113
PHP: memory reading via openssl_encrypt
Synthesis of the vulnerability
When an attacker can control data sent to the PHP openssl_encrypt() function, and when he can read the result of this function, then he can obtain fragments of the application memory.
Impacted products: PHP.
Severity: 1/4.
Creation date: 21/01/2013.
Identifiers: 1099793, 61413, BID-57462, CVE-2012-6113, VIGILANCE-VUL-12341.
Description of the vulnerability
The PHP openssl_encrypt() function encrypts data. For example:
$encrypted = openssl_encrypt($data, ...);
However, if data size is zero, this function does not initialize the integer storing the data size. The openssl_encrypt() function then returns a memory fragment, of a random size (this size is the value previously stored at the address of this integer).
When an attacker can control data sent to the PHP openssl_encrypt() function, and when he can read the result of this function, he can therefore obtain fragments of the application memory.
Complete Vigil@nce bulletin.... (
free access)
Share this bulletin
Computer vulnerabilities tracking service
Vigil@nce provides
computers vulnerabilities patches. The Vigil@nce computer vulnerability tracking service alerts your teams of vulnerabilities or threats impacting your information system. The technology watch team tracks security threats targeting the computer system. The Vigil@nce team tracks computer vulnerabilities impacting systems and applications.