NetSight
medium5.0

CVE-2014-9652

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, …

Impact

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.

Affected products

VendorProductAffected versions
PhpPhp
through 5.4.36
Versions 5.5.0, 5.5.1, 5.5.2, 5.5.3, 5.5.4
File ProjectFile
through 5.20

Weakness classification

References