GHSA-g5vj-wj9x-4jg9: Symbiote/silverstripe multivaluefield Symbiote/silverstripe-multivaluefield Possible PHP Object Injection Vulnerability

MODERATE
CVSS 6.1
CWE-79 CWE-74
Published
Advisory Summary

GHSA-g5vj-wj9x-4jg9 is a MODERATE (CVSS 6.1) symbiote/silverstripe-multivaluefield possible php object injection vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Symbiote/silverstripe multivaluefield libraries in the Packagist ecosystem. The issue involves symbiote/silverstripe-multivaluefield possible php object injection via multi-value field extension. Remediation is available by upgrading affected packages to version 3.1.0.

GHSA-g5vj-wj9x-4jg9 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-g5vj-wj9x-4jg9
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Symbiote/silverstripe multivaluefield
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.1

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

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

How to Fix GHSA-g5vj-wj9x-4jg9

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

symbiote/silverstripe-multivaluefield fixed: 3.1.0
Upgrade symbiote/silverstripe-multivaluefield to 3.1.0
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 symbiote/silverstripe-multivaluefield

How to Check if You Are Affected

To determine whether your application is affected by GHSA-g5vj-wj9x-4jg9, inspect your project dependencies for Symbiote/silverstripe multivaluefield:

inspect dependencies for symbiote/silverstripe-multivaluefield

Analyze the terminal output to locate any version of Symbiote/silverstripe multivaluefield in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.0), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Symbiote/silverstripe multivaluefield, 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

A potential deserialisation vulnerability has been identified in the symbiote/silverstripe-multivaluefield which could allow an attacker to exploit implementations of this module via object injection. Support for handling PHP objects as values in this module has been deprecated, and the serialisation technique has been switched to using JSON for handling arrays. As well as this, a potential XSS (cross-site scripting) vulnerability has been identified and remediated.

GHSA-g5vj-wj9x-4jg9 Affected Symbiote/silverstripe multivaluefield Versions

1 component(s)
Fixed Versions:
3.1.0
Product / Package Ecosystem Affected Versions Fixed Version
symbiote/silverstripe-multivaluefield
Packagist
≥ 3.0.0
< 3.1.0
3.1.0

References

Frequently Asked Questions

What is GHSA-g5vj-wj9x-4jg9?
GHSA-g5vj-wj9x-4jg9 is a security vulnerability in Symbiote/silverstripe multivaluefield involving symbiote/silverstripe-multivaluefield Possible PHP Object Injection via Multi-Value Field Extension under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Symbiote/silverstripe multivaluefield versions are affected?
Affected versions include releases prior to 3.1.0 across affected packages: symbiote/silverstripe-multivaluefield.
What version fixes GHSA-g5vj-wj9x-4jg9?
Upgrading to 3.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symbiote/silverstripe-multivaluefield affected?
Yes, symbiote/silverstripe-multivaluefield is affected in releases prior to 3.1.0. Upgrade your dependency to 3.1.0 or later.
What is the CVSS score of GHSA-g5vj-wj9x-4jg9?
GHSA-g5vj-wj9x-4jg9 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with GHSA-g5vj-wj9x-4jg9?
GHSA-g5vj-wj9x-4jg9 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for GHSA-g5vj-wj9x-4jg9?
Run the dependency tree command: 'inspect dependencies for symbiote/silverstripe-multivaluefield'. 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-g5vj-wj9x-4jg9",
  "modified" : "2024-05-29T18:53:48Z",
  "published" : "2024-05-29T18:53:48Z",
  "aliases" : [ ],
  "summary" : "symbiote/silverstripe-multivaluefield Possible PHP Object Injection via Multi-Value Field Extension",
  "details" : "A potential deserialisation vulnerability has been identified in the symbiote/silverstripe-multivaluefield which could allow an attacker to exploit implementations of this module via object injection.\n\nSupport for handling PHP objects as values in this module has been deprecated, and the serialisation technique has been switched to using JSON for handling arrays.\n\nAs well as this, a potential XSS (cross-site scripting) vulnerability has been identified and remediated.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symbiote/silverstripe-multivaluefield"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/symbiote/silverstripe-multivaluefield/commit/31fbc8c208431fc7d7e96da6fa39ca057d978953"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symbiote/silverstripe-multivaluefield/commit/f523dfcb13b2bd9eb110ffa0c83087a49322ad3b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symbiote/silverstripe-multivaluefield/SS-2018-017-1.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/symbiote/silverstripe-multivaluefield"
  }, {
    "type" : "WEB",
    "url" : "https://www.silverstripe.org/download/security-releases/ss-2018-017"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74", "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-29T18:53:48Z",
    "nvd_published_at" : null
  }
}