CVE-2021-21355 — Unrestricted File Upload in typo3/cms-form
Unrestricted File Upload in Form Framework
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.63%). Schedule for your next planned update.
Does your project use an affected typo3/cms-form version?
Paste your composer.lock to check it for CVE-2021-21355 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Problem
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.
TYPO3 Extbase extensions, which implement a file upload and do not implement a custom TypeConverter to transform uploaded files into FileReference domain model objects are affected by the vulnerability as well, since the UploadedFileReferenceConverter of ext:form handles the file upload and will accept files of any mime-type which are persisted to 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.
Solution
Update to TYPO3 versions 8.7.40, 9.5.25, 10.4.14, 11.1.1 that fix the problem described.
Type converter UploadedFileReferenceConverter is not registered globally anymore and just handles uploaded files within the scope of the Form Framework. Guessable storage location has changed from /fileadmin/user_upload/form_<random-hash>/ to /fileadmin/form_uploads/. Allowed mime-types must match expected file extensions (e.g. application/pdf must be .pdf, and cannot be .html).
Extbase extensions, who rely on the global availability of the UploadedFileReferenceConverter must now implement a custom TypeConverter to handle file uploads or explicitly implement the ext:form UploadedFileReferenceConverter with appropriate setting for accepted mime-types.
Credits
Thanks to Sebastian Michaelsen, Marc Lindemann, Oliver Eglseder, Markus Volkmer, Jakob Kunzmann, Johannes Regner, Richie Lee who reported this issue, and to TYPO3 core & security team members Oliver Hader & Benni Mack, as well as TYPO3 contributor Ralf Zimmermann who fixed the issue.
References
Advisory Timeline
- First published March 23, 2021 (2075 days ago).
- Last revised July 8, 2026 — 1933 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "typo3/cms-form:^9.5.25"
composer require "typo3/cms-form:^10.4.14"
composer require "typo3/cms-form:^11.1.1"
composer require "typo3/cms-form:^8.7.40"
composer require "typo3/cms:^10.4.14"
composer require "typo3/cms:^9.5.25"
composer require "typo3/cms-core:^9.5.25"
composer require "typo3/cms-core:^11.1.1"
composer require "typo3/cms-core:^10.4.14"
composer require "typo3/cms:^11.1.1"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (10)
Affects 1 ecosystem: Packagist (3).
| Package | Fixed In |
|---|---|
| typo3/cms-form Packagist · Affected: v9.0.0, v9.1.0, v9.2.0, v9.2.1 (+30 more) | 9.5.25 |
| typo3/cms-form Packagist · Affected: v10.0.0, v10.1.0, v10.2.0, v10.2.1 (+16 more) | 10.4.14 |
| typo3/cms-form Packagist · Affected: v11.0.0, v11.1.0 | 11.1.1 |
| typo3/cms-form Packagist · Affected: v8.7.10, v8.7.11, v8.7.12, v8.7.13 (+22 more) | 8.7.40 |
| typo3/cms Packagist · Affected: v10.0.0, v10.1.0, v10.2.0, v10.2.1 (+16 more) | 10.4.14 |
| typo3/cms Packagist · Affected: v9.0.0, v9.1.0, v9.2.0, v9.2.1 (+30 more) | 9.5.25 |
| typo3/cms-core Packagist · Affected: v9.0.0, v9.1.0, v9.2.0, v9.2.1 (+30 more) | 9.5.25 |
| typo3/cms-core Packagist · Affected: v11.0.0, v11.1.0 | 11.1.1 |
| typo3/cms-core Packagist · Affected: v10.0.0, v10.1.0, v10.2.0, v10.2.1 (+16 more) | 10.4.14 |
| typo3/cms Packagist · Affected: v11.0.0, v11.1.0 | 11.1.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-434Unrestricted File UploadMITRE
- CWE-552
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L/E:F/RL:O/RC:C
References
- https://github.com/TYPO3/TYPO3.CMS/security/advisories/GHSA-2r6j-862c-m2v2WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21355ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms-core/CVE-2021-21355.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2021-21355.yamlWEB
- https://packagist.org/packages/typo3/cms-formWEB
- https://typo3.org/security/advisory/typo3-core-sa-2021-002WEB
Frequently Asked Questions
- What is CVE-2021-21355?
- Unrestricted File Upload in Form Framework. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.6/10).
- How do I check if my project is affected by CVE-2021-21355?
- CVE-2021-21355 affects typo3/cms-form, typo3/cms and typo3/cms-core. It has a 1.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-21355 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 76.6% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2022-47406CRITICAL
TYPO3 vulnerable to Insufficient Session Expiration
- CVE-2011-4628CRITICAL
Typo3 Authentication Bypass
- CVE-2011-3583CRITICAL
Typo3 SQL injection due to faulty prepared statements
- CVE-2010-1153HIGH
TYPO3 PHP remote file inclusion vulnerability
- CVE-2026-47346HIGH
TYPO3 CMS has Broken Access Control in its Form Framework
- CVE-2026-49741HIGH
TYPO3 CMS has Privilege Escalation & SQL Injection in its Form Framework
- CVE-2026-11607HIGH
TYPO3 CMS has Broken Access Control in its Form Framework
- CVE-2018-14041MEDIUM
Bootstrap Cross-site Scripting vulnerability