GHSA-m884-279h-32v2

Suggest an improvement
Source
https://github.com/advisories/GHSA-m884-279h-32v2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/03/GHSA-m884-279h-32v2/GHSA-m884-279h-32v2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m884-279h-32v2
Aliases
Published
2020-03-30T20:09:31Z
Modified
2024-02-16T08:18:29.975295Z
Severity
  • 4.6 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
Exceptions displayed in non-debug configurations in Symfony
Details

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 and here 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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-209"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2020-03-30T19:36:11Z"
}
References

Affected packages

Packagist / symfony/error-handler

Package

Name
symfony/error-handler
Purl
pkg:composer/symfony/error-handler

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.4.0
Fixed
4.4.4

Affected versions

v4.*

v4.4.0
v4.4.1
v4.4.2
v4.4.3

Packagist / symfony/error-handler

Package

Name
symfony/error-handler
Purl
pkg:composer/symfony/error-handler

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.0.0
Fixed
5.0.4

Affected versions

v5.*

v5.0.0
v5.0.1
v5.0.2
v5.0.3

Packagist / symfony/symfony

Package

Name
symfony/symfony
Purl
pkg:composer/symfony/symfony

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.4.0
Fixed
4.4.4

Affected versions

v4.*

v4.4.0
v4.4.1
v4.4.2
v4.4.3

Packagist / symfony/symfony

Package

Name
symfony/symfony
Purl
pkg:composer/symfony/symfony

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.0.0
Fixed
5.0.4

Affected versions

v5.*

v5.0.0
v5.0.1
v5.0.2
v5.0.3