{
  "ghsa_id": "GHSA-v7m3-fpcr-h7m2",
  "cve_id": "CVE-2026-27206",
  "url": "https://api.github.com/advisories/GHSA-v7m3-fpcr-h7m2",
  "html_url": "https://github.com/advisories/GHSA-v7m3-fpcr-h7m2",
  "summary": "Zumba Json Serializer has a potential PHP Object Injection via Unrestricted @type in unserialize()",
  "description": "### Description\n\nThe `zumba/json-serializer` library allows deserialization of PHP objects from JSON using a special `@type` field.\n\nPrior to version 3.2.3, the deserializer would instantiate any class specified in the `@type` field without restriction. When processing untrusted JSON input, this behavior may allow an attacker to instantiate arbitrary classes available in the application.\n\nIf a vulnerable application passes attacker-controlled JSON into JsonSerializer::unserialize() and contains classes with dangerous magic methods (such as `__wakeup()` or `__destruct()`), this may lead to PHP Object Injection and potentially Remote Code Execution (RCE), depending on available gadget chains in the application or its dependencies.\n\nThis behavior is similar in risk profile to PHP's native `unserialize()` when used without the `allowed_classes` restriction.\n\n### Impact\n\nThis vulnerability allows instantiation of arbitrary PHP classes via the `@type` field when deserializing JSON.\n\nApplications are impacted only if:\n* Untrusted or attacker-controlled JSON is passed into `JsonSerializer::unserialize()`, and\n* The application or its dependencies contain classes that can be leveraged as a gadget chain.\n\nSuccessful exploitation may lead to:\n* Arbitrary code execution\n* Data exfiltration\n* File manipulation\n* Denial of service\n\nApplications that only deserialize trusted data are not affected.\n\n### Patches\n\nThis issue is mitigated in version 3.2.3.\n\nVersion 3.2.3 introduces the method: `setAllowedClasses(?array $allowedClasses)`\n\nThis allows applications to restrict which classes may be instantiated during deserialization, similar to PHP's native `unserialize()` `allowed_classes` option.\n\nUsers should upgrade to version 3.2.3 or later and configure an appropriate class allowlist.\n\n### Workarounds\n\nIf upgrading is not immediately possible, applications should ensure that:\n* `JsonSerializer::unserialize()` is never called on untrusted or attacker-controlled JSON.\n* JSON input is validated and sanitized before deserialization.\n* Object instantiation via `@type` is disabled in application logic where possible.\n\nAfter upgrading, users can mitigate risk by explicitly configuring:\n\n```php\n$serializer->setAllowedClasses([]);\n```\n\nto disable all object instantiation, or by providing a strict allowlist of safe classes.\n\n### References\n\n* CWE-502: https://cwe.mitre.org/data/definitions/502.html\n* PHP `unserialize()` documentation: https://www.php.net/manual/en/function.unserialize.php\n* OWASP PHP Object Injection: https://owasp.org/www-community/vulnerabilities/PHP_Object_Injection",
  "type": "reviewed",
  "severity": "high",
  "repository_advisory_url": "https://api.github.com/repos/zumba/json-serializer/security-advisories/GHSA-v7m3-fpcr-h7m2",
  "source_code_location": "https://github.com/zumba/json-serializer",
  "identifiers": [
    {
      "value": "GHSA-v7m3-fpcr-h7m2",
      "type": "GHSA"
    },
    {
      "value": "CVE-2026-27206",
      "type": "CVE"
    }
  ],
  "references": [
    "https://github.com/zumba/json-serializer/security/advisories/GHSA-v7m3-fpcr-h7m2",
    "https://github.com/zumba/json-serializer/commit/bf26227879adefce75eb9651040d8982be97b881",
    "https://github.com/zumba/json-serializer/releases/tag/3.2.3",
    "https://github.com/advisories/GHSA-v7m3-fpcr-h7m2"
  ],
  "published_at": "2026-02-19T22:05:40Z",
  "updated_at": "2026-02-19T22:05:43Z",
  "github_reviewed_at": "2026-02-19T22:05:40Z",
  "nvd_published_at": null,
  "withdrawn_at": null,
  "vulnerabilities": [
    {
      "package": {
        "ecosystem": "composer",
        "name": "zumba/json-serializer"
      },
      "vulnerable_version_range": "< 3.2.3",
      "first_patched_version": "3.2.3",
      "vulnerable_functions": []
    }
  ],
  "cvss_severities": {
    "cvss_v3": {
      "vector_string": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "score": 8.1
    },
    "cvss_v4": {
      "vector_string": null,
      "score": 0.0
    }
  },
  "cwes": [
    {
      "cwe_id": "CWE-502",
      "name": "Deserialization of Untrusted Data"
    }
  ],
  "credits": [
    {
      "user": {
        "login": "TheDeepOpc",
        "id": 160766369,
        "node_id": "U_kgDOCZUZoQ",
        "avatar_url": "https://avatars.githubusercontent.com/u/160766369?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/TheDeepOpc",
        "html_url": "https://github.com/TheDeepOpc",
        "followers_url": "https://api.github.com/users/TheDeepOpc/followers",
        "following_url": "https://api.github.com/users/TheDeepOpc/following{/other_user}",
        "gists_url": "https://api.github.com/users/TheDeepOpc/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/TheDeepOpc/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/TheDeepOpc/subscriptions",
        "organizations_url": "https://api.github.com/users/TheDeepOpc/orgs",
        "repos_url": "https://api.github.com/users/TheDeepOpc/repos",
        "events_url": "https://api.github.com/users/TheDeepOpc/events{/privacy}",
        "received_events_url": "https://api.github.com/users/TheDeepOpc/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "type": "reporter"
    },
    {
      "user": {
        "login": "jrbasso",
        "id": 26548,
        "node_id": "MDQ6VXNlcjI2NTQ4",
        "avatar_url": "https://avatars.githubusercontent.com/u/26548?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/jrbasso",
        "html_url": "https://github.com/jrbasso",
        "followers_url": "https://api.github.com/users/jrbasso/followers",
        "following_url": "https://api.github.com/users/jrbasso/following{/other_user}",
        "gists_url": "https://api.github.com/users/jrbasso/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/jrbasso/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/jrbasso/subscriptions",
        "organizations_url": "https://api.github.com/users/jrbasso/orgs",
        "repos_url": "https://api.github.com/users/jrbasso/repos",
        "events_url": "https://api.github.com/users/jrbasso/events{/privacy}",
        "received_events_url": "https://api.github.com/users/jrbasso/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "type": "remediation_developer"
    },
    {
      "user": {
        "login": "cjsaylor",
        "id": 157755,
        "node_id": "MDQ6VXNlcjE1Nzc1NQ==",
        "avatar_url": "https://avatars.githubusercontent.com/u/157755?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/cjsaylor",
        "html_url": "https://github.com/cjsaylor",
        "followers_url": "https://api.github.com/users/cjsaylor/followers",
        "following_url": "https://api.github.com/users/cjsaylor/following{/other_user}",
        "gists_url": "https://api.github.com/users/cjsaylor/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/cjsaylor/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/cjsaylor/subscriptions",
        "organizations_url": "https://api.github.com/users/cjsaylor/orgs",
        "repos_url": "https://api.github.com/users/cjsaylor/repos",
        "events_url": "https://api.github.com/users/cjsaylor/events{/privacy}",
        "received_events_url": "https://api.github.com/users/cjsaylor/received_events",
        "type": "User",
        "user_view_type": "public",
        "site_admin": false
      },
      "type": "remediation_reviewer"
    }
  ],
  "cvss": {
    "vector_string": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
    "score": 8.1
  }
}
