Unrestricted File Upload in Form Framework
Description
TYPO3 is an open source PHP based web content management system. In TYPO3 before versions 8.7.40, 9.5.25, 10.4.14, 11.1.1, due to the lack of ensuring file extensions belong to configured allowed mime-types, attackers can upload arbitrary data with arbitrary file extensions - however, default _fileDenyPattern_ successfully blocked files like _.htaccess_ or _malicious.php_. Besides that, _UploadedFileReferenceConverter_ transforming uploaded files into proper FileReference domain model objects handles possible file uploads for other extensions as well - given those extensions use the Extbase MVC framework, make use of FileReference items in their direct or inherited domain model definitions and did not implement their own type converter. In case this scenario applies, _UploadedFileReferenceConverter_ accepts any file mime-type and persists files in the default location. In any way, uploaded files are placed in the default location _/fileadmin/user_upload/_, in most scenarios keeping the submitted filename - which allows attackers to directly reference files, or even correctly guess filenames used by other individuals, disclosing this information. No authentication is required to exploit this vulnerability. This is fixed in versions 8.7.40, 9.5.25, 10.4.14, 11.1.1.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
typo3/cms-formPackagist | >= 8.0.0, < 8.7.40 | 8.7.40 |
typo3/cms-formPackagist | >= 9.0.0, < 9.5.25 | 9.5.25 |
typo3/cms-formPackagist | >= 10.0.0, < 10.4.14 | 10.4.14 |
typo3/cms-formPackagist | >= 11.0.0, < 11.1.1 | 11.1.1 |
typo3/cms-corePackagist | >= 10.0.0, < 10.4.14 | 10.4.14 |
typo3/cms-corePackagist | >= 11.0.0, < 11.1.1 | 11.1.1 |
typo3/cms-corePackagist | >= 9.0.0, < 9.5.25 | 9.5.25 |
typo3/cmsPackagist | >= 10.0.0, < 10.4.14 | 10.4.14 |
typo3/cmsPackagist | >= 11.0.0, < 11.1.1 | 11.1.1 |
typo3/cmsPackagist | >= 9.0.0, < 9.5.25 | 9.5.25 |
Affected products
5- osv-coords4 versions
>= 8.0.0, < 8.7.40+ 3 more
- (no CPE)range: >= 8.0.0, < 8.7.40
- (no CPE)range: >= 10.0.0, < 10.4.14
- (no CPE)range: >= 10.0.0, < 10.4.14
- (no CPE)range: >= 8.0.0, < 8.7.40
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-2r6j-862c-m2v2ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-21355ghsaADVISORY
- github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms-core/CVE-2021-21355.yamlghsaWEB
- github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2021-21355.yamlghsaWEB
- github.com/TYPO3/TYPO3.CMS/security/advisories/GHSA-2r6j-862c-m2v2ghsax_refsource_CONFIRMWEB
- packagist.org/packages/typo3/cms-formghsax_refsource_MISCWEB
- typo3.org/security/advisory/typo3-core-sa-2021-002ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.