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.
{
"cwe_ids": [
"CWE-20"
],
"github_reviewed_at": "2023-08-17T22:38:30Z",
"github_reviewed": true,
"nvd_published_at": "2019-11-01T13:15:00Z",
"severity": "HIGH"
}