TYPO3 CMS vulnerable to Arbitrary Code Execution via Form Framework
Impact
Due to the lack of separating user-submitted data from the internal configuration in the Form Designer backend module, it was possible to inject code instructions to be processed and executed via TypoScript as PHP code.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 8.0.0 before 8.7.49Ecosystem versions | 8.7.49 |
| From 9.0.0 before 9.5.38Ecosystem versions | 9.5.38 |
| From 10.0.0 before 10.4.33Ecosystem versions | 10.4.33 |
| From 11.0.0 before 11.5.20Ecosystem versions | 11.5.20 |
| From 12.0.0 before 12.1.1Ecosystem versions | 12.1.1 |
Version evidence: OSV · GHSA-c5wx-6c2c-f7rm
View original version evidence (137 explicit versions)
| Affected range | Recorded fix |
|---|---|
| From 10.0.0 before 10.4.33Ecosystem versions | 10.4.33 |
| From 11.0.0 before 11.5.20Ecosystem versions | 11.5.20 |
| From 12.0.0 before 12.1.1Ecosystem versions | 12.1.1 |
Version evidence: OSV · GHSA-c5wx-6c2c-f7rm
View original version evidence (70 explicit versions)
Original source description
Problem
Due to the lack of separating user-submitted data from the internal configuration in the Form Designer backend module, it was possible to inject code instructions to be processed and executed via TypoScript as PHP code.
The existence of individual TypoScript instructions for a particular form item (known as formDefinitionOverrides) and a valid backend user account with access to the form module are needed to exploit this vulnerability.
Solution
Update to TYPO3 versions 8.7.49 ELTS, 9.5.38 ELTS, 10.4.33, 11.5.20, 12.1.1 that fix the problem described above.
References
References
- Security advisory github.com/TYPO3/typo3/security/advisories/GHSA-c5wx-6c2c-f7rm
- Security advisory nvd.nist.gov/vuln/detail/CVE-2022-23503
- Patch github.com/TYPO3/typo3/commit/1302e88565821f2159e08b5d818d28de17ecc830
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms-core/CVE-2022-23503.yaml
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/typo3/cms/CVE-2022-23503.yaml
- Source reference github.com/TYPO3/typo3
- Security advisory typo3.org/security/advisory/typo3-core-sa-2022-015