<?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>2011-03-22T12:53:11</oval:timestamp>
  </generator>

  <definitions>
    <definition id="oval:com.redhat.rhsa:def:20100678" version="502" class="patch">
      <metadata>
        <title>RHSA-2010:0678: rpm security update (Moderate)</title>
    <affected family="unix">
            <platform>Red Hat Enterprise Linux 4</platform>
         </affected>
    <reference source="RHSA" ref_id="RHSA-2010:0678-01" ref_url="https://rhn.redhat.com/errata/RHSA-2010-0678.html"/>
          <reference source="CVE" ref_id="CVE-2005-4889" ref_url="https://www.redhat.com/security/data/cve/CVE-2005-4889.html"/>
          <reference source="CVE" ref_id="CVE-2010-2059" ref_url="https://www.redhat.com/security/data/cve/CVE-2010-2059.html"/>
    
    <description>The RPM Package Manager (RPM) is a command line driven package management
system capable of installing, uninstalling, verifying, querying, and
updating software packages.

It was discovered that RPM did not remove setuid and setgid bits set on
binaries when upgrading or removing packages. A local attacker able to
create hard links to binaries could use this flaw to keep those binaries on
the system, at a specific version level and with the setuid or setgid bit
set, even if the package providing them was upgraded or removed by a system
administrator. This could have security implications if a package was
upgraded or removed because of a security flaw in a setuid or setgid
program. (CVE-2005-4889, CVE-2010-2059)

All users of rpm are advised to upgrade to these updated packages, which
contain a backported patch to correct these issues.</description>

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

<advisory from="secalert@redhat.com">

        <severity>Moderate</severity>

        <rights>Copyright 2010 Red Hat, Inc.</rights>
        <issued date="2010-09-07"/>
        <updated date="2010-09-07"/>
            <cve href="https://www.redhat.com/security/data/cve/CVE-2005-4889.html">CVE-2005-4889</cve>
            <cve href="https://www.redhat.com/security/data/cve/CVE-2010-2059.html">CVE-2010-2059</cve>
                <bugzilla href="http://bugzilla.redhat.com/598775" id="598775">CVE-2010-2059 rpm: fails to drop SUID/SGID bits on package upgrade</bugzilla>
            <bugzilla href="http://bugzilla.redhat.com/625756" id="625756">CVE-2005-4889 rpm: fails to drop SUID/SGID bits on package removal</bugzilla>
        <affected_cpe_list>
            <cpe>cpe:/o:redhat:enterprise_linux</cpe>
        </affected_cpe_list>
</advisory>
      </metadata>
      <criteria operator="AND">
 <criterion test_ref="oval:com.redhat.rhsa:tst:20100678001" comment="Red Hat Enterprise Linux 4 is installed" />
 <criteria operator="OR">
 
 <criteria operator="AND">
 <criterion test_ref="oval:com.redhat.rhsa:tst:20100678004" comment="rpm-devel is earlier than 0:4.3.3-33_nonptl.el4_8.1" /><criterion test_ref="oval:com.redhat.rhsa:tst:20100678005" comment="rpm-devel is signed with Red Hat master key" />
 
</criteria>
<criteria operator="AND">
 <criterion test_ref="oval:com.redhat.rhsa:tst:20100678010" comment="rpm-python is earlier than 0:4.3.3-33_nonptl.el4_8.1" /><criterion test_ref="oval:com.redhat.rhsa:tst:20100678011" comment="rpm-python is signed with Red Hat master key" />
 
</criteria>
<criteria operator="AND">
 <criterion test_ref="oval:com.redhat.rhsa:tst:20100678002" comment="rpm is earlier than 0:4.3.3-33_nonptl.el4_8.1" /><criterion test_ref="oval:com.redhat.rhsa:tst:20100678003" comment="rpm is signed with Red Hat master key" />
 
</criteria>
<criteria operator="AND">
 <criterion test_ref="oval:com.redhat.rhsa:tst:20100678012" comment="rpm-libs is earlier than 0:4.3.3-33_nonptl.el4_8.1" /><criterion test_ref="oval:com.redhat.rhsa:tst:20100678013" comment="rpm-libs is signed with Red Hat master key" />
 
