symfony/mime is vulnerable to Deserialization of Untrusted Data
75
High Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
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.
Upgrade the symfony/mime and/or the symfony/symfony library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant