Loading HuntDB...

GHSA-4mj2-cv5h-vvmg

GitHub Security Advisory

⚠ Unreviewed MODERATE Has CVE

Advisory Details

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.

Related CVEs

Key Information

GHSA ID
GHSA-4mj2-cv5h-vvmg
Published
May 17, 2022 2:38 AM
Last Modified
May 17, 2022 2:38 AM
CVSS Score
5.0 /10
Primary Ecosystem
Unknown
Primary Package
Unknown
GitHub Reviewed
✗ No

Dataset

Last updated: September 30, 2025 6:30 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.