Symfony XML decoding attack vector through external entities
Summary
GHSA-j68w-pg49-f6vx: Symfony XML decoding attack vector through external entities. Affects symfony/serializer versions >= 2.0.0, < 2.0.11. Fixed in 2.0.11. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
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.
How To Fix
Minimum fixed version
2.0.11
This is the first release that contains the fix.
composer require symfony/serializer:2.0.11
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
References
Related vulnerabilities
Recent vulnerabilities recorded for symfony/serializer.