CVE-2026-122053: Symfony Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-hqp2-7rr8-hf26
CVSS 6.5
CWE-915
Published
Advisory Summary

CVE-2026-122053 is a MODERATE (CVSS 6.5) path traversal vulnerability (CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes) affecting Symfony libraries in the Packagist ecosystem. The issue involves objectnormalizer dotted-key property-path traversal bypasses #[ignore] on nested objects. Remediation is available by upgrading affected packages to version 5.4.56, 6.4.50, 7.1.0, 7.4.23, 8.1.11.

CVE-2026-122053 at a Glance

CVE Identifier CVE-2026-122053
GHSA Identifier GHSA-hqp2-7rr8-hf26
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
Affected Product Symfony
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:L/I:L/A:N).

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 Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-122053

To remediate this vulnerability, upgrade all affected 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/serializer fixed: 5.4.56
Upgrade symfony/serializer to 5.4.56
symfony/serializer fixed: 6.4.50
Upgrade symfony/serializer to 6.4.50
symfony/serializer fixed: 7.1.0
Upgrade symfony/serializer to 7.1.0
symfony/serializer fixed: 7.4.23
Upgrade symfony/serializer to 7.4.23
symfony/serializer fixed: 8.1.11
Upgrade symfony/serializer to 8.1.11
symfony/symfony fixed: 5.4.56
Upgrade symfony/symfony to 5.4.56
symfony/symfony fixed: 6.4.50
Upgrade symfony/symfony to 6.4.50
symfony/symfony fixed: 7.1.0
Upgrade symfony/symfony to 7.1.0
symfony/symfony fixed: 7.4.23
Upgrade symfony/symfony to 7.4.23
symfony/symfony fixed: 8.1.11
Upgrade symfony/symfony to 8.1.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/serializer

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-122053, inspect your project dependencies for Symfony:

inspect dependencies for symfony/serializer

Analyze the terminal output to locate any version of Symfony in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.56), 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-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes, where the product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified. In 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

### Description `ObjectNormalizer::isAllowedAttribute()` treats any attribute name containing `.` (and, from 6.4, `[`) as writable, and `setAttributeValue()` hands the name straight to `PropertyAccessor::setValue()`, which parses it as a property path and traverses into the nested object. A payload key such as `customer.admin` therefore writes to `$order->customer->admin`, bypassing the `#[Ignore]` metadata of the nested class. That metadata is only consulted when the nested object is denormalized in its own right, never when it is reached through a path. `#[Groups]` restrictions are not bypassed: the path is only accepted when no groups are passed in the context, and then groups restrict nothing. No allowlist stands in the way. When the root class carries no `#[Ignore]` and no `#[Groups]`, `AbstractNormalizer::getAllowedAttributes()` returns `false` and every key in the payload is let through: ```json {"customer": {"name": "Mallory"}, "qty": 1, "customer.admin": true} ``` The first key denormalizes `customer` normally, honouring `#[Ignore]` on `admin`. The third key takes the path fast lane and sets `admin` anyway. Applications that bind untrusted input to objects are affected, including controllers using `#[MapRequestPayload]` or `#[MapQueryString]`, whose default normalizer is `ObjectNormalizer`. With `OBJECT_TO_POPULATE`, as used for partial updates, the traversal reaches an already hydrated entity graph and the modified field may be persisted. Because `PropertyAccessor` resolves a path segment against public methods as well as properties, a segment matching a public method name invokes that method with the attacker's value. The path support itself is deliberate: class metadata may declare an attribute whose name is a property path and expose it under a `serialized_name`. Only paths that no mapping ever declared are a problem. ### Resolution A property path is accepted only when the class metadata declares an attribute of that exact name. Declared paths keep working unchanged; a path arriving in the payload with no matching declaration is ignored. On 6.4 and above the check is placed before the static writability cache is consulted. That cache is keyed on class, attribute and extraction context only, so caching a metadata-dependent answer would let one normalizer answer for another and could restore the bypass. The patches for this issue are available [here](https://github.com/symfony/symfony/commit/fcaf87a93c7fa5b7fe9e9e8382d4ed0d0c52c67c) for branch 5.4 and [here](https://github.com/symfony/symfony/commit/9f7390678a255f7962fb1c81c42b26fa907d3437) for branch 6.4 (and forward-ported to 7.4, 8.1 and 8.2). ### Credits Symfony would like to thank Alexandre Daubois and The PHP Foundation for reporting the issue.

CVE-2026-122053 Affected Symfony Versions

10 component(s)
Fixed Versions:
5.4.566.4.507.1.07.4.238.1.11
Product / Package Ecosystem Affected Versions Fixed Version
symfony/serializer
Packagist
< 5.4.56
5.4.56
symfony/serializer
Packagist
≥ 6.4.9
< 6.4.50
6.4.50
symfony/serializer
Packagist
≥ 7.0.9
< 7.1.0
7.1.0
symfony/serializer
Packagist
≥ 7.1.2
< 7.4.23
7.4.23
symfony/serializer
Packagist
≥ 8.0.0
< 8.1.11
8.1.11
symfony/symfony
Packagist
< 5.4.56
5.4.56
symfony/symfony
Packagist
≥ 6.4.9
< 6.4.50
6.4.50
symfony/symfony
Packagist
≥ 7.0.9
< 7.1.0
7.1.0
symfony/symfony
Packagist
≥ 7.1.2
< 7.4.23
7.4.23
symfony/symfony
Packagist
≥ 8.0.0
< 8.1.11
8.1.11

References

Frequently Asked Questions

