Path Traversal in ESAPI
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-23457
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 02:29 UTC · Revision 1
Source evidence
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.
osv:CVE-2022-23457
Complete source record
{
"id": "2df0748e5dd02a4dd9192480ecc515f21af0945f17b879ca00862e99cb6195fe",
"url": "https://osv.dev/vulnerability/CVE-2022-23457",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Path Traversal in ESAPI",
"summary": "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.",
"evidence": "osv:CVE-2022-23457",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2022-23457",
"aliases": [
"CVE-2022-23457",
"GHSA-8m5h-hrqm-pxm2"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/esapi/esapi-java-legacy",
"type": "GIT",
"events": [
{
"introduced": "7797bc3ebd3a3bd700817b27e2a4455a0ba61f33"
},
{
"fixed": "7797bc3ebd3a3bd700817b27e2a4455a0ba61f33"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "2.3.0.0"
},
{
"last_affected": "2.3.0.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"cpe": "cpe:2.3:a:owasp:enterprise_security_api:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.3.0.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"2.3.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23457.json"
}
}
],
"modified": "2026-10-28T02:30:48.983815557Z",
"provider": "osv",
"references": [
"https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt",
"https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html",
"https://www.oracle.com/security-alerts/cpujul2022.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23457.json",
"https://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-8m5h-hrqm-pxm2",
"https://nvd.nist.gov/vuln/detail/CVE-2022-23457",
"https://security.netapp.com/advisory/ntap-20230127-0014/",
"https://securitylab.github.com/advisories/GHSL-2022-008_The_OWASP_Enterprise_Security_API/"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23457.json"
}
},
"related_cves": [
{
"value": "CVE-2022-23457",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 517370,
"published_at": "2022-04-25T00:00:00+00:00"
}