RHEL 2.1 : php (RHSA-2002:129)

high Nessus Plugin ID 12307

Synopsis

The remote Red Hat host is missing one or more security updates.

Description

PHP versions earlier than 4.1.0 contain a vulnerability that could allow arbitrary commands to be executed.

[updated 22 Aug 2002] The initial set of errata packages contained an incorrect set of dependencies. This meant that a number of packages would need to be installed before php that were not essential to the operation of php. Updated errata packages are included with this advisory that have corrected dependencies.

PHP is an HTML-embedded scripting language commonly used with Apache.
PHP versions 4.0.5 through 4.1.0 in safe mode do not properly cleanse the 5th parameter to the mail() function. This vulnerability allows local users and possibly remote attackers to execute arbitrary commands via shell metacharacters.

Red Hat Linux Advanced Server version 2.1 shipped with PHP 4.0.6.

The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2001-1246 to this issue.

All users of PHP should upgrade to these errata packages containing PHP 4.1.2, which is not vulnerable to this issue.

Note :

This PHP errata enforces memory limits on the size of the PHP process to prevent a badly generated script from becoming a possible source for a denial of service attack. The default process size is 8Mb though you can adjust this as you deem necessary thought the php.ini directive memory_limit. For example, to change the process memory limit to 4MB, add the following :

memory_limit 4194304

Important Installation Note :

There are special instructions you should follow regarding your /etc/php.ini configuration file in the 'Solution' section below.

Solution

Update the affected packages.

See Also

https://access.redhat.com/security/cve/cve-2001-1246

https://access.redhat.com/errata/RHSA-2002:129

Plugin Details

Severity: High

ID: 12307

File Name: redhat-RHSA-2002-129.nasl

Version: 1.21

Type: local

Agent: unix

Published: 7/6/2004

Updated: 1/14/2021

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

CVSS v2

Risk Factor: High

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:redhat:enterprise_linux:php-devel, p-cpe:/a:redhat:enterprise_linux:php-ldap, p-cpe:/a:redhat:enterprise_linux:php-manual, p-cpe:/a:redhat:enterprise_linux:php, p-cpe:/a:redhat:enterprise_linux:php-imap, p-cpe:/a:redhat:enterprise_linux:php-mysql, p-cpe:/a:redhat:enterprise_linux:php-odbc, cpe:/o:redhat:enterprise_linux:2.1, p-cpe:/a:redhat:enterprise_linux:php-pgsql

Required KB Items: Host/local_checks_enabled, Host/RedHat/release, Host/RedHat/rpm-list, Host/cpu

Patch Publication Date: 8/23/2002

Vulnerability Publication Date: 6/30/2001

Reference Information

CVE: CVE-2001-1246

RHSA: 2002:129