CVE-2014-0238: Buffer Overflow

Published May 15, 2014
·
Updated

A flaw was found in the way file parsed property information from Composite Document Files (CDF) files. A property entry with 0 elements triggers an infinite loop.

The problem is in cdfreadpropertyinfo() function in src/cdf.c: https://github.com/file/file/blob/FILE518/src/cdf.c#L742

A for loop with counter i is used to loop through properties. Inside it, nelements value is read from the input file. For string type properties, there is additional nested for loop with counter j, which also increments counter i of the outer for loop. https://github.com/file/file/blob/FILE518/src/cdf.c#L890

In cdf.c:

801 for (i = 0; i < sh.shproperties; i++) { .. 814 if (inp[i].pitype & CDFVECTOR) { 815 nelements = CDFGETUINT32(q, 1); .. 873 case CDFLENGTH32STRING: 874 case CDFLENGTH32WSTRING: .. 890 for (j = 0; j < nelements; j++, i++) { .. 905 } 906 i--;

Other sources

The cdfreadpropertyinfo function in cdf.c in the Fileinfo component in PHP before 5.4.29 and 5.5.x before 5.5.13 allows remote attackers to cause a denial of service (infinite loop or out-of-bounds memory access) via a vector that (1) has zero length or (2) is too long.

— MITRE

Affected Software

9 affected componentsFixes available
PHP PHP<5.3.29
PHP PHP>=5.4.0<5.4.29
PHP PHP>=5.5.0<5.5.13
Debian Debian Linux=7.0
Debian Debian Linux=8.0
redhat/php<5.4.29
5.4.29
redhat/php<5.5.13
5.5.13
debian/file
5.04-5+squeeze65.11-2+deb7u41:5.19-1
debian/php5
5.3.3-7+squeeze245.4.4-14+deb7u105.6.0~beta4+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 5.4.29
  2. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 5.5.13
  3. Upgrade

    Upgrade debian/file to a version that resolves this vulnerability.

    Fixed in 5.04-5+squeeze6Fixed in 5.11-2+deb7u4Fixed in 1:5.19-1
  4. Upgrade

    Upgrade debian/php5 to a version that resolves this vulnerability.

    Fixed in 5.3.3-7+squeeze24Fixed in 5.4.4-14+deb7u10Fixed in 5.6.0~beta4+dfsg-1

Event History

May 15, 2014
Data Sourced
via Red Hat·12:14 PM
DescriptionSeverityAffected Software
Jun 1, 2014
CVE Published
via MITRE·01:00 AM
Data Sourced
via MITRE·01:00 AM
Description
Data Sourced
04:29 AM
RemedyDescriptionSeverityWeaknessAffected Software
May 6, 2026
Updated
via NVD·10:30 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2014-0238?

CVE-2014-0238 has a moderate severity level due to its potential to cause denial of service.

2

How do I fix CVE-2014-0238?

To fix CVE-2014-0238, upgrade to PHP version 5.4.29 or later, or version 5.5.13 or later.

3

What systems are affected by CVE-2014-0238?

CVE-2014-0238 affects PHP versions prior to 5.4.29, versions in the 5.5.x series prior to 5.5.13, and certain Debian Linux releases.

4

What type of vulnerability is CVE-2014-0238?

CVE-2014-0238 is a vulnerability that can lead to denial of service through infinite loops or out-of-bounds memory access.

5

Who can exploit CVE-2014-0238?

Remote attackers can exploit CVE-2014-0238 by sending specially crafted input to trigger the vulnerability.

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