Bug 674709 (CVE-2011-0755)

Summary: CVE-2011-0755 php: mt_rand() does not check that max is greater than min
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jorton
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-01 13:37:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vincent Danen 2011-02-03 01:24:57 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2011-0755 to
the following vulnerability:

Name: CVE-2011-0755
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-0755
Assigned: 20110202
Reference: CONFIRM: http://bugs.php.net/46587
Reference: CONFIRM: http://www.php.net/ChangeLog-5.php

Integer overflow in the mt_rand function in PHP before 5.3.4 might
make it easier for context-dependent attackers to predict the return
values by leveraging a script's use of a large max parameter, as
demonstrated by a value that exceeds mt_getrandmax.

Comment 1 Vincent Danen 2011-02-03 01:26:34 UTC
Statement:

Red Hat does not consider this flaw to be a security issue as arguments passed to the mt_rand function are under the full control of the script author. No trust boundary is crossed.

This flaw exists in the php53 packages versions as shipped in Red Hat Enterprise Linux 5 and the php packages versions as shipped in Red Hat Enterprise Linux 6.

Comment 2 Tomas Hoger 2011-03-01 13:37:40 UTC
Closing as not-a-security-bug.  As noted in the upstream bug, affected function returned random numbers from the specified range, but without enforcing which argument is minimal an which is maximal value.