Issue Bug Closed

#106819Upload of password protected office documents not possible - Mime-type "application/encrypted" not allowed for file extension "docx".

Lars Michalowski 06/04/25, 08:47 updated 12/02/25, 13:59

Description

Hi

Since the security patch for TYPO3-CORE-SA-2025-014 (TYPO3 13.4.13) it is no longer possible to upload password protected office documents. Upload generates the following error:

Mime-type “application/encrypted” not allowed for file extension “docx”.

Best regards,
Lars

Reviews 3

Files 1

History 710

  1. Oliver Hader commented <span data-processor="relativetime" data-value="2025-06-04T10:38:53+00:00" > 06/04/25, 10:38 </span>

    For the time being, it only would be possible to allow that different mime-type manually, using https://docs.typo3.org/c/typo3/cms-core/main/en-us//Changelog/12.4.x/Important-106735-FileMIMETypeCompatiblityMapping.html

    For the scenario above, that would be

    $GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['mimeTypeCompatibility']['application/encrypted']['docx']
      = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';

    The list of other potential office document extensions and mime-types is available at https://github.com/TYPO3/typo3/blob/cf71760f6160ecbcb9efd393e095580e7f565bba/typo3/sysext/core/Classes/Resource/MimeTypeCollection.php#L471-L478

  2. Benjamin Franzke commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-06-10T08:11:34+00:00" > 06/10/25, 08:11 </span>

    Applied in changeset commit:02f468c6e8fb0716295cff00fb4fbf2d5eb92a6f.