CVE-2010-4657: High severity PHP PHP vulnerability

Published Oct 6, 2010
·
Updated

Kees Cook reported an information leak flaw in the PHP's XMLWriter, triggered by an invalid UTF-8 string passed to the writeAttribute method:

http://thread.gmane.org/gmane.comp.security.oss.general/4122 http://bugs.php.net/bug.php?id=52998 https://bugzilla.gnome.org/showbug.cgi?id=631551

In the initial report, it was unclear if this is PHP or libxml2 flaw. libxml2 upstream author's reply in the gnome bugzilla bug suggests this issue needs to be addressed in PHP, as the libxml2 API requires input to be valid UTF-8 and \0 terminated string.

Other sources

PHP5 before 5.4.4 allows passing invalid utf-8 strings via the xmlTextWriterWriteAttribute, which are then misparsed by libxml2. This results in memory leak into the resulting output.

Affected Software

5 affected components
debian/php5
PHP PHP>=5.0.0<5.4.4
redhat Enterprise Linux=6.0
redhat Enterprise Linux=5.0
Debian Debian Linux=8.0

Event History

Oct 6, 2010
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverity
Jan 27, 2011
Data Sourced
12:52 PM
Affected Software
Nov 13, 2019
CVE Published
via MITRE·08:06 PM
Data Sourced
via MITRE·08:06 PM
DescriptionWeakness
Feb 17, 2026
Data Sourced
via Debian·10:37 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2010-4657?

CVE-2010-4657 is categorized as a moderate severity vulnerability due to the risk of information leakage.

2

How do I fix CVE-2010-4657?

To fix CVE-2010-4657, update your PHP installation to version 5.4.4 or later.

3

Which versions of PHP are affected by CVE-2010-4657?

CVE-2010-4657 affects PHP versions from 5.0.0 to 5.4.4.

4

Can CVE-2010-4657 be exploited remotely?

Yes, CVE-2010-4657 can be exploited remotely if the application processes untrusted input.

5

What type of vulnerability is CVE-2010-4657?

CVE-2010-4657 is an information leak vulnerability related to the XMLWriter component in PHP.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203