VDB

CVE-2022-23457

CVE-2022-23457 PUBLISHED CVSS 7.5 HIGH

Path Traversal in ESAPI

Reported by github_m · Published April 25, 2022

esapi is fixed in 2.3.0.0 (Maven Central)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
org.owasp.esapi:esapiMaven Central2.3.0.0
enterprise_security_apiowasp2.3.0.0
Apache MavenApache Software Foundation3.8.1
org.owasp.esapi:esapiOWASP ESAPI2.3.0.0

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
OWASP ESAPIorg.owasp.esapi:esapi2.3.0.0
OWASP ESAPIorg.owasp.esapi:esapi2.3.0.0
Mavenorg.owasp.esapi:esapi0

Timeline

  • Apr 7, 2022 PoC Published (5 in total, the first dated here)
  • Apr 25, 2022 CVE Published
  • Apr 26, 2022 EPSS Score (30 in total, the first dated here)
  • Nov 3, 2025 CVE Updated
  • Mar 17, 2026 Security Advisory
  • Jul 5, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-23457
vulnetix vdb fixes CVE-2022-23457

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-23457/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›