GHSA-mmcv-fvq8-r9x3: Symfony/symfony Symfony XML Decoding Attack Vector Vulnerability

CRITICAL
CVSS 9.8
CWE-502
Published
Advisory Summary

GHSA-mmcv-fvq8-r9x3 is a CRITICAL (CVSS 9.8) symfony xml decoding attack vector vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Symfony/symfony libraries in the Packagist ecosystem. The issue involves symfony xml decoding attack vector through external entities. Remediation is available by upgrading affected packages to version 2.0.11.

GHSA-mmcv-fvq8-r9x3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mmcv-fvq8-r9x3
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Symfony/symfony
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

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

How to Fix GHSA-mmcv-fvq8-r9x3

To remediate this vulnerability, upgrade all affected Symfony/symfony 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/symfony fixed: 2.0.11
Upgrade symfony/symfony to 2.0.11
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/symfony

How to Check if You Are Affected

To determine whether your application is affected by GHSA-mmcv-fvq8-r9x3, inspect your project dependencies for Symfony/symfony:

inspect dependencies for symfony/symfony

Analyze the terminal output to locate any version of Symfony/symfony in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.11), 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Symfony/symfony, 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

The XMLEncoder component of Symfony 2.0.x fails to disable external entities when parsing XML. In the Symfony2 framework the XML class may be used to deserialize objects or as part of a client/server API. By using external entities it is possible to include arbitrary files from the file system.

GHSA-mmcv-fvq8-r9x3 Affected Symfony/symfony Versions

1 component(s)
Fixed Versions:
2.0.11
Product / Package Ecosystem Affected Versions Fixed Version
symfony/symfony
Packagist
≥ 2.0.0
< 2.0.11
2.0.11

References

Frequently Asked Questions

What is GHSA-mmcv-fvq8-r9x3?
GHSA-mmcv-fvq8-r9x3 is a security vulnerability in Symfony/symfony involving Symfony XML decoding attack vector through external entities under CWE-502: Deserialization of Untrusted Data.
Which Symfony/symfony versions are affected?
Affected versions include releases prior to 2.0.11 across affected packages: symfony/symfony.
What version fixes GHSA-mmcv-fvq8-r9x3?
Upgrading to 2.0.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/symfony affected?
Yes, symfony/symfony is affected in releases prior to 2.0.11. Upgrade your dependency to 2.0.11 or later.
What is the CVSS score of GHSA-mmcv-fvq8-r9x3?
GHSA-mmcv-fvq8-r9x3 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-mmcv-fvq8-r9x3?
GHSA-mmcv-fvq8-r9x3 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Packagist dependencies for GHSA-mmcv-fvq8-r9x3?
Run the dependency tree command: 'inspect dependencies for symfony/symfony'. 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-mmcv-fvq8-r9x3",
  "modified" : "2024-05-30T12:17:20Z",
  "published" : "2024-05-30T12:17:20Z",
  "aliases" : [ ],
  "summary" : "Symfony XML decoding attack vector through external entities",
  "details" : "The XMLEncoder component of Symfony 2.0.x fails to disable external entities when parsing XML. In the Symfony2 framework the XML class may be used to deserialize objects or as part of a client/server API. By using external entities it is possible to include arbitrary files from the file system.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/commit/3e64d36cbdc34acaa82e0e6318112cd2eacb6fec"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/2012-02-24.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/symfony/symfony"
  }, {
    "type" : "WEB",
    "url" : "https://symfony.com/blog/security-release-symfony-2-0-11-released"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-30T12:17:20Z",
    "nvd_published_at" : null
  }
}