Intel

AIKIDO-2024-10394

vich/uploader-bundle is vulnerable to Unrestricted Upload of File with Dangerous Type

Unrestricted Upload of File with Dangerous Type Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 30, 2024

92

Critical Risk

This Affects:

phpvich/uploader-bundle
1.0.0 - 2.4.1
Fixed in 2.4.2
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to uploading files with a dangerous type. A user can bypass the MIME type check and upload a polyglot file (a combination of PHP and PNG file types). This vulnerability can lead to Remote Code Execution (RCE) on the server, enabling malicious users to execute arbitrary code on the server.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

vich/uploader-bundle is vulnerable to Unrestricted Upload of File with Dangerous Type in versions 1.0.0 - 2.4.1.

How to fix this

Upgrade the vich/uploader-bundle library to the patch version.