Vulnerability · Published Mar 23, 2021 · Assigned by GitHub_M

CVE-2021-21355Unrestricted File Upload in Form Framework

High 8.6

In plain English

A high-severity unrestricted file upload in TYPO3.CMS from TYPO3. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.6High
Exploit odds (30 days)1.6%top 23.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagisttypo3/cms10.4.14GHSA-2r6j-862c-m2v2
Packagisttypo3/cms9.5.25GHSA-2r6j-862c-m2v2
Packagisttypo3/cms11.1.1GHSA-2r6j-862c-m2v2
Packagisttypo3/cms-core11.1.1GHSA-2r6j-862c-m2v2
Packagisttypo3/cms-core10.4.14GHSA-2r6j-862c-m2v2
Packagisttypo3/cms-core9.5.25GHSA-2r6j-862c-m2v2
Packagisttypo3/cms-form9.5.25GHSA-2r6j-862c-m2v2
Packagisttypo3/cms-form11.1.1GHSA-2r6j-862c-m2v2
Packagisttypo3/cms-form10.4.14GHSA-2r6j-862c-m2v2
Packagisttypo3/cms-form8.7.40GHSA-2r6j-862c-m2v2

Affected products (as reported)

VendorProductVersions
TYPO3 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

Weakness: CWE-434, CWE-552 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L

References