VDB
Sign up
MEDIUM5.3

GHSA-p7f6-8mcm-fwv3

Statamic CMS has a Path Traversal in Asset Upload

Quick fix

GHSA-p7f6-8mcm-fwv3 — statamic/cms: upgrade to the fixed version with the command below.

composer require statamic/cms:^5.17.0

Details

Assets uploaded with appropriately crafted filenames may result in them being placed in a location different than what was configured.

### Impact

- Affects front-end forms with `assets` fields. - Affects other places where assets can be uploaded, although users would need upload permissions anyway. - Files can be uploaded so they would be located on the server in a different location, and potentially override existing files. - Traversal _outside_ an asset container was not possible.

### Patches

This has been fixed in 5.17.0.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/statamic/cms
Introduced in: 0Fixed in: 5.17.0
Fixcomposer require statamic/cms:^5.17.0

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"]}'