</criteria>
<criteria operator="AND">
 <criterion test_ref="oval:com.redhat.rhsa:tst:20100678006" comment="popt is earlier than 0:1.9.1-33_nonptl.el4_8.1" /><criterion test_ref="oval:com.redhat.rhsa:tst:20100678007" comment="popt is signed with Red Hat master key" />
 
</criteria>
<criteria operator="AND">
 <criterion test_ref="oval:com.redhat.rhsa:tst:20100678008" comment="rpm-build is earlier than 0:4.3.3-33_nonptl.el4_8.1" /><criterion test_ref="oval:com.redhat.rhsa:tst:20100678009" comment="rpm-build is signed with Red Hat master key" />
 
</criteria>

</criteria>

</criteria>

    </definition>
  </definitions>
  <tests>
    <!-- ~~~~~~~~~~~~~~~~~~~~~   rpminfo tests   ~~~~~~~~~~~~~~~~~~~~~ -->
    <rpminfo_test id="oval:com.redhat.rhsa:tst:20100678001"  version="502" comment="Red Hat Enterprise Linux 4 is installed" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678001" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678002" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20100678002"  version="502" comment="rpm is earlier than 0:4.3.3-33_nonptl.el4_8.1" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678002" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678003" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20100678003"  version="502" comment="rpm is signed with Red Hat master key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678002" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678001" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20100678004"  version="502" comment="rpm-devel is earlier than 0:4.3.3-33_nonptl.el4_8.1" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678003" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678003" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20100678005"  version="502" comment="rpm-devel is signed with Red Hat master key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678003" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678001" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20100678006"  version="502" comment="popt is earlier than 0:1.9.1-33_nonptl.el4_8.1" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678004" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678004" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20100678007"  version="502" comment="popt is signed with Red Hat master key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678004" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678001" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20100678008"  version="502" comment="rpm-build is earlier than 0:4.3.3-33_nonptl.el4_8.1" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678005" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678003" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20100678009"  version="502" comment="rpm-build is signed with Red Hat master key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678005" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678001" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20100678010"  version="502" comment="rpm-python is earlier than 0:4.3.3-33_nonptl.el4_8.1" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678006" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678003" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20100678011"  version="502" comment="rpm-python is signed with Red Hat master key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678006" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678001" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20100678012"  version="502" comment="rpm-libs is earlier than 0:4.3.3-33_nonptl.el4_8.1" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678007" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678003" />
</rpminfo_test>
<rpminfo_test id="oval:com.redhat.rhsa:tst:20100678013"  version="502" comment="rpm-libs is signed with Red Hat master key" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <object object_ref="oval:com.redhat.rhsa:obj:20100678007" />
  <state state_ref="oval:com.redhat.rhsa:ste:20100678001" />
</rpminfo_test>

  </tests>

  <objects>
    <!-- ~~~~~~~~~~~~~~~~~~~~   rpminfo objects   ~~~~~~~~~~~~~~~~~~~~ -->
    <rpminfo_object id="oval:com.redhat.rhsa:obj:20100678003"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>rpm-devel</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20100678006"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>rpm-python</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20100678002"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>rpm</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20100678001"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>redhat-release</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20100678007"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>rpm-libs</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20100678004"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>popt</name>
</rpminfo_object>
<rpminfo_object id="oval:com.redhat.rhsa:obj:20100678005"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <name>rpm-build</name>
</rpminfo_object>

  </objects>
  <states>
    <!-- ~~~~~~~~~~~~~~~~~~~~   rpminfo states   ~~~~~~~~~~~~~~~~~~~~~ -->
    <rpminfo_state id="oval:com.redhat.rhsa:ste:20100678001"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <signature_keyid  operation="equals">219180cddb42a60e</signature_keyid>
</rpminfo_state>
<rpminfo_state id="oval:com.redhat.rhsa:ste:20100678002"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <version  operation="pattern match">^4[^[:digit:]]</version>
</rpminfo_state>
<rpminfo_state id="oval:com.redhat.rhsa:ste:20100678003"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <evr datatype="evr_string" operation="less than">0:4.3.3-33_nonptl.el4_8.1</evr>
</rpminfo_state>
<rpminfo_state id="oval:com.redhat.rhsa:ste:20100678004"  version="502" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <evr datatype="evr_string" operation="less than">0:1.9.1-33_nonptl.el4_8.1</evr>
</rpminfo_state>

  </states>
</oval_definitions>

