# CVE-2020-5274: Exceptions displayed in non-debug configurations in Symfony

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.20%, higher than 68% of CVEs (2026-12-01)
- Published: 2020-03-30T19:40:14.000Z
- Modified: 2026-09-10T03:48:28.735Z
- Also known as: GHSA-m884-279h-32v2, BIT-SYMFONY-2020-5274
- Weaknesses: CWE-209
- 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

(As written by CVE List.)

## Affected

- symfony symfony: >= 4.0.0, < 4.4.5; >= 5.0.0, < 5.0.5
- symfony/error-handler (Packagist): from 4.4.0 before 4.4.4; from 5.0.0 before 5.0.4
- symfony/symfony (Packagist): from 4.4.0 before 4.4.4; from 5.0.0 before 5.0.4
- sensiolabs symfony: from 4.4.0 before 4.4.4; from 5.0.0 before 5.0.4
- symfony (Bitnami): from 4.4.0 before 4.4.4; from 5.0.0 before 5.0.4

## Every score

- GitHub_M: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/symfony/symfony/security/advisories/GHSA-m884-279h-32v2> (third-party-advisory, web)
- <https://github.com/symfony/symfony/commit/629d21b800a15dc649fb0ae9ed7cd9211e7e45db> (patch, third-party-advisory, web)
- <https://github.com/symfony/symfony/commit/cf80224589ac05402d4f72f5ddf80900ec94d5ad> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5274> (advisory)
- <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)

## Sources

- CVE List: [CVE-2020-5274](https://www.cve.org/CVERecord?id=CVE-2020-5274), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-m884-279h-32v2](https://github.com/advisories/GHSA-m884-279h-32v2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-5274](https://nvd.nist.gov/vuln/detail/CVE-2020-5274), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-SYMFONY-2020-5274](https://osv.dev/vulnerability/BIT-SYMFONY-2020-5274), Apache-2.0, modified 2024-03-06

---

Page: https://cve.day/CVE-2020-5274 · Whole record: https://cve.day/CVE-2020-5274.json · Rebuilt by cve.day 2026-11-25T22:57:51.710Z
