CVE-2022-23457

published 25 Apr 2022 · updated 3 Nov 2025

Path Traversal in ESAPI

7.5HighCVSS 7.5EPSS 3%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 3%. Fixed in 2.3.0.0.

ESAPI (The OWASP Enterprise Security API) is a free, open source, web application security control library. Prior to version 2.3.0.0, the default implementation of `Validator.getValidDirectoryPath(String, String, File, boolean)` may incorrectly treat the tested input string as a child of the specified parent directory. This potentially could allow control-flow bypass checks to be defeated if an attack can specify the entire string representing the 'input' path. This vulnerability is patched in release 2.3.0.0 of ESAPI. As a workaround, it is possible to write one's own implementation of the Validator interface. However, maintainers do not recommend this.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
OWASP ESAPI>=2.3.0.0 <2.3.0.02.3.0.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-23457 severity on Zeptric[![CVE-2022-23457](https://zeptric.io/badge/cve/CVE-2022-23457.svg)](https://zeptric.io/cve/CVE-2022-23457)