VDB
Sign up
MEDIUM5.3

GHSA-qhr7-v3xp-vw9m

Statamic: Missing file upload validation on frontend forms allows uploading disallowed file types

Quick fix

GHSA-qhr7-v3xp-vw9m — statamic/cms: upgrade to the fixed version with the command below.

composer require statamic/cms:^5.74.3

Details

### Impact Public frontend forms did not enforce the file upload restrictions that the Control Panel enforces, so an unauthenticated visitor could upload file types an administrator had intended to disallow through a form's `assets` or `files` field. For `assets` fields, files could be stored on a public, web-accessible disk. Statamic's global upload allowlist still applied, so executable types such as `.php` and `.html` remained blocked.

### Patches This has been fixed in 5.74.3 and 6.24.2.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/statamic/cms
Introduced in: 0Fixed in: 5.74.3
Fixcomposer require statamic/cms:^5.74.3
Packagist/statamic/cms
Introduced in: 6.0.0Fixed in: 6.24.2
Fixcomposer require statamic/cms:^6.24.2

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/statamic/cms"]}'