PT-2022-3553 · Esapi+3 · Esapi+3

Published

2022-04-25

·

Updated

2026-04-16

·

CVE-2022-23457

CVSS v3.1

7.5

High

VectorAV: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

Weakness Enumeration

Related Identifiers

BDU:2022-04337
CVE-2022-23457
DLA-4246-1
GHSA-8M5H-HRQM-PXM2
USN-8181-1

Affected Products

Debian
Esapi
Linuxmint
Ubuntu