CVE-2026-0895
Description
The extension extends TYPO3’ FileSpool component, which was vulnerable to Insecure Deserialization prior to TYPO3-CORE-SA-2026-004 https://typo3.org/security/advisory/typo3-core-sa-2026-004 . Since the related fix is overwritten by the extension, using the extension with a patched TYPO3 core version still allows for Insecure Deserialization, because the affected vulnerable code was extracted from TYPO3 core to the extension. More information about this vulnerability can be found in the related TYPO3 Core Security Advisory TYPO3-CORE-SA-2026-004 https://typo3.org/security/advisory/typo3-core-sa-2026-004 .
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
cpsit/typo3-mailqueuePackagist | < 0.4.3 | 0.4.3 |
cpsit/typo3-mailqueuePackagist | >= 0.5.0, < 0.5.1 | 0.5.1 |
Affected products
1Patches
212a0a35027bb[SECURITY] Harden message deserialization in `QueueableFileTransport`
4 files changed · +28 −17
Classes/Exception/SerializedMessageIsInvalid.php+2 −1 modified@@ -31,11 +31,12 @@ */ final class SerializedMessageIsInvalid extends Exception { - public function __construct(string $file) + public function __construct(string $file, ?\Throwable $previous = null) { parent::__construct( sprintf('The file "%s" does not contain a valid serialized message.', $file), 1709133596, + $previous, ); } }
Classes/Mail/Transport/QueueableFileTransport.php+21 −11 modified@@ -51,8 +51,9 @@ public function __construct( string $path, ?EventDispatcher\EventDispatcherInterface $dispatcher = null, ?Log\LoggerInterface $logger = null, + Core\Serializer\PolymorphicDeserializer $deserializer = new Core\Serializer\PolymorphicDeserializer(), ) { - parent::__construct($path, $dispatcher, $logger); + parent::__construct($path, $dispatcher, $logger, $deserializer); $this->context = Core\Utility\GeneralUtility::makeInstance(Core\Context\Context::class); } @@ -221,20 +222,29 @@ private function restoreItem(\SplFileInfo $file): Mail\Queue\MailQueueItem { $path = (string)$file->getRealPath(); $lastChanged = $file->getMTime(); + $exception = null; // Unserialize message - $message = unserialize((string)file_get_contents($path), [ - 'allowedClasses' => [ - Mime\RawMessage::class, - Mime\Message::class, - Mime\Email::class, - Mailer\DelayedEnvelope::class, - Mailer\Envelope::class, - ], - ]); + try { + $message = $this->deserializer->deserialize( + (string)file_get_contents($path), + [ + Mailer\SentMessage::class, + Mime\RawMessage::class, + Mailer\Envelope::class, + Mime\Address::class, + Mime\Part\AbstractPart::class, + Mime\Part\File::class, // This one does not extend AbstractPart + Mime\Header\Headers::class, + Mime\Header\HeaderInterface::class, + ], + ); + } catch (\Throwable $exception) { + $message = null; + } if (!($message instanceof Mailer\SentMessage)) { - throw new Exception\SerializedMessageIsInvalid($path); + throw new Exception\SerializedMessageIsInvalid($path, $exception); } // Define mail state
composer.json+4 −4 modified@@ -18,9 +18,9 @@ "symfony/console": "^5.4 || ^6.4 || ^7.0", "symfony/mailer": "^5.4 || ^6.4 || ^7.0", "symfony/mime": "^5.4 || ^6.4 || ^7.0", - "typo3/cms-backend": "~11.5.42 || ~12.4.25 || ~13.4.3", - "typo3/cms-core": "~11.5.42 || ~12.4.25 || ~13.4.3", - "typo3/cms-fluid": "~11.5.42 || ~12.4.25 || ~13.4.3", + "typo3/cms-backend": "~11.5.49 || ~12.4.41 || ~13.4.23", + "typo3/cms-core": "~11.5.49 || ~12.4.41 || ~13.4.23", + "typo3/cms-fluid": "~11.5.49 || ~12.4.41 || ~13.4.23", "typo3fluid/fluid": "^2.15 || ^4.0" }, "require-dev": { @@ -35,7 +35,7 @@ "phpunit/phpcov": "^9.0 || ^10.0", "saschaegerer/phpstan-typo3": "^1.10", "ssch/typo3-rector": "^2.0", - "typo3/cms-lowlevel": "~11.5.42 || ~12.4.25 || ~13.4.3", + "typo3/cms-lowlevel": "~11.5.49 || ~12.4.41 || ~13.4.23", "typo3/coding-standards": "^0.7.0 || ^0.8.0", "typo3/testing-framework": "^7.0.2 || ^8.0.9 || ^9.0.1" },
ext_emconf.php+1 −1 modified@@ -32,7 +32,7 @@ 'author_company' => 'coding. powerful. systems. CPS GmbH', 'constraints' => [ 'depends' => [ - 'typo3' => '11.5.42-13.4.99', + 'typo3' => '11.5.49-13.4.99', 'php' => '8.1.0-8.4.99', ], ],
fd09aa4e1a75[SECURITY] Harden message deserialization in `QueueableFileTransport`
5 files changed · +28 −17
Classes/Exception/SerializedMessageIsInvalid.php+2 −1 modified@@ -25,11 +25,12 @@ */ final class SerializedMessageIsInvalid extends Exception { - public function __construct(string $file) + public function __construct(string $file, ?\Throwable $previous = null) { parent::__construct( sprintf('The file "%s" does not contain a valid serialized message.', $file), 1709133596, + $previous, ); } }
Classes/Mail/Transport/QueueableFileTransport.php+21 −11 modified@@ -45,8 +45,9 @@ public function __construct( string $path, ?EventDispatcher\EventDispatcherInterface $dispatcher = null, ?Log\LoggerInterface $logger = null, + Core\Serializer\PolymorphicDeserializer $deserializer = new Core\Serializer\PolymorphicDeserializer(), ) { - parent::__construct($path, $dispatcher, $logger); + parent::__construct($path, $dispatcher, $logger, $deserializer); $this->context = Core\Utility\GeneralUtility::makeInstance(Core\Context\Context::class); } @@ -191,20 +192,29 @@ private function restoreItem(\SplFileInfo $file): Mail\Queue\MailQueueItem { $path = (string)$file->getRealPath(); $lastChanged = $file->getMTime(); + $exception = null; // Unserialize message - $message = unserialize((string)file_get_contents($path), [ - 'allowedClasses' => [ - Mime\RawMessage::class, - Mime\Message::class, - Mime\Email::class, - Mailer\DelayedEnvelope::class, - Mailer\Envelope::class, - ], - ]); + try { + $message = $this->deserializer->deserialize( + (string)file_get_contents($path), + [ + Mailer\SentMessage::class, + Mime\RawMessage::class, + Mailer\Envelope::class, + Mime\Address::class, + Mime\Part\AbstractPart::class, + Mime\Part\File::class, // This one does not extend AbstractPart + Mime\Header\Headers::class, + Mime\Header\HeaderInterface::class, + ], + ); + } catch (\Throwable $exception) { + $message = null; + } if (!($message instanceof Mailer\SentMessage)) { - throw new Exception\SerializedMessageIsInvalid($path); + throw new Exception\SerializedMessageIsInvalid($path, $exception); } // Define mail state
composer.json+3 −3 modified@@ -21,15 +21,15 @@ "symfony/event-dispatcher-contracts": "^3.0", "symfony/mailer": "^7.0", "symfony/mime": "^7.0", - "typo3/cms-backend": "~12.4.25 || ~13.4.3", - "typo3/cms-core": "~12.4.25 || ~13.4.3", + "typo3/cms-backend": "~12.4.41 || ~13.4.23", + "typo3/cms-core": "~12.4.41 || ~13.4.23", "typo3fluid/fluid": "^2.15 || ^4.0" }, "require-dev": { "eliashaeussler/version-bumper": "^3.0", "phpunit/phpcov": "^10.0 || ^11.0", "phpunit/phpunit": "^11.5 || ^12.0", - "typo3/cms-lowlevel": "~12.4.25 || ~13.4.3", + "typo3/cms-lowlevel": "~12.4.41 || ~13.4.23", "typo3/testing-framework": "^8.3.1 || ^9.3.0" }, "autoload": {
composer.lock+1 −1 modified@@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "28fc857b4600170d00e9d0abb259022a", + "content-hash": "9edf81ca56c7245371f875f7802f72dd", "packages": [ { "name": "bacon/bacon-qr-code",
ext_emconf.php+1 −1 modified@@ -26,7 +26,7 @@ 'author_company' => 'coding. powerful. systems. CPS GmbH', 'constraints' => [ 'depends' => [ - 'typo3' => '12.4.25-13.4.99', + 'typo3' => '12.4.41-13.4.99', 'php' => '8.2.0-8.5.99', 'typed_extconf' => '0.3.0-1.99.99', ],
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- github.com/advisories/GHSA-ggff-9mj3-7246ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-0895ghsaADVISORY
- github.com/CPS-IT/mailqueue/commit/12a0a35027bb5609917790a94e43bbf117abf733nvdWEB
- github.com/CPS-IT/mailqueue/commit/fd09aa4e1a751551bae4b228bee814e22f2048dbnvdWEB
- github.com/CPS-IT/mailqueue/security/advisories/GHSA-ggff-9mj3-7246ghsaWEB
- typo3.org/security/advisory/typo3-ext-sa-2026-001nvdWEB
News mentions
0No linked articles in our index yet.