Skip to main navigation Skip to main content Skip to page footer

TYPO3-CORE-SA-2026-028: Information Disclosure in Image Processing

It has been discovered that TYPO3 CMS is susceptible to information disclosure in image processing.



Problem Description

ImageMagick and GraphicsMagick use small modules, called "coders", to read each image format. When processing images, TYPO3 determined the coder from the file type detected by the file contents, as long as the detected mime-type started with image/. A file containing MVG (Magick Vector Graphics) instructions, uploaded with an image file extension like .png, was therefore processed with the MVG coder. MVG instructions can read local files into the processed image, which allows disclosing the contents of arbitrary files readable by the web server, for example configuration files containing credentials, through a publicly accessible processed image.

Exploiting this vulnerability requires a way to upload files without a mime-type check, for example a public form of the Form Framework using a FileUpload or ImageUpload element without configured allowedMimeTypes (see TYPO3-CORE-SA-2026-032), which allows exploitation by unauthenticated visitors. Additionally, ImageMagick must be used for image processing, and its default system configuration must allow the MVG coder.

Solution

Update to TYPO3 versions 10.4.63 ELTS, 11.5.57 ELTS, 12.4.52 ELTS, 13.4.40 LTS or 14.3.12 LTS that fix the problem described.

Important: manual action may be required after updating. The file type detected from the file contents is now only used if it is part of the allowed raster image formats, or if it has been configured explicitly in $GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['fileExtensionToMimeType']. Image formats which are not part of the default image file extensions (e.g. psd or ppm) must manually be configured explicitly in this setting to be processed by ImageMagick or GraphicsMagick.

Credits

Thanks to NoSpaceAvailable for reporting this issue, and to TYPO3 security team member Torben Hansen for fixing it.

General Advice

Follow the recommendations that are given in the TYPO3 Security Guide.

General Note

All security-related code changes are tagged so you can easily look them up in our review system.