GHSA-mmcv-fvq8-r9x3 Symfony XML decoding attack vector through external entities
Not scored
Published
Check this codebase for GHSA-mmcv-fvq8-r9x3 and fix it if it is affected.
What it is: GHSA-mmcv-fvq8-r9x3 is a vulnerability in symfony/symfony, published on 30 May 2024. It can be exploited over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-mmcv-fvq8-r9x3 in the wild and no public exploit code.
Affected packages and fixed versions:
- symfony/symfony (Packagist): affected from 2.0.0; fixed in 2.0.11
- symfony/symfony (Packagist): affected from 2.0.0; fixed in 2.0.11
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-mmcv-fvq8-r9x3/ (Markdown: https://insights.sbomify.com/GHSA-mmcv-fvq8-r9x3/index.md)
An attacker can read arbitrary files from the server via XML external entity injection in the Symfony XMLEncoder component.
- Exploited in the wild
- Not known
- Login needed
- Not stated
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-mmcv-fvq8-r9x3?
GHSA-mmcv-fvq8-r9x3 is a vulnerability in symfony/symfony, published on 30 May 2024. It can be exploited over the network, with no action from the victim.
Official description
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.
Which versions are affected by GHSA-mmcv-fvq8-r9x3?
2 open source packages ship an affected version, including symfony/symfony.
| Package | Affected | Fixed in |
|---|---|---|
symfony/symfony Packagist | From 2.0.0 | 2.0.11 |
symfony/symfony Packagist | From 2.0.0 | 2.0.11 |
How do I fix GHSA-mmcv-fvq8-r9x3?
Upgrade symfony/symfony to 2.0.11 or later.
Is GHSA-mmcv-fvq8-r9x3 being exploited?
There is no known exploitation of GHSA-mmcv-fvq8-r9x3 in the wild and no public exploit code.