Description
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 FILE_PSTRING conversion.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | file | 1:5.19-1 | — |
| Debian 13 | file | 1:5.19-1 | — |
| Debian 12 | file | 1:5.19-1 | — |
| Debian 7 | file | 5.11-2+deb7u4 | DSA-3021-1 |
| Debian 7 | php5 | 5.4.4-14+deb7u12 | DSA-2974-1 |
| Debian 6.0 | file | 5.04-5+squeeze6 | DLA-27-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | file | 1:5.14-2ubuntu3.1 | USN-2278-1 |
| Ubuntu 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.3 | USN-2276-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | file +4 | 5.11-31.el7 | RHSA-2015:2155 |
| RHEL 7 | php +24 | 5.4.16-23.el7_0.1 | RHSA-2014:1327 |
| RHEL 1 | php54-php +24 | 5.4.16-22.el6 | RHSA-2014:1765 |
| RHEL 1 | php55-php +26 | 5.5.6-13.el6 | RHSA-2014:1766 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 11 SP2 | php53 | 5.3.17-47.1 | SUSE-SU-2016:1638-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | file +4 | 5.11-31.el7 | ELSA-2015-2155 |
| Oracle Linux 7 | php +24 | 5.4.16-23.el7_0.1 | ELSA-2014-1327 |
Advisories 12
- RHSA-2015:2155 Red Hat Security Advisory: file security and bug fix update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:1766 Red Hat Security Advisory: php55-php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:1765 Red Hat Security Advisory: php54-php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:1327 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-2278-1 file vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- USN-2276-1 php5 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-27-1 file - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-2974-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3021-1 file - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2016:1638-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2015-2155 Moderate: file security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Nov 23, 2015
- ELSA-2014-1327 Moderate: php security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Sep 30, 2014
References
- https://support.apple.com/HT204659
- RHSA-2014:1766 vendor-advisory
- DSA-3021 vendor-advisory
- HPSBUX03102 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/linuxbulletinoct2015-2719645.html
- DSA-2974 vendor-advisory
- 59794 third-party-advisory
- http://www.php.net/ChangeLog-5.php
- [file] 20140612 file-5.19 is now available mailing-list
- https://github.com/file/file/commit/27a14bc7ba285a0a5ebfdb55e54001aa11932b08
- 68239 vdb-entry
- APPLE-SA-2015-04-08-2 vendor-advisory
- http://support.apple.com/kb/HT6443
- RHSA-2014:1327 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/bulletinjan2015-2370101.html
- RHSA-2014:1765 vendor-advisory
- https://bugs.php.net/bug.php?id=67410
- 59831 third-party-advisory
- openSUSE-SU-2014:1236 vendor-advisory