FIX: Fixed htmlentities/htmlspecialchars not to accept partial multibyte
sequences (CVE-2007-5898, Reported by Rasmus Lerdorf)
COMMENT: If a PHP page uses the htmlentities() and htmlspecialchars()
to display untrusted script input in HTML element attributes, a
cross-site-scripting attack may be possible, depending on the browser
used. [Of Firefox 1.5, 2.0, MSIE 6, 7, only MSIE6 seems vulnerable]
Probable upstream patches:
Unfortunately the CVSSv2 score provided by nvt.nist.gov has been incorrectly coded.
They gave CVSS v2 Base score: 10.0 (High) (AV:N/AC:L/Au:N/C:C/I:C/A:C)
But in fact it should be
CVSS v2 Base score: 4.3 (Medium) (AV:N/AC:M/Au:N/C:N/I:P/A:N)
We've sent a correction to NVD.
php-5.2.6-2.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update php'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-3864
php-5.2.6-2.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.
This was addressed via:
Red Hat Application Stack v2 for Enterprise Linux (v.5) RHSA-2008:0505)
Red Hat Enterprise Linux version 3 (RHSA-2008:0544)
Red Hat Enterprise Linux version 5 (RHSA-2008:0544)
Red Hat Enterprise Linux version 4 (RHSA-2008:0545)
Red Hat Enterprise Linux version 2.1 (RHSA-2008:0546)
Red Hat Application Stack v1 for Enterprise Linux AS (v.4) (RHSA-2008:0582)