GHSA-j68w-pg49-f6vx Symfony XML decoding attack vector through external entities

Not scored Published

An attacker can exploit XML external entity injection in Symfony's XMLEncoder to read arbitrary files from the server filesystem.

Exploited in the wild
Not known
Login needed
Not stated
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-j68w-pg49-f6vx?

GHSA-j68w-pg49-f6vx is a vulnerability in symfony/serializer, 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-j68w-pg49-f6vx?

2 open source packages ship an affected version, including symfony/serializer.

PackageAffectedFixed in
symfony/serializer PackagistFrom 2.0.02.0.11
symfony/serializer PackagistFrom 2.0.02.0.11

How do I fix GHSA-j68w-pg49-f6vx?

Upgrade symfony/serializer to 2.0.11 or later.

Is GHSA-j68w-pg49-f6vx being exploited?

There is no known exploitation of GHSA-j68w-pg49-f6vx in the wild and no public exploit code.

Sources

Is GHSA-j68w-pg49-f6vx in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free