Vulnerability advisory

CVE-2023-24814

Persisted Cross-Site Scripting in Frontend Rendering in typo3

Published Updated OSV record ↗

Also known as BIT-typo3-2023-24814GHSA-r4f8-f93x-5qh3

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:L

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/typo3/typo3 ↗
c91b70e450c52d29ffb08115fffbb7832b15a330 to before 107b1bdd90d088772b344e7fd541adbc3666d0af107b1bdd90d088772b344e7fd541adbc3666d0af
6a5e2d4097ef0a0e3ea955af93cf83810d6fa234 to before 03f79d4d1b40c44db3403372e8a1cc5e2bdf6b7d03f79d4d1b40c44db3403372e8a1cc5e2bdf6b7d
36096733dea4bd6f6168209609fa879dc25c0138 to before 40c555936c3cd0fa0c09a5971b73b796bd1b959640c555936c3cd0fa0c09a5971b73b796bd1b9596
Not specified0005a6fd86ab97eff8bf2e3a5828bf0e7cb6263a
Also listed as affected (70)
  • v10.4.35
  • v11.5.22
  • v11.5.21
  • v10.4.34
  • v11.5.20
  • v10.4.33
  • v12.1.0
  • v11.5.19
  • v11.5.18
  • v11.5.17
  • v12.0.0
  • v11.5.16
  • v10.4.32
  • v11.5.15
  • v11.5.14
  • v11.5.13
  • v10.4.31
  • v11.5.12
  • v10.4.30
  • v11.5.11
  • v10.4.29
  • v11.5.10
  • v10.4.28
  • v11.5.9
  • v10.4.27
  • v11.5.8
  • v10.4.26
  • v11.5.7
  • v10.4.25
  • v10.4.24
  • v11.5.6
  • v11.5.5
  • v10.4.23
  • v10.4.22
  • v11.5.4
  • v11.5.3
  • v11.5.2
  • v11.5.1
  • v11.5.0
  • v10.4.21
  • v11.4.0
  • v10.4.20
  • v10.4.19
  • v10.4.18
  • v11.3.0
  • v10.4.17
  • v10.4.16
  • v11.2.0
  • v10.4.15
  • v10.4.14
  • v11.1.0
  • v10.4.13
  • v11.0.0
  • v10.4.12
  • v10.4.11
  • v10.4.10
  • v10.4.9
  • v10.4.8
  • v10.4.7
  • v10.4.6
  • v10.4.5
  • v10.4.4
  • v10.4.3
  • v10.4.2
  • v10.4.1
  • v10.4.0
  • v10.3.0
  • v10.2.0
  • v10.1.0
  • v10.0.0

Description

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.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools