CVE-2021-21357
JSON

8.3high

Broken Access Control in Form Framework

Severity
8.3high CVSS:3.1 by GitHub_M
Exploit likelihood
1.61% (higher than 76% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-3vg7-jw9m-pc3fBIT-TYPO3-2021-21357

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 improper input validation, attackers can by-pass restrictions of predefined options and submit arbitrary data in the Form Designer backend module of the Form Framework. In the default configuration of the Form Framework this allows attackers to explicitly allow arbitrary mime-types for file uploads - however, default _fileDenyPattern_ successfully blocked files like _.htaccess_ or _malicious.php_. Besides that, attackers can persist those files in any writable directory of the corresponding TYPO3 installation. A valid backend user account with access to the form module is needed to exploit this vulnerability. This is fixed in versions 8.7.40, 9.5.25, 10.4.14, 11.1.1.

Affected

Product or packageVersionsReported by
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.0CVE List
typo3/cms-form (Packagist)from 8.0.0 before 8.7.40, from 9.0.0 before 9.5.25, from 10.0.0 before 10.4.14, from 11.0.0 before 11.1.1GitHub Advisory Database
typo3/cms-core (Packagist)from 10.0.0 before 10.4.14, from 11.0.0 before 11.1.1, from 9.0.0 before 9.5.25GitHub Advisory Database
typo3/cms (Packagist)from 10.0.0 before 10.4.14, from 11.0.0 before 11.1.1, from 9.0.0 before 9.5.25GitHub Advisory Database
typo3 typo3from 8.0.0 before 8.7.40, from 9.0.0 before 9.5.25, from 10.0.0 before 10.4.14, from 11.0.0 before 11.1.1NVD
typo3 (Bitnami)from 8.0.0 before 8.7.40, from 9.0.0 before 9.5.25, from 10.0.0 before 10.4.14, from 11.0.0 before 11.1.1Bitnami Vulnerability Database

All scores

GitHub_M8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
GitHub8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H/E:H/RL:O/RC:C
NVD8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
NVD6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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 improper input validation, attackers can by-pass restrictions of predefined options and submit arbitrary data in the Form Designer backend module of the Form Framework. In the default configuration of the Form Framework this allows attackers to explicitly allow arbitrary mime-types for file uploads - however, default _fileDenyPattern_ successfully blocked files like _.htaccess_ or _malicious.php_. Besides that, attackers can persist those files in any writable directory of the corresponding TYPO3 installation. A valid backend user account with access to the form module is needed to exploit this vulnerability. This is fixed in versions 8.7.40, 9.5.25, 10.4.14, 11.1.1.

GitHub Advisory Database
Problem

Due to improper input validation, attackers can by-pass restrictions of predefined options and submit arbitrary data in the Form Designer backend module of the Form Framework.

In the default configuration of the Form Framework this allows attackers to explicitly allow arbitrary mime-types for file uploads - however, default fileDenyPattern successfully blocked files like .htaccess or malicious.php. Besides that, attackers can persist those files in any writable directory of the corresponding TYPO3 installation.

A valid backend user account with access to the form module is needed 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.

Credits

Thanks to Richie Lee who reported this issue and to TYPO3 contributor Ralf Zimmermann who fixed the issue.

References
NVD (es)

TYPO3 es un sistema de gestión de contenidos web de código abierto basado en PHP. En TYPO3 versiones anteriores a la 8.7.40, 9.5.25, 10.4.14, 11.1.1, debido a una validación de entrada inadecuada, los atacantes pueden eludir las restricciones de las opciones predefinidas y enviar datos arbitrarios en el módulo backend del Diseñador de formularios del Marco de formularios. En la configuración por defecto del Form Framework esto permite a los atacantes permitir explícitamente tipos mime arbitrarios para la subida de archivos - sin embargo, el _fileDenyPattern_ por defecto bloquea con éxito archivos como _.htaccess_ o _malicious.php_. Además de eso, los atacantes pueden persistir esos archivos en cualquier directorio con capacidad de escritura de la correspondiente instalación de TYPO3. Se necesita una cuenta de usuario backend válida con acceso al módulo de formularios para explotar esta vulnerabilidad. Esto está corregido en las versiones 8.7.40, 9.5.25, 10.4.14, 11.1.1

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21357 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-3vg7-jw9m-pc3f changed 2026-07-08CC-BY-4.0
NVDCVE-2021-21357 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-TYPO3-2021-21357 changed 2024-03-06Apache-2.0