Information Exposure Through an Error Message in Play Framework - CVE-2022-31023

 

Information Exposure Through an Error Message in Play Framework - CVE-2022-31023

Published: November 1, 2025 / Updated: November 23, 2026


Vulnerability identifier: #VU169771
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-31023
CWE-ID: CWE-209
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to obtain potentially sensitive application information from verbose error responses, including exception stack traces.

The vulnerability exists due to verbose error reporting by Play Framework's static Scala DefaultHttpErrorHandler when it handles production errors without checking the application mode. A remote attacker can trigger an application error to obtain diagnostic details if production uses this handler through the CORSFilter or CORSActionBuilder defaults or through dependency injection.


Affected software

Play Framework

How to mitigate CVE-2022-31023

Install security update from vendor's website.

Play Framework - update to 2.8.16

External References

Related Security Bulletins