# GHSA-g5vj-wj9x-4jg9: symbiote/silverstripe-multivaluefield Possible PHP Object Injection via Multi-Value Field Extension

> An attacker can exploit PHP object injection and XSS vulnerabilities in the SilverStripe multivalue field plugin to execute code or bypass security controls.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not stated
- **Attackable:** Over the internet
- **Victim action needed:** Not stated
- **Fix available:** Yes
- **Published:** 29 May 2024

## What is GHSA-g5vj-wj9x-4jg9?

GHSA-g5vj-wj9x-4jg9 is an unsafe deserialization vulnerability in symbiote/silverstripe-multivaluefield, published on 29 May 2024. It can be exploited over the network.

### Official description

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.

## Which versions are affected by GHSA-g5vj-wj9x-4jg9?

2 open source packages ship an affected version, including symbiote/silverstripe-multivaluefield.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `symbiote/silverstripe-multivaluefield` | Packagist | From 3.0.0 | 3.1.0 |
| `symbiote/silverstripe-multivaluefield` | Packagist | From 3.0.0 | 3.1.0 |

## How do I fix GHSA-g5vj-wj9x-4jg9?

Upgrade symbiote/silverstripe-multivaluefield to 3.1.0 or later.

## Is GHSA-g5vj-wj9x-4jg9 being exploited?

There is no known exploitation of GHSA-g5vj-wj9x-4jg9 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-g5vj-wj9x-4jg9 and fix it if it is affected.

What it is: GHSA-g5vj-wj9x-4jg9 is an unsafe deserialization vulnerability in symbiote/silverstripe-multivaluefield, published on 29 May 2024. It can be exploited over the network.
Exploitation: There is no known exploitation of GHSA-g5vj-wj9x-4jg9 in the wild and no public exploit code.

Affected packages and fixed versions:
- symbiote/silverstripe-multivaluefield (Packagist): affected from 3.0.0; fixed in 3.1.0
- symbiote/silverstripe-multivaluefield (Packagist): affected from 3.0.0; fixed in 3.1.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-g5vj-wj9x-4jg9/ (Markdown: https://insights.sbomify.com/GHSA-g5vj-wj9x-4jg9/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-g5vj-wj9x-4jg9

---
From sbomify Insights: https://insights.sbomify.com/GHSA-g5vj-wj9x-4jg9/
Summaries are generated and may contain mistakes; the official description above is the record.
