Skip to content
OpenAdvisories
Unscored CVE-2014-9652 EUVD-2014-9462GHSA-4mj2-cv5h-vvmg

The mconvert function in softmagic.c in file before 5.21, as used in the Fileinfo component in PHP before 5.4.37, 5.5.x before 5.5.21, and …

Published Mar 30, 2015 · Updated Aug 6, 2024 · Assigned by mitre

Description

The mconvert function in softmagic.c in file before 5.21, 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 properly handle a certain string-length field during a copy of a truncated version of a Pascal string, which might allow remote attackers to cause a denial of service (out-of-bounds memory access and application crash) via a crafted file.

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.

ReleasePackageFixed inAdvisory
Debian 14 file 1:5.21+15-1 —
Debian 13 file 1:5.21+15-1 —
Debian 12 file 1:5.21+15-1 —
Debian 7 file 5.11-2+deb7u7 DSA-3121-1
Debian 7 php5 5.4.36-0+deb7u3 DSA-3126-1
Debian 6.0 php5 5.3.3-7+squeeze24 DLA-145-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS file 1:5.14-2ubuntu3.3 —
Ubuntu 14.04 LTS php5 5.5.9+dfsg-1ubuntu4.6 USN-2501-1
ReleasePackageFixed inAdvisory
RHEL 7 file +4 5.11-31.el7 RHSA-2015:2155
RHEL 7 php +24 5.4.16-36.ael7b_1 RHSA-2015:1135
RHEL 2 php54 +5 2.0-1.el6 RHSA-2015:1066, RHSA-2015:1053
RHEL 2 php54-php +24 5.4.40-1.el6 RHSA-2015:1066
RHEL 2 php54-php-pecl-zendopcache 7.0.4-3.el6 RHSA-2015:1066
RHEL 2 php55-php +26 5.5.21-2.el6 RHSA-2015:1053
ReleasePackageFixed inAdvisory
SLES 12 php5 5.5.14-15.1 SUSE-SU-2015:0424-1
SLES 11 SP2 php53 5.3.17-47.1 SUSE-SU-2016:1638-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 file +4 5.11-31.el7 ELSA-2015-2155
Oracle Linux 7 php +24 5.4.16-36.el7_1 ELSA-2015-1135
Oracle Linux 7 php54 +5 2.0-1.el7 ELSA-2015-1066, ELSA-2015-1053
Oracle Linux 7 php54-php +22 5.4.40-1.el7 ELSA-2015-1066
Oracle Linux 7 php54-php-imap +1 5.4.40-1.el6 ELSA-2015-1066
Oracle Linux 7 php54-php-pecl-zendopcache 7.0.4-3.el7 ELSA-2015-1066
Oracle Linux 7 php55-php +26 5.5.21-2.0.1.el6 ELSA-2015-1053

Advisories 14

References