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.
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.
I would like to thank Luka Sikic for reporting & Yonel Ceruto and Jérémy Derussé for fixing the issue.
{
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-03-30T19:36:11Z",
"severity": "MODERATE",
"cwe_ids": [
"CWE-209"
]
}