Skip to main content
← All vulnerabilities
CVE-2021-21355GHSA-2R6J-862C-M2V2BIT-TYPO3-2021-21355

Unrestricted File Upload in Form Framework

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.7.40, 9.5.25, 10.4.14, 11.1.1
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • TYPO3 TYPO3.CMS

    From 8.0.0 · through 8.7.39; From 9.0.0 · through 9.5.24; From 10.0.0 · through 10.4.13; From 11.0.0 · through 11.1.0

  • typo3/cms-formPackagist

    From 8.0.0 · fixed in 8.7.40

  • typo3/cms-formPackagist

    From 9.0.0 · fixed in 9.5.25

  • typo3/cms-formPackagist

    From 10.0.0 · fixed in 10.4.14

  • typo3/cms-formPackagist

    From 11.0.0 · fixed in 11.1.1

  • typo3/cms-corePackagist

    From 10.0.0 · fixed in 10.4.14

  • typo3/cms-corePackagist

    From 11.0.0 · fixed in 11.1.1

  • typo3/cms-corePackagist

    From 9.0.0 · fixed in 9.5.25

  • typo3/cmsPackagist

    From 10.0.0 · fixed in 10.4.14

  • typo3/cmsPackagist

    From 11.0.0 · fixed in 11.1.1

  • typo3/cmsPackagist

    From 9.0.0 · fixed in 9.5.25

References 3

packagist.org

GitHub · TYPO3/TYPO3.CMS

typo3.org