CVE-2014-3478: Buffer Overflow

Published Jun 4, 2014
·
Updated

A flaw was found in the way file compute the truncated pascal string size in mconvert() function.

Upstream commit: https://github.com/file/file/commit/27a14bc7ba285a0a5ebfdb55e54001aa11932b08

Acknowledgment:

This issue was discovered by Francisco Alonso of Red Hat Product Security.

Other sources

Buffer overflow in the mconvert function in softmagic.c in file before 5.19, as used in the Fileinfo component in PHP before 5.4.30 and 5.5.x before 5.5.14, allows remote attackers to cause a denial of service (application crash) via a crafted Pascal string in a FILEPSTRING conversion.

Affected Software

81 affected componentsFixes available
Christos Zoulas file<=5.18
Christos Zoulas file=5.00
Christos Zoulas file=5.01
Christos Zoulas file=5.02
Christos Zoulas file=5.03
Christos Zoulas file=5.04
Christos Zoulas file=5.05
Christos Zoulas file=5.06
Christos Zoulas file=5.07
Christos Zoulas file=5.08
Christos Zoulas file=5.09
Christos Zoulas file=5.10
Christos Zoulas file=5.11
Christos Zoulas file=5.12
Christos Zoulas file=5.13
Christos Zoulas file=5.14
Christos Zoulas file=5.15
Christos Zoulas file=5.16
Christos Zoulas file=5.17
PHP PHP<=5.4.29
PHP PHP=5.4.0
PHP PHP=5.4.1
PHP PHP=5.4.2
PHP PHP=5.4.3
PHP PHP=5.4.4
PHP PHP=5.4.5
PHP PHP=5.4.6
PHP PHP=5.4.7
PHP PHP=5.4.8
PHP PHP=5.4.9
PHP PHP=5.4.10
PHP PHP=5.4.11
PHP PHP=5.4.12
PHP PHP=5.4.12-rc1
PHP PHP=5.4.12-rc2
PHP PHP=5.4.13
PHP PHP=5.4.13-rc1
PHP PHP=5.4.14
PHP PHP=5.4.14-rc1
PHP PHP=5.4.15-rc1
PHP PHP=5.4.16-rc1
PHP PHP=5.4.17
PHP PHP=5.4.18
PHP PHP=5.4.19
PHP PHP=5.4.20
PHP PHP=5.4.21
PHP PHP=5.4.22
PHP PHP=5.4.23
PHP PHP=5.4.24
PHP PHP=5.4.25
PHP PHP=5.4.26
PHP PHP=5.4.27
PHP PHP=5.4.28
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
debian/file
5.04-5+squeeze65.11-2+deb7u41:5.19-1
debian/php5
5.4.4-14+deb7u125.6.0~rc1+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. 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
  2. Upgrade

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

    Fixed in 5.4.4-14+deb7u12Fixed in 5.6.0~rc1+dfsg-1
  3. Upgrade

    Upgrade file to a version that resolves this vulnerability.

    Fixed in 5.19
  4. Upgrade

    Upgrade PHP Fileinfo to a version that resolves this vulnerability.

    Fixed in 5.4.30
  5. Upgrade

    Upgrade PHP Fileinfo to a version that resolves this vulnerability.

    Fixed in 5.5.14

Event History

Jun 4, 2014
Data Sourced
via Red Hat·08:48 PM
DescriptionSeverityAffected Software
Jul 9, 2014
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Data Sourced
11:07 AM
RemedyDescriptionSeverityWeaknessAffected Software
Event
via NVD·11:07 AM

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-3478?

CVE-2014-3478 has a severity level that can lead to denial of service due to a buffer overflow issue.

2

How do I fix CVE-2014-3478?

To fix CVE-2014-3478, upgrade to Software version 5.19 or higher for the affected 'file' component.

3

What software is affected by CVE-2014-3478?

CVE-2014-3478 affects versions of PHP before 5.4.30 and 5.5.x before 5.5.14, as well as 'file' versions before 5.19.

4

What type of attack does CVE-2014-3478 enable?

CVE-2014-3478 enables remote attackers to cause an application crash through crafted Pascal strings.

5

Can CVE-2014-3478 be exploited remotely?

Yes, CVE-2014-3478 can be exploited remotely via specially crafted inputs to the vulnerable functions.

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