High

Symfony collectionCascaded and collectionCascadedDeeply fields security bypass

  • Disclosed: 05.05.2022
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package symfony/symfony >= 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
Composer package symfony/validator >= 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

References

CVSS score 8.1/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness (CWE)
CWE-20
Platform
Composer
Package
symfony/symfony, symfony/validator
Disclosed
05.05.2022
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-q8j7-fjh7-25v5 - CC BY 4.0

Vulnerability history: symfony/validator

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
05.2022 11.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Low 1

Disclosures per year

  1. 2022: 1
  2. 2023: 0
  3. 2024: 2
  4. 2025: 0
  5. 2026: 0
  1. Low · 3.1 CVE-2024-50343 < 5.4.43, >= 6.0.0, < 6.4.11, >= 7.0.0, < 7.1.4 5.4.43, 6.4.11, 7.1.4
  2. High · 7.5 ghsa-4vf2-qfg3-7598 >= 2.0.0, < 2.0.17 2.0.17
  3. Symfony collectionCascaded and collectionCascadedDeeply fields security bypass this entry
    High · 8.1 CVE-2013-4751 >= 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

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.