- Component Type: TYPO3 CMS
- Subcomponent: Request Handling (ext:core)
- Release Date: October 5, 2021
- Vulnerability Type: HTTP Header Injection
- Affected Versions: 11.0.0-11.4.0
- Severity: Low
- Suggested CVSS: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N/E:F/RL:O/RC:C
- References: CVE-2021-41114, CWE-20, CWE-644
It has been discovered that TYPO3 CMS is susceptible to host spoofing due to improper validation of the HTTP Host header. TYPO3 uses the HTTP Host header, for example, to generate absolute URLs during the frontend rendering process. Since the host header itself is provided by the client, it can be forged to any value, even in a name-based virtual hosts environment.
This vulnerability is the same as described in TYPO3-CORE-SA-2014-001 (CVE-2014-3941). A regression, introduced during TYPO3 v11 development, led to this situation. The already existing setting $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] (used as an effective mitigation strategy in previous TYPO3 versions) was not evaluated anymore, and reintroduced the vulnerability.
Update your instance to TYPO3 version 11.5.0 which addresses the problem described.
Thanks to TYPO3 framework merger Benjamin Franzke who reported and fixed the issue.
All security related code changes are tagged so that you can easily look them up in our review system.