Skip to content
Fencer Intel
medium 6.8

CVE-2013-4113 json

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 (he…

published 2013-07-13 13 y ago modified 2026-06-16 4 mo ago also EUVD-2013-4042

cvss
6.8
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
5.2%
EPSS 5.2% chance of exploitation in 30 days, percentile 92%
public exploits
0
none known

Summary

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 xml_parse_into_struct function.

Patch / fix

  • php php 5.3.27, 5.4.18
  • php53 RHEL 5 5.3.3-13.el5_9.1
  • php53-gd RHEL 5 5.3.3-13.el5_9.1
  • php53-cli RHEL 5 5.3.3-13.el5_9.1
  • php53-dba RHEL 5 5.3.3-13.el5_9.1
  • php53-pdo RHEL 5 5.3.3-13.el5_9.1
  • php53-xml RHEL 5 5.3.3-13.el5_9.1
  • php53-imap RHEL 5 5.3.3-13.el5_9.1
  • php53-intl RHEL 5 5.3.3-13.el5_9.1

red hat advisories RHSA-2013:1063RHSA-2013:1062RHSA-2013:1061RHSA-2013:1050RHSA-2013:1049

  • php7 openSUSE Tumbleweed 7.0.14-1.4
  • php5 openSUSE Tumbleweed 5.6.28-1.1
  • php8 openSUSE Tumbleweed 8.0.11-1.1

opensuse advisories openSUSE-SU-2024:10290-1openSUSE-SU-2024:10344-1openSUSE-SU-2024:11169-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2013-4113 updated cvss 6.8

php: xml_parse_into_struct buffer overflow when parsing deeply nested XML

  • Red Hat Enterprise Linux (v. 5 server) php 5.1.6-40.el5_9, php-gd 5.1.6-40.el5_9, php-cli 5.1.6-40.el5_9, php-dba 5.1.6-40.el5_9, php-pdo 5.1.6-40.el5_9, php-xml 5.1.6-40.el5_9, +32 more
    fixed: vendor fix RHSA-2013:1049
  • Red Hat Enterprise Linux AS (v. 3 ELS) php 4.3.2-56.ent, php-imap 4.3.2-56.ent, php-ldap 4.3.2-56.ent, php-odbc 4.3.2-56.ent, php-mysql 4.3.2-56.ent, php-pgsql 4.3.2-56.ent Red Hat Enterprise Linux AS (v. 4 ELS) php 4.3.9-3.37.el4, php-gd 4.3.9-3.37.el4, php-imap 4.3.9-3.37.el4, php-ldap 4.3.9-3.37.el4, php-odbc 4.3.9-3.37.el4, php-pear 4.3.9-3.37.el4, +7 more
    fixed: vendor fix RHSA-2013:1063
  • Red Hat Enterprise Linux Compute Node EUS (v. 6.2) php 5.3.3-3.el6_2.10, php-cli 5.3.3-3.el6_2.10, php-common 5.3.3-3.el6_2.10 Red Hat Enterprise Linux Compute Node EUS (v. 6.3) php 5.3.3-14.el6_3.1, php-cli 5.3.3-14.el6_3.1, php-common 5.3.3-14.el6_3.1 Red Hat Enterprise Linux Compute Node Optional EUS (v. 6.2) php 5.3.3-3.el6_2.10, php-gd 5.3.3-3.el6_2.10, php-dba 5.3.3-3.el6_2.10, php-pdo 5.3.3-3.el6_2.10, php-xml 5.3.3-3.el6_2.10, php-zts 5.3.3-3.el6_2.10, +17 more Red Hat Enterprise Linux Compute Node Optional EUS (v. 6.3) php 5.3.3-14.el6_3.1, php-gd 5.3.3-14.el6_3.1, php-dba 5.3.3-14.el6_3.1, php-pdo 5.3.3-14.el6_3.1, php-xml 5.3.3-14.el6_3.1, php-zts 5.3.3-14.el6_3.1, +17 more
    fixed: vendor fix RHSA-2013:1061
  • Red Hat Enterprise Linux Desktop Optional (v. 6) php 5.3.3-23.el6_4, php-gd 5.3.3-23.el6_4, php-cli 5.3.3-23.el6_4, php-dba 5.3.3-23.el6_4, php-fpm 5.3.3-23.el6_4, php-pdo 5.3.3-23.el6_4, +20 more
    fixed: vendor fix RHSA-2013:1049
  • Red Hat Enterprise Linux ES (v. 3 ELS) php 4.3.2-56.ent, php-imap 4.3.2-56.ent, php-ldap 4.3.2-56.ent, php-odbc 4.3.2-56.ent, php-mysql 4.3.2-56.ent, php-pgsql 4.3.2-56.ent Red Hat Enterprise Linux ES (v. 4 ELS) php 4.3.9-3.37.el4, php-gd 4.3.9-3.37.el4, php-imap 4.3.9-3.37.el4, php-ldap 4.3.9-3.37.el4, php-odbc 4.3.9-3.37.el4, php-pear 4.3.9-3.37.el4, +7 more
    fixed: vendor fix RHSA-2013:1063
  • Red Hat Enterprise Linux EUS (v. 5.6 server) php 5.1.6-27.el5_6.5, php53 5.3.3-1.el5_6.3, php-gd 5.1.6-27.el5_6.5, php-cli 5.1.6-27.el5_6.5, php-dba 5.1.6-27.el5_6.5, php-pdo 5.1.6-27.el5_6.5, +32 more
    fixed: vendor fix RHSA-2013:1061
  • Red Hat Enterprise Linux HPC Node (v. 6) php 5.3.3-23.el6_4, php-cli 5.3.3-23.el6_4, php-common 5.3.3-23.el6_4 Red Hat Enterprise Linux HPC Node Optional (v. 6) php 5.3.3-23.el6_4, php-gd 5.3.3-23.el6_4, php-dba 5.3.3-23.el6_4, php-fpm 5.3.3-23.el6_4, php-pdo 5.3.3-23.el6_4, php-xml 5.3.3-23.el6_4, +18 more
    fixed: vendor fix RHSA-2013:1049
  • Red Hat Enterprise Linux Long Life (v. 5.3 server) php 5.1.6-23.4.el5_3, php-gd 5.1.6-23.4.el5_3, php-cli 5.1.6-23.4.el5_3, php-dba 5.1.6-23.4.el5_3, php-pdo 5.1.6-23.4.el5_3, php-xml 5.1.6-23.4.el5_3, +12 more
    fixed: vendor fix RHSA-2013:1061
show 6 more
  • Red Hat Enterprise Linux Server (v. 6) php 5.3.3-23.el6_4, php-gd 5.3.3-23.el6_4, php-cli 5.3.3-23.el6_4, php-pdo 5.3.3-23.el6_4, php-xml 5.3.3-23.el6_4, php-ldap 5.3.3-23.el6_4, +6 more
    fixed: vendor fix RHSA-2013:1049
  • Red Hat Enterprise Linux Server EUS (v. 6.2) php 5.3.3-3.el6_2.10, php-gd 5.3.3-3.el6_2.10, php-cli 5.3.3-3.el6_2.10, php-pdo 5.3.3-3.el6_2.10, php-xml 5.3.3-3.el6_2.10, php-ldap 5.3.3-3.el6_2.10, +6 more Red Hat Enterprise Linux Server EUS (v. 6.3) php 5.3.3-14.el6_3.1, php-gd 5.3.3-14.el6_3.1, php-cli 5.3.3-14.el6_3.1, php-pdo 5.3.3-14.el6_3.1, php-xml 5.3.3-14.el6_3.1, php-ldap 5.3.3-14.el6_3.1, +6 more
    fixed: vendor fix RHSA-2013:1061
  • Red Hat Enterprise Linux Server Optional (v. 6) php 5.3.3-23.el6_4, php-dba 5.3.3-23.el6_4, php-fpm 5.3.3-23.el6_4, php-zts 5.3.3-23.el6_4, php-imap 5.3.3-23.el6_4, php-intl 5.3.3-23.el6_4, +9 more
    fixed: vendor fix RHSA-2013:1049
  • Red Hat Enterprise Linux Server Optional EUS (v. 6.2) php 5.3.3-3.el6_2.10, php-dba 5.3.3-3.el6_2.10, php-zts 5.3.3-3.el6_2.10, php-imap 5.3.3-3.el6_2.10, php-intl 5.3.3-3.el6_2.10, php-snmp 5.3.3-3.el6_2.10, +8 more Red Hat Enterprise Linux Server Optional EUS (v. 6.3) php 5.3.3-14.el6_3.1, php-dba 5.3.3-14.el6_3.1, php-zts 5.3.3-14.el6_3.1, php-imap 5.3.3-14.el6_3.1, php-intl 5.3.3-14.el6_3.1, php-snmp 5.3.3-14.el6_3.1, +8 more
    fixed: vendor fix RHSA-2013:1061
  • Red Hat Enterprise Linux Workstation (v. 6) php 5.3.3-23.el6_4, php-gd 5.3.3-23.el6_4, php-cli 5.3.3-23.el6_4, php-pdo 5.3.3-23.el6_4, php-xml 5.3.3-23.el6_4, php-ldap 5.3.3-23.el6_4, +6 more Red Hat Enterprise Linux Workstation Optional (v. 6) php 5.3.3-23.el6_4, php-dba 5.3.3-23.el6_4, php-fpm 5.3.3-23.el6_4, php-zts 5.3.3-23.el6_4, php-imap 5.3.3-23.el6_4, php-intl 5.3.3-23.el6_4, +9 more
    fixed: vendor fix RHSA-2013:1049
  • Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Software Collections php54-php, php54-php-gd, php54-php-cli, php54-php-dba, php54-php-fpm, php54-php-pdo, +18 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

5.19% chance of exploitation in the next 30 days, higher than 92% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

Weakness
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.