PT-2022-3553 · Esapi+3 · Esapi+3
Published
2022-04-25
·
Updated
2026-04-16
·
CVE-2022-23457
CVSS v3.1
7.5
High
| Vector | AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
ESAPI versions prior to 2.3.0.0
Description
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.Recommendations
For versions prior to 2.3.0.0, update to version 2.3.0.0 or later to resolve the issue.
As a temporary workaround, consider writing one's own implementation of the Validator interface by sub-classing a version of the affected
DefaultValidator class and then overriding the affected getValidDirectoryPath() to correct the issue. However, this is not recommended.Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Debian
Esapi
Linuxmint
Ubuntu