Bug 1057555 - CVE-2009-0689 php: heap overflow in floating point parsing
Summary: CVE-2009-0689 php: heap overflow in floating point parsing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1067646 1067647 1067657 1067658 1067659
Blocks: 1056609
TreeView+ depends on / blocked
 
Reported: 2014-01-24 10:50 UTC by Tomas Hoger
Modified: 2020-02-26 14:43 UTC (History)
6 users (show)

Fixed In Version: php 5.2.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-18 20:49:04 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:0311 0 normal SHIPPED_LIVE Critical: php security update 2014-03-18 23:43:38 UTC
Red Hat Product Errata RHSA-2014:0312 0 normal SHIPPED_LIVE Critical: php security update 2014-03-18 23:43:14 UTC

Description Tomas Hoger 2014-01-24 10:50:10 UTC
PHP uses a strtod() implementation using code written by David M. Gay.  This code was previously identified to contain a flaw leading to a heap based buffer overflow when overly long string representing a floating point number is parsed to a number.  The problem was assigned CVE ids CVE-2009-0689 (bug 539784) and CVE-2013-4164 (bug 1033460) and was fixed in various other projects re-using this affected code.

The problem was already corrected in PHP before the security issue was identified and CVE-2009-0689 assigned, via the following upstream commit:

http://git.php.net/?p=php-src.git;a=commitdiff;h=37da90248deb2188e8ee50e4753ad6340679b425

The fix was included in PHP 5.2.2.  This wasn't identified as security fix, or mentioned in the changelog for that PHP release:

http://www.php.net/ChangeLog-5.php#5.2.2

Problem can be triggered remotely if PHP application handles value from a request as numeric / floating point.

This issue affects php packages in Red Hat Enterprise Linux 5.  The php53 in Red Hat Enterprise Linux 5 and php packages in Red Hat Enterprise Linux 6 are based on fixed upstream version and are therefore unaffected.  The php packages in Red Hat Enterprise Linux 4 and older do not contain vulnerable code.

Comment 4 Tomas Hoger 2014-03-18 18:57:20 UTC
Making the bug public.

Comment 5 errata-xmlrpc 2014-03-18 19:43:59 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5.9 EUS - Server Only
  Red Hat Enterprise Linux 5.3 Long Life
  Red Hat Enterprise Linux 5.6 Long Life

Via RHSA-2014:0312 https://rhn.redhat.com/errata/RHSA-2014-0312.html

Comment 6 errata-xmlrpc 2014-03-18 19:45:30 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2014:0311 https://rhn.redhat.com/errata/RHSA-2014-0311.html


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