High

Path traversal in the OWASP Enterprise Security API

  • Disclosed: 27.04.2022
  • Updated: 11.10.2026 12:22

Impact

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.

Patches

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.

Workarounds

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.

For more information

If you have any questions or comments about this advisory:

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.owasp.esapi:esapi < 2.3.0.0 2.3.0.0

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-22
Platform
Java / Kotlin (Maven)
Package
org.owasp.esapi:esapi
Disclosed
27.04.2022
Updated
11.10.2026 12:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-8m5h-hrqm-pxm2 - CC BY 4.0

Vulnerability history: org.owasp.esapi:esapi

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
7
First → latest
08.2021 11.2023
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 4
  • Low 1

Disclosures per year

  1. 2021: 1
  2. 2022: 4
  3. 2023: 2
  4. 2024: 0
  5. 2025: 0
  6. 2026: 0
  1. Medium CVE-2013-5960 >= 2.0.0.0, < 2.1.0.1 2.1.0.1
  2. Medium · 6.1 CVE-2022-24891 < 2.3.0.0 2.3.0.0
  3. Path traversal in the OWASP Enterprise Security API this entry
    High · 7.5 CVE-2022-23457 < 2.3.0.0 2.3.0.0
  4. Medium · 5.9 CVE-2010-3300 < 2.0GA 2.0GA

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.