GHSA-m884-279h-32v2
Exceptions displayed in non-debug configurations in Symfony
Quick fix
GHSA-m884-279h-32v2 — symfony/error-handler: upgrade to the fixed version with the command below.
composer require symfony/error-handler:^4.4.4Details
Description -----------
When `ErrorHandler` renders an exception HTML page, it uses un-escaped properties from the related Exception class to render the stacktrace. The security issue comes from the fact that the stacktraces were also displayed in non-`debug` environments.
Resolution ----------
The `ErrorHandler` class now escapes all properties coming from the related Exception, and the stacktrace is not displayed anymore in non-`debug` environments.
The patches for this issue are available [here](https://github.com/symfony/symfony/commit/cf80224589ac05402d4f72f5ddf80900ec94d5ad) and [here](https://github.com/symfony/symfony/commit/629d21b800a15dc649fb0ae9ed7cd9211e7e45db) for branch 4.4.
Credits -------
I would like to thank Luka Sikic for reporting & Yonel Ceruto and Jérémy Derussé for fixing the issue.
Are you affected?
Enter the version of the package you're using.
Affected packages
4.4.0Fixed in: 4.4.4composer require symfony/error-handler:^4.4.45.0.0Fixed in: 5.0.4composer require symfony/error-handler:^5.0.44.4.0Fixed in: 4.4.4composer require symfony/symfony:^4.4.45.0.0Fixed in: 5.0.4composer require symfony/symfony:^5.0.4References
- https://github.com/symfony/symfony/security/advisories/GHSA-m884-279h-32v2[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2020-5274[ADVISORY]
- https://github.com/symfony/symfony/commit/629d21b800a15dc649fb0ae9ed7cd9211e7e45db[WEB]
- https://github.com/symfony/symfony/commit/cf80224589ac05402d4f72f5ddf80900ec94d5ad[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/error-handler/CVE-2020-5274.yaml[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2020-5274.yaml[WEB]
- https://symfony.com/cve-2020-5274[WEB]