symfony/serializer · Security
Symfony XML decoding attack vector through external entities
- GHSA ID
- GHSA-j68w-pg49-f6vx
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
CWEs
- CWE-611 · Improper Restriction of XML External Entity Reference
References
- https://github.com/symfony/serializer/commit/0943a06a663b573d7319fc1acd56d3484eaaa430 ↗
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/serializer/2012-02-24.yaml ↗
- https://symfony.com/blog/security-release-symfony-2-0-11-released ↗
- https://github.com/advisories/GHSA-j68w-pg49-f6vx ↗