{"id":"CVE-2022-23457","aliases":["CVE-2022-23457","GHSA-8m5h-hrqm-pxm2"],"related":[],"kind":"vulnerability","state":"published","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe 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.\n\n### Patches\nThis 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.\n\n### Workarounds\nYes; 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.\n\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email one of the project co-leaders. See email addresses listed on  the [OWASP ESAPI wiki](https://owasp.org/www-project-enterprise-security-api/) page, under \"Leaders\".\n* Send email to one of the two ESAPI related Google Groups listed under [Where to Find More Information on ESAPI](https://github.com/ESAPI/esapi-java-legacy#where-to-find-more-information-on-esapi) on our [README.md](https://github.com/ESAPI/esapi-java-legacy#readme) page.","format":"markdown","source":"ghsa"},{"lang":"es","text":"ESAPI (The OWASP Enterprise Security API) es una biblioteca de control de seguridad de aplicaciones web gratuita y de código abierto. En versiones anteriores a 2.3.0.0, la implementación por defecto de \"Validator.getValidDirectoryPath(String, String, File, boolean)\" puede tratar incorrectamente la cadena de entrada comprobada como un hijo del directorio padre especificado. Esto podría permitir que las comprobaciones de omisión de flujo de control sean derrotadas si un ataque puede especificar toda la cadena que representa la ruta \"input\". Esta vulnerabilidad está parcheada en versión 2.3.0.0 de ESAPI. Como medida de mitigación, es posible escribir una implementación propia de la interfaz del validador. Sin embargo, los mantenedores no lo recomiendan","source":"nvd"}],"published":"2022-04-25T00:00:00.000Z","modified":"2026-06-17T04:30:09.737Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"2.3.0.0","fixed":"2.3.0.0","status":"affected"}],"vendor":"OWASP ESAPI","product":"org.owasp.esapi:esapi","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.0.0"}],"ecosystem":"Maven","package":"org.owasp.esapi:esapi","purl":"pkg:maven/org.owasp.esapi/esapi","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.3.0.0"}],"vendor":"owasp","product":"enterprise_security_api","cpe":"cpe:2.3:a:owasp:enterprise_security_api:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"12.2.1.3.0"},{"status":"affected","version":"12.2.1.4.0"},{"status":"affected","version":"14.1.1.0.0"}],"vendor":"oracle","product":"weblogic_server","cpe":"cpe:2.3:a:oracle:weblogic_server:12.2.1.3.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"active_iq_unified_manager","cpe":"cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:linux:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"oncommand_workflow_automation","cpe":"cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2022-008_The_OWASP_Enterprise_Security_API/","tags":["exploit","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-8m5h-hrqm-pxm2","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt","tags":["release-notes","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20230127-0014/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/07/msg00010.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23457","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ESAPI/esapi-java-legacy/commit/a0d67b75593878b1b6e39e2acc1773b3effedb2a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/ESAPI/esapi-java-legacy","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/GHSL-2022-008_The_OWASP_Enterprise_Security_API.md","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20230127-0014","tags":["web"],"sources":["ghsa"]},{"url":"https://securitylab.github.com/advisories/GHSL-2022-008_The_OWASP_Enterprise_Security_API","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-04-22T15:43:25.418Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-23457","url":"https://www.cve.org/CVERecord?id=CVE-2022-23457","licence":"CVE Terms of Use","modified":"2025-11-03T19:26:49.494Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8m5h-hrqm-pxm2","url":"https://github.com/advisories/GHSA-8m5h-hrqm-pxm2","licence":"CC-BY-4.0","modified":"2025-11-03T22:32:59.652Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-23457","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23457","licence":"Public domain","modified":"2026-06-17T04:30:09.737Z"}],"updatedAt":"2026-11-25T22:58:11.241Z","epss":{"score":0.02849,"percentile":0.87086,"date":"2026-12-01T12:00:22.000Z"}}