Intel

AIKIDO-2026-10962

symfony/mime is vulnerable to Deserialization of Untrusted Data

Deserialization of Untrusted Data Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published May 27, 2026

75

High Risk

This Affects:

PHPsymfony/mime
6.4.0 - 6.4.40
Fixed in 6.4.41
7.4.0 - 7.4.12
Fixed in 7.4.13
8.0.0 - 8.0.12
Fixed in 8.0.13
Are you affected? Scan for Free

TL;DR

The Symfony Mime component restores message and part state through __unserialize on Email, TextPart, and SMimePart. Before the fix, assigning attacker-controlled array values into typed string properties let PHP coerce Stringable objects via __toString before post-assignment checks ran. Crafted serialized MIME object payloads could therefore invoke attacker-chosen __toString logic during unserialize when an application deserializes untrusted data. The fix rejects Stringable values in the raw serialized data before any typed-string assignment.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

symfony/mime is vulnerable to Deserialization of Untrusted Data in versions 6.4.0 - 6.4.40, 7.4.0 - 7.4.12 and 8.0.0 - 8.0.12.

How to fix this

Upgrade the symfony/mime and/or the symfony/symfony library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform