# CVE-2021-21355: Unrestricted File Upload in Form Framework

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.63% (percentile 77, 2026-11-26)
- **CWE:** CWE-434, CWE-552
- **Aliases:** BIT-typo3-2021-21355, GHSA-2r6j-862c-m2v2
- **Published:** 2021-03-23T01:50:29.000Z
- **Modified:** 2026-07-08T06:29:29.299Z

## Who should check

- Projects that depend on Packagist package typo3/cms-form (\>= 8.0.0, \< 8.7.40)
- Projects that depend on Packagist package typo3/cms-core (\>= 10.0.0, \< 10.4.14)
- Projects that depend on Packagist package typo3/cms (\>= 10.0.0, \< 10.4.14)
- Anyone running TYPO3.CMS \>= 8.0.0, \<= 8.7.39; \>= 9.0.0, \<= 9.5.24; \>= 10.0.0, \<= 10.4.13; \>= 11.0.0, \<= 11.1.0

## 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.

## Affected and fixed versions

- Packagist `typo3/cms-form`: affected \>= 8.0.0, \< 8.7.40; fixed 8.7.40, 9.5.25, 10.4.14, 11.1.1 (osv)
- Packagist `typo3/cms-core`: affected \>= 10.0.0, \< 10.4.14; fixed 10.4.14, 11.1.1, 9.5.25 (osv)
- Packagist `typo3/cms`: affected \>= 10.0.0, \< 10.4.14; fixed 10.4.14, 11.1.1, 9.5.25 (osv)
- TYPO3.CMS: \>= 8.0.0, \<= 8.7.39; \>= 9.0.0, \<= 9.5.24; \>= 10.0.0, \<= 10.4.13; \>= 11.0.0, \<= 11.1.0 (cvelist)

## Mitigation

- Upgrade typo3/cms-form to one of 8.7.40, 9.5.25, 10.4.14, 11.1.1 (or later in the same release line).
- Upgrade typo3/cms-core to one of 10.4.14, 11.1.1, 9.5.25 (or later in the same release line).
- Upgrade typo3/cms to one of 10.4.14, 11.1.1, 9.5.25 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-21355. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-21355.md
Affected: typo3/cms-form >= 8.0.0, < 8.7.40; typo3/cms-core >= 10.0.0, < 10.4.14; typo3/cms >= 10.0.0, < 10.4.14
Fixed in: 8.7.40, 9.5.25, 10.4.14, 11.1.1

Steps:
1. Search this machine and project for typo3/cms-form (Packagist), typo3/cms-core (Packagist), typo3/cms (Packagist), TYPO3.CMS: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-21355 being exploited?

There is no confirmed exploitation: CVE-2021-21355 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.63% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-21355?

High: CVSS 8.6 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2021-21355?

typo3/cms-form \>= 8.0.0, \< 8.7.40; typo3/cms-core \>= 10.0.0, \< 10.4.14; typo3/cms \>= 10.0.0, \< 10.4.14.

### Is there a fix for CVE-2021-21355?

Yes. Fixed in 8.7.40, 9.5.25, 10.4.14, 11.1.1. Upgrade typo3/cms-form to one of 8.7.40, 9.5.25, 10.4.14, 11.1.1 (or later in the same release line). Upgrade typo3/cms-core to one of 10.4.14, 11.1.1, 9.5.25 (or later in the same release line). Upgrade typo3/cms to one of 10.4.14, 11.1.1, 9.5.25 (or later in the same release line).

### How do I check if I'm affected by CVE-2021-21355?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/TYPO3/TYPO3.CMS/security/advisories/GHSA-2r6j-862c-m2v2>
- vendor: <https://typo3.org/security/advisory/typo3-core-sa-2021-002>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-21355>
- other: <https://packagist.org/packages/typo3/cms-form>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms-core/CVE-2021-21355.yaml>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2021-21355.yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-21355>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2r6j-862c-m2v2> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-21355> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-21355>
