~ / search / GHSA-m884-279h-32v2

GHSA-m884-279h-32v2

Exceptions displayed in non-debug configurations in Symfony

Source: GitHub Advisory Database (reviewed) Moderate CVE-2020-5274

Packages

EcosystemPackageAffectedFixed in
Packagist symfony/error-handler >= 4.4.0, < 4.4.4 4.4.4
Packagist symfony/error-handler >= 5.0.0, < 5.0.4 5.0.4
Packagist symfony/symfony >= 4.4.0, < 4.4.4 4.4.4
Packagist symfony/symfony >= 5.0.0, < 5.0.4 5.0.4

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.