CVE-2013-4113: Medium severity PHP PHP vulnerability

Published Jul 11, 2013
·
Updated

An array index error, leading to invalid free flaw was found in the way XML extension of PHP, a scripting language for creating dynamic web sites, used to convert certain XML files into PHP language internal structures. Remote attacker could provide a specially-crafted XML file, that when opened in an PHP application would lead to that application crash or, potentially, arbitrary code execution with the privileges of the user running the application.

References: http://php.net/archive/2013.php#id2013-07-11-1 http://www.php.net/ChangeLog-5.php#5.3.27

Upstream bug report: https://bugs.php.net/bug.php?id=65236

Relevant patch: https://bugs.php.net/patch-display.php?bugid=65236&patch=bug65236.diff&revision=latest http://git.php.net/?p=php-src.git;a=commitdiff;h=7d163e8a0880ae8af2dd869071393e5dc07ef271

Other sources

ext/xml/xml.c in PHP before 5.3.27 does not properly consider parsing depth, which allows remote attackers to cause a denial of service (heap memory corruption) or possibly have unspecified other impact via a crafted document that is processed by the xmlparseintostruct function.

Affected Software

4 affected componentsFixes available
redhat/php<5.3.27
5.3.27
redhat/php<5.4.18
5.4.18
PHP PHP>=5.3.0<5.3.27
PHP PHP>=5.4.0<5.4.18

Event History

Jul 11, 2013
Data Sourced
via Red Hat·05:49 PM
DescriptionSeverityAffected Software
Jul 13, 2013
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2013-4113?

CVE-2013-4113 is classified as a medium severity vulnerability due to the potential for remote code execution via a specially-crafted XML file.

2

How do I fix CVE-2013-4113?

To remediate CVE-2013-4113, upgrade PHP to version 5.3.27 or 5.4.18 or later.

3

What systems are affected by CVE-2013-4113?

CVE-2013-4113 affects PHP versions prior to 5.3.27 and 5.4.18.

4

What type of vulnerability is CVE-2013-4113?

CVE-2013-4113 is categorized as an array index error leading to an invalid free flaw.

5

Can CVE-2013-4113 be exploited remotely?

Yes, CVE-2013-4113 can be exploited remotely by an attacker providing a malicious XML file.

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