GHSA-wjx8-cgrm-hh8p
Unrestricted file uploads in Contao
Quick fix
GHSA-wjx8-cgrm-hh8p — contao/core-bundle: upgrade to the fixed version with the command below.
composer require contao/core-bundle:^4.4.46Details
### Impact
A back end user with access to the form generator can upload arbitrary files and execute them on the server.
### Patches
Update to Contao 4.4.46 or 4.8.6.
### Workarounds
Configure your web server so it does not execute PHP files and other scripts in the Contao file upload directory.
### References
https://contao.org/en/security-advisories/unrestricted-file-uploads
### For more information
If you have any questions or comments about this advisory, open an issue in [contao/contao](https://github.com/contao/contao/issues/new/choose).
Are you affected?
Enter the version of the package you're using.
Affected packages
4.0.0Fixed in: 4.4.46composer require contao/core-bundle:^4.4.464.5.0Fixed in: 4.8.6composer require contao/core-bundle:^4.8.64.0.0Fixed in: 4.4.46composer require contao/contao:^4.4.46References
- https://github.com/contao/contao/security/advisories/GHSA-wjx8-cgrm-hh8p[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2019-19745[ADVISORY]
- https://contao.org/en/news.html[WEB]
- https://contao.org/en/security-advisories/unrestricted-file-uploads.html[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2019-19745.yaml[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2019-19745.yaml[WEB]
- https://github.com/contao/contao[PACKAGE]
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/contao/core-bundle"]}'