<?xml version="1.0" encoding="UTF-8"?>

<oval_definitions xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:red-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd">
  <generator>
    <oval:product_name>Red Hat Errata System</oval:product_name>
    <oval:schema_version>5.3</oval:schema_version>
    <oval:timestamp>2008-01-23T07:18:10</oval:timestamp>
  </generator>

  <definitions>
    <definition id="oval:com.redhat.rhsa:def:20040392" version="302" class="patch">
      <metadata>
        <title>RHSA-2004:392: php security update
        (Important)
	</title>
  	<affected family="unix">
        <platform>Red Hat Enterprise Linux 3</platform>
        </affected>
        <reference source="RHSA" ref_id="RHSA-2004:392-02" ref_url="https://rhn.redhat.com/errata/RHSA-2004-392.html"/>
	<description>PHP is an HTML-embedded scripting language commonly used with the Apache
HTTP server.

Stefan Esser discovered a flaw when memory_limit is enabled in versions of
PHP 4 before 4.3.8. If a remote attacker could force the PHP interpreter to
allocate more memory than the memory_limit setting before script execution
begins, then the attacker may be able to supply the contents of a PHP hash
table remotely. This hash table could then be used to execute arbitrary
code as the 'apache' user. The Common Vulnerabilities and Exposures project
(cve.mitre.org) has assigned the name CAN-2004-0594 to this issue.

This issue has a higher risk when PHP is running on an instance of Apache
which is vulnerable to CAN-2004-0493.  For Red Hat Enterprise Linux 3, this
Apache memory exhaustion issue was fixed by a previous update,
RHSA-2004:342.  It may also be possible to exploit this issue if using a
non-default PHP configuration with the &quot;register_defaults&quot; setting is
changed to &quot;On&quot;. Red Hat does not believe that this flaw is exploitable in
the default configuration of Red Hat Enterprise Linux 3.

Stefan Esser discovered a flaw in the strip_tags function in versions of
PHP before 4.3.8.  The strip_tags function is commonly used by PHP scripts
to prevent Cross-Site-Scripting attacks by removing HTML tags from
user-supplied form data.  By embedding NUL bytes into form data, HTML tags
can in some cases be passed intact through the strip_tags function, which
may allow a Cross-Site-Scripting attack.  The Common Vulnerabilities and
Exposures project (cve.mitre.org) has assigned the name CAN-2004-0595 to
this issue.  

All users of PHP are advised to upgrade to these updated packages, which
contain backported patches that address these issues.</description>

<!-- ~~~~~~~~~~~~~~~~~~~~   advisory details   ~~~~~~~~~~~~~~~~~~~ -->

<advisory from="secalert@redhat.com">
        <severity>Important</severity>
        <rights>Copyright 2004 Red Hat, Inc.</rights>
        <issued date="2004-07-19"/>
        <updated date="2004-07-19"/>
        <cve href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-0594">CVE-2004-0594</cve>
        <cve href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2004-0595">CVE-2004-0595</cve>
  	<affected_cpe_list>
        <cpe>cpe://redhat:enterprise_linux:3</cpe>
        </affected_cpe_list>
