Headline
CVE-2023-24814: Important Security-Bulletin Pre-Announcement
TYPO3 is a free and open source Content Management Framework released under the GNU General Public License. In affected versions the TYPO3 core component GeneralUtility::getIndpEnv()
uses the unfiltered server environment variable PATH_INFO
, which allows attackers to inject malicious content. In combination with the TypoScript setting config.absRefPrefix=auto
, attackers can inject malicious HTML code to pages that have not been rendered and cached, yet. As a result, injected values would be cached and delivered to other website visitors (persisted cross-site scripting). Individual code which relies on the resolved value of GeneralUtility::getIndpEnv('SCRIPT_NAME')
and corresponding usages (as shown below) are vulnerable as well. Additional investigations confirmed that at least Apache web server deployments using CGI (FPM, FCGI/FastCGI, and similar) are affected. However, there still might be the risk that other scenarios like nginx, IIS, or Apache/mod_php are vulnerable. The usage of server environment variable PATH_INFO
has been removed from corresponding processings in GeneralUtility::getIndpEnv()
. Besides that, the public property TypoScriptFrontendController::$absRefPrefix
is encoded for both being used as a URI component and for being used as a prefix in an HTML context. This mitigates the cross-site scripting vulnerability. Users are advised to update to TYPO3 versions 8.7.51 ELTS, 9.5.40 ELTS, 10.4.35 LTS, 11.5.23 LTS and 12.2.0 which fix this problem. For users who are unable to patch in a timely manner the TypoScript setting config.absRefPrefix
should at least be set to a static path value, instead of using auto - e.g. config.absRefPrefix=/
. This workaround does not fix all aspects of the vulnerability, and is just considered to be an intermediate mitigation to the most prominent manifestation.
Mon. 6th February, 2023
The TYPO3 Security Team pre-announces an important security release.
- Type: Pre-Announcement
- Component Type: TYPO3 CMS
- Scheduled Release Date: February 7, 2023
- Affected Versions: 8.7.0-8.7.50, 9.0.0-9.5.39, 10.0.0-10.4.34, 11.0.0-11.5.22, 12.0.0-12.1.3
- Suggested Severity: High
- Suggested CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L
- References: CVE-2023-24814
Pre-Announcement
The TYPO3 Security Team pre-announces important security releases which are planned to be published on Tuesday, February 7th, 2023 between 9:00-12:00 UTC. All officially supported versions are affected and will be fixed. The severity of the vulnerability is “high”.
Website maintainers are advised to apply the updates as soon as possible once they are published.
Corresponding security advisories will be published as usual at https://typo3.org/help/security-advisories.
Upcoming Versions
TYPO3 12.2.0, 11.5.23 LTS, 10.4.35 LTS, 9.5.40 ELTS, 8.7.51 ELTS.
General Advice
Follow the recommendations that are given in the TYPO3 Security Guide. Please subscribe to the typo3-announce mailing list.
General Note
All security related code changes are tagged so that you can easily look them up in our review system.
Updates
2023-02-06: Adjusted affected versions segment from “8.0.0-8.7.50” to “8.7.0-8.7.50”
2023-02-06: Added assigned CVE-2023-24814
Related news
> ### CVSS: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L/E:F/RL:O/RC:C` (8.2) ### Problem TYPO3 core component `GeneralUtility::getIndpEnv()` uses the unfiltered server environment variable `PATH_INFO`, which allows attackers to inject malicious content. In combination with the TypoScript setting [`config.absRefPrefix=auto`](https://github.com/TYPO3/typo3/blob/v11.5.22/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php#L2547-L2549), attackers can inject malicious HTML code into pages that have not yet been rendered and cached. As a result, injected values would be cached and delivered to other website visitors (persisted cross-site scripting). Individual code which relies on the resolved value of [`GeneralUtility::getIndpEnv('SCRIPT_NAME')`](https://github.com/TYPO3/typo3/blob/v11.5.22/typo3/sysext/core/Classes/Utility/GeneralUtility.php#L2481-L2484) and corresponding usages (as shown below) are vulnerable as well. - `GeneralUtility::getIndpEnv('PATH_INFO') ...