{"id":"CVE-2022-23457","published":"2022-04-25T00:00:00Z","modified":"2025-11-03T19:26:49Z","title":"Path Traversal in ESAPI","vendor":"OWASP ESAPI","product":"org.owasp.esapi:esapi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02849,"percentile":0.87043,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2022-008_The_OWASP_Enterprise_Security_API/","tags":[]},{"url":"https://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-8m5h-hrqm-pxm2","tags":[]},{"url":"https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt","tags":[]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20230127-0014/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html","tags":[]}],"priority":{"score":22.7,"factors":[{"name":"EPSS percentile","points":17.41},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"owasp-esapi","affectedVersions":[{"vendor":"OWASP ESAPI","product":"org.owasp.esapi:esapi","versions":[">= 2.3.0.0, < 2.3.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-22T15:43:25.418830Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.owasp.esapi:esapi","vulnerableRanges":["<2.3.0.0"],"patched":["2.3.0.0"],"from":["GHSA-8m5h-hrqm-pxm2"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal weakness in the Validator.getValidDirectoryPath method of the default implementation in OWASP ESAPI (org.owasp.esapi:esapi), which can incorrectly treat a tested input path as a child of the specified parent directory. An attacker who can supply the entire input path string may be able to defeat the control-flow checks that depend on this validation, with the attack requiring low privileges and high attack complexity, and the flaw is fixed in version 2.3.0.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:42:07Z"},"euvd":{"id":"EUVD-2022-1678","exploited":false,"provenance":"source"}}