Symfony collectionCascaded and collectionCascadedDeeply fields security bypass
High severity
GitHub Reviewed
Published
May 5, 2022
to the GitHub Advisory Database
•
Updated Feb 7, 2024
Description
Published by the National Vulnerability Database
Nov 1, 2019
Published to the GitHub Advisory Database
May 5, 2022
Reviewed
Aug 17, 2023
Last updated
Feb 7, 2024
When using the Validator component, if
Symfony\\Component\\Validator\\Mapping\\Cache\\ApcCache
is enabled (or any other cache implementingSymfony\\Component\\Validator\\Mapping\\Cache\\CacheInterface
), some information is lost during serialization (thecollectionCascaded
and thecollectionCascadedDeeply
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.References