Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. symfony/error-handler
  4. ›
  5. CVE-2020-5274

CVE-2020-5274: Generation of Error Message Containing Sensitive Information

March 30, 2020 (updated February 6, 2024)

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

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/error-handler/CVE-2020-5274.yaml
  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2020-5274.yaml
  • github.com/advisories/GHSA-m884-279h-32v2
  • github.com/symfony/symfony/commit/629d21b800a15dc649fb0ae9ed7cd9211e7e45db
  • github.com/symfony/symfony/commit/cf80224589ac05402d4f72f5ddf80900ec94d5ad
  • github.com/symfony/symfony/security/advisories/GHSA-m884-279h-32v2
  • nvd.nist.gov/vuln/detail/CVE-2020-5274
  • symfony.com/cve-2020-5274

Code Behaviors & Features

Detect and mitigate CVE-2020-5274 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.4.0 before 4.4.4, all versions starting from 5.0.0 before 5.0.4

Fixed versions

  • 4.4.4
  • 5.0.4

Solution

Upgrade to versions 4.4.4, 5.0.4 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-209: Generation of Error Message Containing Sensitive Information

Source file

packagist/symfony/error-handler/CVE-2020-5274.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:45 +0000.