When using the Validator component, if Symfony\\Component\\Validator\\Mapping\\Cache\\ApcCache
is enabled (or any other cache implementing Symfony\\Component\\Validator\\Mapping\\Cache\\CacheInterface
), some information is lost during serialization (the collectionCascaded
and the collectionCascadedDeeply
fields).
As a consequence, arrays or traversable objects stored in fields using the @Valid
constraint are not traversed by the validator as soon as the validator configuration is loaded from the cache.
{ "nvd_published_at": "2019-11-01T13:15:00Z", "cwe_ids": [ "CWE-20" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2023-08-17T22:38:30Z" }