CVE-2014-9653: Input Validation

Published Feb 6, 2015
·
Updated

It was reported [1][2] that a malformed elf file can cause file urility to access invalid memory. Upstream fixes that correct this: https://github.com/file/file/commit/445c8fb0ebff85195be94cd9f7e1df89cade5c7f https://github.com/file/file/commit/e96f86b5311572be1360ee0bb05d4926f8df3189

[1]: http://mx.gw.com/pipermail/file/2014/001649.html [2]: http://bugs.gw.com/view.php?id=409

Other sources

readelf.c in file before 5.22, as used in the Fileinfo component in PHP before 5.4.37, 5.5.x before 5.5.21, and 5.6.x before 5.6.5, does not consider that pread calls sometimes read only a subset of the available data, which allows remote attackers to cause a denial of service (uninitialized memory access) or possibly have unspecified other impact via a crafted ELF file.

Affected Software

51 affected componentsFixes available
File Project File<=5.21
PHP PHP<=5.4.36
PHP PHP=5.5.0
PHP PHP=5.5.0-alpha1
PHP PHP=5.5.0-alpha2
PHP PHP=5.5.0-alpha3
PHP PHP=5.5.0-alpha4
PHP PHP=5.5.0-alpha5
PHP PHP=5.5.0-alpha6
PHP PHP=5.5.0-beta1
PHP PHP=5.5.0-beta2
PHP PHP=5.5.0-beta3
PHP PHP=5.5.0-beta4
PHP PHP=5.5.0-rc1
PHP PHP=5.5.0-rc2
PHP PHP=5.5.1
PHP PHP=5.5.2
PHP PHP=5.5.3
PHP PHP=5.5.4
PHP PHP=5.5.5
PHP PHP=5.5.6
PHP PHP=5.5.7
PHP PHP=5.5.8
PHP PHP=5.5.9
PHP PHP=5.5.10
PHP PHP=5.5.11
PHP PHP=5.5.12
PHP PHP=5.5.13
PHP PHP=5.5.14
PHP PHP=5.5.15
PHP PHP=5.5.16
PHP PHP=5.5.17
PHP PHP=5.5.18
PHP PHP=5.5.19
PHP PHP=5.5.20
PHP PHP=5.6.0-alpha1
PHP PHP=5.6.0-alpha2
PHP PHP=5.6.0-alpha3
PHP PHP=5.6.0-alpha4
PHP PHP=5.6.0-alpha5
PHP PHP=5.6.0-beta1
PHP PHP=5.6.0-beta2
PHP PHP=5.6.0-beta3
PHP PHP=5.6.0-beta4
PHP PHP=5.6.1
PHP PHP=5.6.2
PHP PHP=5.6.3
PHP PHP=5.6.4
Debian Debian Linux=7.0
debian/file
1:5.39-3+deb11u11:5.44-31:5.46-5
redhat/file<5.22
5.22

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 1:5.39-3+deb11u1Fixed in 1:5.44-3Fixed in 1:5.46-5
  2. Upgrade

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

    Fixed in 5.22
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.22
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.4.37
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.5.21
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.6.5

Event History

Feb 6, 2015
Data Sourced
via Red Hat·11:43 AM
DescriptionSeverityAffected Software
Mar 30, 2015
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Jun 16, 2018
Data Sourced
01:29 AM
Weakness
Data Sourced
via NVD·01:29 AM
DescriptionSeverityWeaknessAffected Software
Updated
01:29 AM
Affected Software
Nov 21, 2024
Updated
via NVD·02:21 AM
Affected Software
Apr 12, 2025
Updated
via NVD·10:46 AM
Affected Software

Frequently Asked Questions

1

What is CVE-2014-9653?

CVE-2014-9653 is a vulnerability in the Fileinfo component in PHP before version 5.4.37, 5.5.x before 5.5.21, and 5.6.x before 5.6.5.

2

How does CVE-2014-9653 work?

CVE-2014-9653 allows remote attackers to cause a denial of service by exploiting a flaw in the readelf.c file.

3

What is the severity of CVE-2014-9653?

CVE-2014-9653 has a severity rating of 7.5 (high).

4

Which software versions are affected by CVE-2014-9653?

The affected software versions include file before 5.22 and PHP before 5.6.5.

5

How can I fix CVE-2014-9653?

To fix CVE-2014-9653, update PHP to version 5.4.37, 5.5.21, or 5.6.5 and file to version 5.22 or later.

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