Loading advisory.
Loading advisory.
Path traversal in the OWASP Enterprise Security API
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.
Published 2022-04-25 00:00 UTC · Modified 2025-11-03 22:32 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| org.owasp.esapi:esapi | Maven | < 2.3.0.0 versions 2.0.1, 2.0GA, 2.0_rc10, 2.0_rc11, 2.0_rc9, 2.1.0, 2.1.0.1, 2.2.0.0, 2.2.0.0-RC2, 2.2.0.0-RC3, 2.2.1.0, 2.2.1.0-RC1, 2.2.1.1, 2.2.2.0, 2.2.3.0, 2.2.3.1 | 2.3.0.0 | No single command for Maven. Update to 2.3.0.0 in your build file. |
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. See https://github.com/ESAPI/esapi-java-legacy/releases/tag/esapi-2.3.0.0 for details.
Yes; in theory, one could write the own implementation of the Validator interface. This would most easily be done 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.
If you have any questions or comments about this advisory:
Email one of the project co-leaders. See email addresses listed on the OWASP ESAPI wiki page, under "Leaders".
Send email to one of the two ESAPI related Google Groups listed under Where to Find More Information on ESAPI on our README.md page.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.028 on 2026-11-24 to 0.022 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.028 | first score | v2026.06.15 |
| 2026-11-26 | 0.022 | 0.028 | v2026.06.15 |