GitHub Advisoryadvisory · Packagist
GHSA-j68w-pg49-f6vx Symfony XML decoding attack vector through external entities
CRITICAL
Official page ↗
- Ecosystem
- Packagist
- Packages
- symfony/serializer
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-611
- Reviewed
- 2024-05-30
Affected packages
• Packagist symfony/serializer: >= 2.0.0, < 2.0.11 → fixed in 2.0.11
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.
Related
Weakness · CWE (1)
- CWE-611 Improper Restriction of XML External Entity Reference weakness
References
- https://github.com/symfony/serializer/commit/0943a06a663b573d7319fc1acd56d3484eaaa430 web
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/serializer/2012-02-24.yaml web
- https://github.com/symfony/serializer package
- https://symfony.com/blog/security-release-symfony-2-0-11-released web