CVE-2021-46875
Packagist vulnerability
### Impact In file upload it is possible by certain means to upload files like .html and .js. These may contain XSS exploits which will be run when links to them are accessed by victims. ### Patches The fix consists simply of adding common types of scriptable file types to the configuration of the already existing filetype blacklist feature. See "Patched versions". As such, this can also be done manually, without installing the patched versions. This may be relevant if you are currently running a considerably older version of the kernel package and don't want to upgrade it at this time. Please see the settting "ezsettings.default.io.file_storage.file_type_blacklist" at: https://github.com/ezsystems/ezplatform-kernel/blob/master/eZ/Bundle/EzPublishCoreBundle/Resources/config/default_settings.yml#L109 ### Important note You should adapt this setting to your needs. Do not add file types to the blacklist that you actually need to be able to upload. For instance, if you need your editors to be able to upload SVG files, then don't blacklist that. Instead, you could e.g. use an approval workflow for such content.
Affected products
Packagist. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Packagist runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/ezsystems/ezpublish-kernel/security/advisories/GHSA-mrvj-7q4f-5p42
- github.com/ezsystems/ezpublish-kernel/commit/29fecd2afe86f763510f10c02f14962d028f311b
- packagist.org/packages/ezsystems/ezplatform-kernel#v1.2.5.1
- packagist.org/packages/ezsystems/ezpublish-kernel#v7.5.15.2
- nvd.nist.gov/vuln/detail/CVE-2021-46875
- github.com/advisories/GHSA-mrvj-7q4f-5p42
- nvd.nist.gov/vuln/detail/CVE-2021-46875
- cve.org/CVERecord?id=CVE-2021-46875
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.