Intel

AIKIDO-2026-320282

kunstmaan/form-bundle is vulnerable to Arbitrary File Upload

Arbitrary File UploadGHSA-j376-w3x3-q674 Published 4 days ago

98

Critical Risk

This Affects:

PHPkunstmaan/form-bundle
0.0.1 - 7.3.0
Fixed in 7.3.1
Are you affected? Scan for Free

TL;DR

The public form-submission file field in the FormBundle accepts uploads from unauthenticated visitors with no file-type restriction. When server-side MIME guessing fails, the uploaded file is stored under its client-supplied extension in a web-accessible directory beneath public/. This lets an unauthenticated visitor upload a .php file for remote code execution, or an .html or .svg file for stored cross-site scripting served inline. The fix enforces an extension allow-list, derives the stored extension from the uploaded file content instead of the client filename, rejects un-guessable types, and stores submissions under a non-guessable directory name.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you expose a public form that contains a file upload field.

Background info

kunstmaan/form-bundle is vulnerable to Arbitrary File Upload in versions 0.0.1 - 7.3.0.

How to fix this

Upgrade the kunstmaan/form-bundle and/or the kunstmaan/bundles-cms library to the patch version.