Intel

AIKIDO-2026-10958

symfony/routing is vulnerable to Deserialization of Untrusted Data

Deserialization of Untrusted Data Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

75

High Risk

This Affects:

PHPsymfony/routing
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 Route and CompiledRoute classes deserialize typed string properties from a raw array during __unserialize(). PHP coerces \Stringable objects through __toString() during that assignment, so validation after assignment cannot prevent gadget execution. Crafted serialized payloads can invoke attacker-controlled __toString() logic when an application deserializes untrusted data. Legacy Serializable entry points that called plain unserialize() without class restrictions were also removed. The fix rejects \Stringable values before assignment and drops the legacy deserialization methods.

Who does this affect?

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

Background info

symfony/routing 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/routing and/or the symfony/symfony library to the patch version.