ADVISORIES

GitHub Advisory Database

GHSA-jf56-v8jc-jcc5

TYPO3 CMS has Broken Access Control in its File Abstraction Layer

Details

Problem

The path allowance check in GeneralUtility::isAllowedAbsPath() performed a plain string prefix comparison without requiring a directory separator boundary, causing a path like /var/www/html-other/secret.yaml to be incorrectly accepted as valid when the project root was /var/www/html. Administrator users with access to the File Abstraction Layer were able to create new file storage definitions pointing to directories outside the project root, bypassing this path check.

Solution

Update to TYPO3 versions 10.4.57 ELTS, 11.5.51 ELTS, 12.4.46 ELTS, 13.4.31 LTS, 14.3.3 LTS that fix the problem described.

Credits

TYPO3 CMS thanks Wolfgang Klinger for reporting this issue, and to TYPO3 core & security team member Oliver Hader for fixing it.

Resources

Affected packages

EcosystemPackageAffected versions
Packagisttypo3/cms-core
All versions before 10.4.57 (fixed in 10.4.57)
Packagisttypo3/cms-core
From 11.0.0 before 11.5.51 (fixed in 11.5.51)
Packagisttypo3/cms-core
From 12.0.0 before 12.4.46 (fixed in 12.4.46)
Packagisttypo3/cms-core
From 13.0.0 before 13.4.31 (fixed in 13.4.31)
Packagisttypo3/cms-core
From 14.0.0 before 14.3.3 (fixed in 14.3.3)

References