Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 689365 - (CVE-2011-1464) CVE-2011-1464 php: Crash by retrieving string value of a variable, when high precision used
CVE-2011-1464 php: Crash by retrieving string value of a variable, when high ...
Status: CLOSED NOTABUG
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
public=20110220,reported=20110319,sou...
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-21 04:37 EDT by Jan Lieskovsky
Modified: 2012-05-15 12:00 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-03-21 05:24:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jan Lieskovsky 2011-03-21 04:37:30 EDT
Common Vulnerabilities and Exposures assigned an identifier CVE-2011-1464 to
the following vulnerability:

Buffer overflow in the strval function in PHP before 5.3.6, when the
precision configuration option has a large value, might allow
context-dependent attackers to cause a denial of service (application
crash) via a small numerical value in the argument.

References:
[1] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-1464
[2] http://bugs.php.net/bug.php?id=54055
[3] http://www.php.net/ChangeLog-5.php
[4] http://www.php.net/archive/2011.php
[5] http://www.php.net/releases/5_3_6.php
Comment 1 Jan Lieskovsky 2011-03-21 04:39:24 EDT
Public PoC (from [2]):
======================

<?php
for($i = 500; $i <= 1074; $i++) {
  ini_set('precision', $i);
  print "$i\n";
  strval(pow(2, -1074));
}
Comment 2 Joe Orton 2011-03-21 04:47:33 EDT
Fix upstream: http://svn.php.net/viewvc?view=revision&revision=308525
Comment 5 Jan Lieskovsky 2011-03-21 05:13:21 EDT
This issue did NOT affect the versions of the php package, as shipped
with Red Hat Enterprise Linux 4 and 5.

--

This issue affects the versions of the php53 package, as shipped with
Red Hat Enterprise Linux 5.

This issue affects the versions of the php package, as shipped with
Red Hat Enterprise Linux 6.

--

This issue affects the versions of the php package, as shipped with
Fedora release of 13 and 14.
Comment 7 Jan Lieskovsky 2011-03-21 05:24:26 EDT
Statement:

Red Hat does not consider this flaw to be a security issue. It is improbable that a script would accept untrusted user input or unvalidated script input data to the strval() function. Input passed to the functions is therefore under the full control of the script author and no trust boundary is crossed. As well, an administrator would have to excessively increase the precision settings in order to trigger this flaw.
Comment 8 Robert Scheck 2011-07-10 11:22:14 EDT
Well, it is likely that especially a PHP script accepts untrusted user input,
but looks like you are trusting developers writing PHP code more than me.

Note You need to log in before you can comment on or make changes to this bug.