Skip to content

Symfony collectionCascaded and collectionCascadedDeeply fields security bypass

High severity GitHub Reviewed Published May 5, 2022 to the GitHub Advisory Database • Updated Feb 7, 2024

Package

composer symfony/symfony (Composer)

Affected versions

>= 2.0.0, < 2.0.24
>= 2.1.0, < 2.1.12
>= 2.2.0, < 2.2.5
>= 2.3.0, < 2.3.3

Patched versions

2.0.24
2.1.12
2.2.5
2.3.3
composer symfony/validator (Composer)
>= 2.0.0, < 2.0.24
>= 2.1.0, < 2.1.12
>= 2.2.0, < 2.2.5
>= 2.3.0, < 2.3.3
2.0.24
2.1.12
2.2.5
2.3.3

Description

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.

References

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

Severity

High
8.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Weaknesses

CVE ID

CVE-2013-4751

GHSA ID

GHSA-q8j7-fjh7-25v5

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.