CVE-2022-23457
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.owasp.esapi:esapi | Maven Central | 2.3.0.0 |
| enterprise_security_api | owasp | 2.3.0.0 |
| Apache Maven | Apache Software Foundation | 3.8.1 |
| org.owasp.esapi:esapi | OWASP ESAPI | 2.3.0.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| OWASP ESAPI | org.owasp.esapi:esapi | 2.3.0.0 |
| OWASP ESAPI | org.owasp.esapi:esapi | 2.3.0.0 |
| Maven | org.owasp.esapi:esapi | 0 |
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
References
- ESAPI__esapi-java-legacy_CVE-2022-23457_2-2-3-1 exploit
- CVE-2022-23457-esapi-java-legacy-vulnerable exploit
- https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html url
- https://nvd.nist.gov/vuln/detail/CVE-2022-23457 advisory
- https://github.com/advisories/GHSA-8m5h-hrqm-pxm2 advisory
- https://github.com/ESAPI/esapi-java-legacy/commit/a0d67b75593878b1b6e39e2acc1773b3effedb2a patch
- https://github.com/ESAPI/esapi-java-legacy url
- https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/GHSL-2022-008_The_OWASP_Enterprise_Security_API.md url
- https://security.netapp.com/advisory/ntap-20230127-0014 advisory
- https://securitylab.github.com/advisories/GHSL-2022-008_The_OWASP_Enterprise_Security_API advisory