CVE-2021-21355
PHP vulnerability analysis and mitigation

Overview

TYPO3, an open source PHP-based web content management system, was found to contain a file upload vulnerability (CVE-2021-21355) affecting versions prior to 8.7.40, 9.5.25, 10.4.14, and 11.1.1. The vulnerability was disclosed on March 16, 2021, and received a CVSS v3.1 base score of 8.6 (HIGH) (NIST NVD).

Technical details

The vulnerability stems from the lack of proper validation ensuring file extensions belong to configured allowed mime-types. The UploadedFileReferenceConverter component, which transforms uploaded files into FileReference domain model objects, accepts any file mime-type and persists files in the default location. While the default fileDenyPattern successfully blocked malicious files like .htaccess or .php, attackers could still upload arbitrary data with arbitrary file extensions. Files are stored in /fileadmin/user_upload/, typically maintaining the submitted filename (TYPO3 Advisory).

Impact

The vulnerability allows attackers to upload arbitrary files and potentially access or guess filenames used by other users, leading to information disclosure. Additionally, the flaw affects TYPO3 Extbase extensions that implement file uploads without custom TypeConverters, as they inherit the vulnerable file handling behavior. The vulnerability can result in unauthorized read access and potential file system compromise (GitHub Advisory).

Exploitability

This vulnerability is particularly concerning as it requires no authentication to exploit. The attack vector is network-accessible, and the complexity of exploitation is considered low. The vulnerability has received a CVSS v3.1 vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L, indicating its high exploitability (NIST NVD).

Mitigation and workarounds

The vulnerability was patched in TYPO3 versions 8.7.40, 9.5.25, 10.4.14, and 11.1.1. The fix includes several changes: the UploadedFileReferenceConverter is now restricted to the Form Framework scope, the storage location has been changed to /fileadmin/form_uploads/, and allowed mime-types must match expected file extensions. Extensions relying on the global UploadedFileReferenceConverter must implement a custom TypeConverter or explicitly implement the ext:form UploadedFileReferenceConverter with appropriate mime-type settings (TYPO3 Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-59989CRITICAL9.2
  • PHP logoPHP
  • phalcon/cphalcon
NoYesAug 21, 2026
CVE-2026-63135HIGH8.2
  • PHP logoPHP
  • yourls/yourls
NoYesAug 21, 2026
GHSA-p2ch-c2c3-4xm5MEDIUM6.1
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026
GHSA-8hgv-xc77-jmcrMEDIUM5.1
  • PHP logoPHP
  • getgrav/grav
NoYesAug 21, 2026
GHSA-hq84-x37p-j6q5MEDIUM4.5
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management