Distro advisory · AmazonLinux 1
critical priority package update for php
AmazonLinux 1
What it fixes
Package updates are available for Amazon Linux that fix the following vulnerabilities: CVE-2012-1823: sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case. A flaw was found in the way the php-cgi executable processed command line arguments when running in CGI mode. A remote attacker could send a specially-crafted request to a PHP script that would result in the query string being parsed by php-cgi as command line options and arguments. This could lead to the disclosure of the script's source code or arbitrary code execution with the privileges of the PHP interpreter. A flaw was found in the way the php-cgi executable processed command line arguments when running in CGI mode. A remote attacker could send a specially-crafted request to a PHP script that would result in the query string being parsed by php-cgi as command line options and arguments. This could lead to the disclosure of the script's source code or arbitrary code execution with the privileges of the PHP interpreter. 818607: CVE-2012-1823 php: command line arguments injection when run in CGI mode (VU#520827)
Manual fix · AmazonLinux 1
sudo yum updateinfo info ALAS-2012-77sudo yum upgrade --advisory=ALAS-2012-77rpm -q phpSources