SB2012050705 - OS command injection in php (Alpine package)
Published: May 7, 2012
Security Bulletin ID
SB2012050705
Severity
Critical
Patch available
YES
Number of vulnerabilities
1
Exploitation vector
Remote access
Highest impact
Code execution
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 security vulnerability.
1) OS command injection (CVE-ID: CVE-2012-1823)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.The weakness exists due to error when parsing QUERY_STRING parameters within PHP-CGI-based application (sapi/cgi/cgi_main.c). A remote attacker can send specially crafted HTTP request with query string without the "=" (equals sign) character, inject and execute arbitrary OS commands on vulnerable system with privileges of the web server.
Successful exploitation of the vulnerability results in denial of service or arbitrary code execution on the vulnerable system.
Note: the vulnerability was being actively exploited.
Remediation
Install update from vendor's website.
References
- https://git.alpinelinux.org/aports/commit/?id=b1eaed0ba19e987de68c910a1b3fbc25ef12127d
- https://git.alpinelinux.org/aports/commit/?id=1f379dc18a10d352941a71e204fbf3fa5327530a
- https://git.alpinelinux.org/aports/commit/?id=8ebfedc6f9a11253261d4481f583fe98492267d7
- https://git.alpinelinux.org/aports/commit/?id=3094cc97b38c43163f36e8de49b1be8a57f0d7cc