Skip to content
OpenAdvisories
Medium · 4.6 CVE-2020-5274 BIT-symfony-2020-5274EUVD-2020-0350GHSA-m884-279h-32v2

Exceptions displayed in non-debug configurations in Symfony

Published Mar 30, 2020 · Updated Aug 4, 2024 · Assigned by GitHub_M

Description

In Symfony before versions 5.0.5 and 4.4.5, some properties of the Exception were not properly escaped when the `ErrorHandler` rendered it stacktrace. In addition, the stacktrace were displayed even in a non-debug configuration. The ErrorHandler now escape alls properties of the exception, and the stacktrace is only display in debug configuration. This issue is patched in symfony/http-foundation versions 4.4.5 and 5.0.5

Affected products

VendorProductAffectedFixed
symfony symfony >= 4.0.0, < 4.4.5, >= 5.0.0, < 5.0.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 symfony 4.4.8-1 —
Debian 13 symfony 4.4.8-1 —
Debian 12 symfony 4.4.8-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist symfony/error-handler >= 4.4.0, < 4.4.4 4.4.4 GHSA-m884-279h-32v2
Packagist symfony/error-handler >= 5.0.0, < 5.0.4 5.0.4 GHSA-m884-279h-32v2
Packagist symfony/symfony >= 4.4.0, < 4.4.4 4.4.4 GHSA-m884-279h-32v2
Packagist symfony/symfony >= 5.0.0, < 5.0.4 5.0.4 GHSA-m884-279h-32v2

References