CVE-2013-4751: Symfony/validator Symfony CollectionCascaded And CollectionCascadedDeeply Fields Vulnerability

HIGH
Advisory Identifier: GHSA-q8j7-fjh7-25v5
CVSS 8.1
CWE-20
Published
Advisory Summary

CVE-2013-4751 is a HIGH (CVSS 8.1) symfony collectioncascaded and collectioncascadeddeeply fields vulnerability (CWE-20: Improper Input Validation) affecting Symfony/validator libraries in the Packagist ecosystem. The issue involves symfony collectioncascaded and collectioncascadeddeeply fields security bypass. Remediation is available by upgrading affected packages to version 2.0.24, 2.1.12, 2.2.5, 2.3.3.

CVE-2013-4751 at a Glance

CVE Identifier CVE-2013-4751
GHSA Identifier GHSA-q8j7-fjh7-25v5
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-20: Improper Input Validation
Affected Product Symfony/validator
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2013-4751

To remediate this vulnerability, upgrade all affected Symfony/validator dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

symfony/validator fixed: 2.0.24
Upgrade symfony/validator to 2.0.24
symfony/validator fixed: 2.1.12
Upgrade symfony/validator to 2.1.12
symfony/validator fixed: 2.2.5
Upgrade symfony/validator to 2.2.5
symfony/validator fixed: 2.3.3
Upgrade symfony/validator to 2.3.3
symfony/symfony fixed: 2.0.24
Upgrade symfony/symfony to 2.0.24
symfony/symfony fixed: 2.1.12
Upgrade symfony/symfony to 2.1.12
symfony/symfony fixed: 2.2.5
Upgrade symfony/symfony to 2.2.5
symfony/symfony fixed: 2.3.3
Upgrade symfony/symfony to 2.3.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for symfony/validator

How to Check if You Are Affected

To determine whether your application is affected by CVE-2013-4751, inspect your project dependencies for Symfony/validator:

inspect dependencies for symfony/validator

Analyze the terminal output to locate any version of Symfony/validator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.24), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Symfony/validator, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2013-4751 Affected Symfony/validator Versions

8 component(s)
Fixed Versions:
2.0.242.1.122.2.52.3.3
Product / Package Ecosystem Affected Versions Fixed Version
symfony/validator
Packagist
≥ 2.0.0
< 2.0.24
2.0.24
symfony/validator
Packagist
≥ 2.1.0
< 2.1.12
2.1.12
symfony/validator
Packagist
≥ 2.2.0
< 2.2.5
2.2.5
symfony/validator
Packagist
≥ 2.3.0
< 2.3.3
2.3.3
symfony/symfony
Packagist
≥ 2.0.0
< 2.0.24
2.0.24
symfony/symfony
Packagist
≥ 2.1.0
< 2.1.12
2.1.12
symfony/symfony
Packagist
≥ 2.2.0
< 2.2.5
2.2.5
symfony/symfony
Packagist
≥ 2.3.0
< 2.3.3
2.3.3

References

Frequently Asked Questions

What is CVE-2013-4751?
CVE-2013-4751 is a security vulnerability in Symfony/validator involving Symfony collectionCascaded and collectionCascadedDeeply fields security bypass under CWE-20: Improper Input Validation.
Which Symfony/validator versions are affected?
Affected versions include releases prior to 2.0.24, 2.1.12, 2.2.5, 2.3.3 across affected packages: symfony/validator, symfony/symfony.
What version fixes CVE-2013-4751?
Upgrading to 2.0.24, 2.1.12, 2.2.5, 2.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/validator affected?
Yes, symfony/validator is affected in releases prior to 2.0.24, 2.1.12, 2.2.5, 2.3.3. Upgrade your dependency to 2.0.24, 2.1.12, 2.2.5, 2.3.3 or later.
Is symfony/symfony affected?
Yes, symfony/symfony is affected in releases prior to 2.0.24, 2.1.12, 2.2.5, 2.3.3. Upgrade your dependency to 2.0.24, 2.1.12, 2.2.5, 2.3.3 or later.
What is the CVSS score of CVE-2013-4751?
CVE-2013-4751 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2013-4751?
CVE-2013-4751 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Packagist dependencies for CVE-2013-4751?
Run the dependency tree command: 'inspect dependencies for symfony/validator'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q8j7-fjh7-25v5",
  "modified" : "2023-08-17T22:38:30Z",
  "published" : "2022-05-05T00:28:58Z",
  "aliases" : [ "CVE-2013-4751" ],
  "summary" : "Symfony collectionCascaded and collectionCascadedDeeply fields security bypass",
  "details" : "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).\n\nAs 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/validator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.24"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/validator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/validator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/validator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "fixed" : "2.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.24"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.2.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "fixed" : "2.3.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4751"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-4751"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/86364"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2013-4751.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/validator/CVE-2013-4751.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/symfony/validator"
  }, {
    "type" : "WEB",
    "url" : "https://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228181137/http://www.securityfocus.com/bid/61709"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2013-August/114380.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2013-August/114436.html"
  }, {
    "type" : "WEB",
    "url" : "http://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-17T22:38:30Z",
    "nvd_published_at" : "2019-11-01T13:15:00Z"
  }
}