What is CVE-2026-122053?
CVE-2026-122053 is a security vulnerability in Symfony involving ObjectNormalizer Dotted-Key Property-Path Traversal Bypasses #[Ignore] on Nested Objects under CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes.
Which Symfony versions are affected?
Affected versions include releases prior to 5.4.56, 6.4.50, 7.1.0, 7.4.23, 8.1.11 across affected packages: symfony/serializer, symfony/symfony.
What version fixes CVE-2026-122053?
Upgrading to 5.4.56, 6.4.50, 7.1.0, 7.4.23, 8.1.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/serializer affected?
Yes, symfony/serializer is affected in releases prior to 5.4.56, 6.4.50, 7.1.0, 7.4.23, 8.1.11. Upgrade your dependency to 5.4.56, 6.4.50, 7.1.0, 7.4.23, 8.1.11 or later.
Is symfony/symfony affected?
Yes, symfony/symfony is affected in releases prior to 5.4.56, 6.4.50, 7.1.0, 7.4.23, 8.1.11. Upgrade your dependency to 5.4.56, 6.4.50, 7.1.0, 7.4.23, 8.1.11 or later.
What is the CVSS score of CVE-2026-122053?
CVE-2026-122053 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-122053?
CVE-2026-122053 is classified under CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes (The product receives input from an upstream component that specifies multiple attributes, properties, or fields that are to be initialized or updated in an object, but it does not properly control which attributes can be modified.).
How can I check Packagist dependencies for CVE-2026-122053?
Run the dependency tree command: 'inspect dependencies for symfony/serializer'. 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-hqp2-7rr8-hf26",
  "modified" : "2026-12-01T21:24:11Z",
  "published" : "2026-12-01T21:24:11Z",
  "aliases" : [ "CVE-2026-122053" ],
  "summary" : "Symfony: ObjectNormalizer Dotted-Key Property-Path Traversal Bypasses #[Ignore] on Nested Objects",
  "details" : "### Description\n\n`ObjectNormalizer::isAllowedAttribute()` treats any attribute name containing `.` (and, from 6.4, `[`) as writable, and `setAttributeValue()` hands the name straight to `PropertyAccessor::setValue()`, which parses it as a property path and traverses into the nested object.\n\nA payload key such as `customer.admin` therefore writes to `$order->customer->admin`, bypassing the `#[Ignore]` metadata of the nested class. That metadata is only consulted when the nested object is denormalized in its own right, never when it is reached through a path. `#[Groups]` restrictions are not bypassed: the path is only accepted when no groups are passed in the context, and then groups restrict nothing.\n\nNo allowlist stands in the way. When the root class carries no `#[Ignore]` and no `#[Groups]`, `AbstractNormalizer::getAllowedAttributes()` returns `false` and every key in the payload is let through:\n\n```json\n{\"customer\": {\"name\": \"Mallory\"}, \"qty\": 1, \"customer.admin\": true}\n```\n\nThe first key denormalizes `customer` normally, honouring `#[Ignore]` on `admin`. The third key takes the path fast lane and sets `admin` anyway.\n\nApplications that bind untrusted input to objects are affected, including controllers using `#[MapRequestPayload]` or `#[MapQueryString]`, whose default normalizer is `ObjectNormalizer`. With `OBJECT_TO_POPULATE`, as used for partial updates, the traversal reaches an already hydrated entity graph and the modified field may be persisted.\n\nBecause `PropertyAccessor` resolves a path segment against public methods as well as properties, a segment matching a public method name invokes that method with the attacker's value.\n\nThe path support itself is deliberate: class metadata may declare an attribute whose name is a property path and expose it under a `serialized_name`. Only paths that no mapping ever declared are a problem.\n\n### Resolution\n\nA property path is accepted only when the class metadata declares an attribute of that exact name. Declared paths keep working unchanged; a path arriving in the payload with no matching declaration is ignored.\n\nOn 6.4 and above the check is placed before the static writability cache is consulted. That cache is keyed on class, attribute and extraction context only, so caching a metadata-dependent answer would let one normalizer answer for another and could restore the bypass.\n\nThe patches for this issue are available [here](https://github.com/symfony/symfony/commit/fcaf87a93c7fa5b7fe9e9e8382d4ed0d0c52c67c) for branch 5.4 and [here](https://github.com/symfony/symfony/commit/9f7390678a255f7962fb1c81c42b26fa907d3437) for branch 6.4 (and forward-ported to 7.4, 8.1 and 8.2).\n\n### Credits\n\nSymfony would like to thank Alexandre Daubois and The PHP Foundation for reporting the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/serializer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.4.56"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/serializer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.4.9"
      }, {
        "fixed" : "6.4.50"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/serializer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.9"
      }, {
        "fixed" : "7.1.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/serializer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.1.2"
      }, {
        "fixed" : "7.4.23"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/serializer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.1.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.4.56"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.4.9"
      }, {
        "fixed" : "6.4.50"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.9"
      }, {
        "fixed" : "7.1.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.1.2"
      }, {
        "fixed" : "7.4.23"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.1.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/security/advisories/GHSA-hqp2-7rr8-hf26"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-122053"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/commit/9f7390678a255f7962fb1c81c42b26fa907d3437"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/commit/fcaf87a93c7fa5b7fe9e9e8382d4ed0d0c52c67c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/serializer/CVE-2026-122053.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-122053.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/symfony/symfony"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/releases/tag/v5.4.56"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/releases/tag/v6.4.50"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/releases/tag/v7.4.23"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/releases/tag/v8.1.11"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-915" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-01T21:24:11Z",
    "nvd_published_at" : "2026-11-06T17:17:20Z"
  }
}