</advisory>
      </metadata>  <criteria operator="AND">
    <criterion test_ref="oval:com.redhat.rhsa:tst:20040392001" comment="Red Hat Enterprise Linux 3 is installed"/>
    <criteria operator="OR">
            <criteria operator="AND">

            <criterion test_ref="oval:com.redhat.rhsa:tst:20040392002" comment="php is earlier than 0:4.3.2-11.1.ent"/>
            <criterion test_ref="oval:com.redhat.rhsa:tst:20040392003" comment="php is signed with Red Hat security key"/>
            </criteria>
            <criteria operator="AND">

            <criterion test_ref="oval:com.redhat.rhsa:tst:20040392004" comment="php-imap is earlier than 0:4.3.2-11.1.ent"/>
            <criterion test_ref="oval:com.redhat.rhsa:tst:20040392005" comment="php-imap is signed with Red Hat security key"/>
            </criteria>
            <criteria operator="AND">

            <criterion test_ref="oval:com.redhat.rhsa:tst:20040392006" comment="php-ldap is earlier than 0:4.3.2-11.1.ent"/>
            <criterion test_ref="oval:com.redhat.rhsa:tst:20040392007" comment="php-ldap is signed with Red Hat security key"/>
            </criteria>
            <criteria operator="AND">

            <criterion test_ref="oval:com.redhat.rhsa:tst:20040392008" comment="php-mysql is earlier than 0:4.3.2-11.1.ent"/>
            <criterion test_ref="oval:com.redhat.rhsa:tst:20040392009" comment="php-mysql is signed with Red Hat security key"/>
            </criteria>
            <criteria operator="AND">

            <criterion test_ref="oval:com.redhat.rhsa:tst:20040392010" comment="php-odbc is earlier than 0:4.3.2-11.1.ent"/>
            <criterion test_ref="oval:com.redhat.rhsa:tst:20040392011" comment="php-odbc is signed with Red Hat security key"/>
            </criteria>
            <criteria operator="AND">

            <criterion test_ref="oval:com.redhat.rhsa:tst:20040392012" comment="php-pgsql is earlier than 0:4.3.2-11.1.ent"/>
            <criterion test_ref="oval:com.redhat.rhsa:tst:20040392013" comment="php-pgsql is signed with Red Hat security key"/>
            </criteria>
    </criteria>
  </criteria>

    </definition>
  </definitions>
  <tests>
    <!-- ~~~~~~~~~~~~~~~~~~~~~   rpminfo tests   ~~~~~~~~~~~~~~~~~~~~~ --><rpminfo_test id="oval:com.redhat.rhsa:tst:20040392001" version="302" comment="redhat-release is version 3" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392001"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392001"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040392002" version="302" comment="php is earlier than 0:4.3.2-11.1.ent" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392002"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392002"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040392003" version="302" comment="php is signed with Red Hat security key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392002"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392003"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040392004" version="302" comment="php-imap is earlier than 0:4.3.2-11.1.ent" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392003"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392002"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040392005" version="302" comment="php-imap is signed with Red Hat security key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392003"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392003"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040392006" version="302" comment="php-ldap is earlier than 0:4.3.2-11.1.ent" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392004"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392002"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040392007" version="302" comment="php-ldap is signed with Red Hat security key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392004"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392003"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040392008" version="302" comment="php-mysql is earlier than 0:4.3.2-11.1.ent" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392005"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392002"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040392009" version="302" comment="php-mysql is signed with Red Hat security key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392005"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392003"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040392010" version="302" comment="php-odbc is earlier than 0:4.3.2-11.1.ent" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392006"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392002"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040392011" version="302" comment="php-odbc is signed with Red Hat security key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392006"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392003"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040392012" version="302" comment="php-pgsql is earlier than 0:4.3.2-11.1.ent" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392007"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392002"/>
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20040392013" version="302" comment="php-pgsql is signed with Red Hat security key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
<object object_ref="oval:com.redhat.rhsa:obj:20040392007"/>
<state state_ref="oval:com.redhat.rhsa:ste:20040392003"/>
</rpminfo_test>

  </tests>
  <objects>
    <!-- ~~~~~~~~~~~~~~~~~~~~   rpminfo objects   ~~~~~~~~~~~~~~~~~~~~ --><rpminfo_object id="oval:com.redhat.rhsa:obj:20040392001" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>redhat-release</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20040392002" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>php</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20040392003" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>php-imap</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20040392004" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>php-ldap</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20040392005" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>php-mysql</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20040392006" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>php-odbc</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20040392007" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>php-pgsql</name>
</rpminfo_object>

  </objects>
  <states>
    <!-- ~~~~~~~~~~~~~~~~~~~~   rpminfo states   ~~~~~~~~~~~~~~~~~~~~~ --><rpminfo_state id="oval:com.redhat.rhsa:ste:20040392001" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <version operation="pattern match">^3[^[:digit:]]</version>
</rpminfo_state>
<rpminfo_state id="oval:com.redhat.rhsa:ste:20040392002" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <evr datatype="evr_string" operation="less than">0:4.3.2-11.1.ent</evr>
</rpminfo_state>
<rpminfo_state id="oval:com.redhat.rhsa:ste:20040392003" version="302" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <signature_keyid operation="equals">219180cddb42a60e</signature_keyid>
</rpminfo_state>

  </states>
</oval_definitions>