Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OWASP ESAPI | org.owasp.esapi:esapi | 2.3.0.0 – < 2.3.0.0 | 2.3.0.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 13 | libowasp-esapi-java | 2.4.0.0-1 | — |
| Debian 12 | libowasp-esapi-java | 2.4.0.0-1 | — |
| Debian 11 | libowasp-esapi-java | 2.4.0.0-0+deb11u1 | DLA-4246-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | libowasp-esapi-java | 2.2.3.1-1ubuntu0.1~esm1 | — |
| Ubuntu Pro 20.04 LTS | libowasp-esapi-java | 2.1.0-3ubuntu0.20.04.1~esm1 | — |
| Ubuntu Pro 18.04 LTS | libowasp-esapi-java | 2.1.0-3ubuntu0.18.04.1~esm1 | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | libowasp-esapi-java | 2.1.0-2ubuntu0.1~esm1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
shoucheng3/ESAPI__esapi-java-legacy_CVE-2022-23457_2-2-3-1 ★ 0 · Aug 16, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.owasp.esapi:esapi | < 2.3.0.0 | 2.3.0.0 | GHSA-8m5h-hrqm-pxm2 |
Advisories 4
- DLA-4246-1 libowasp-esapi-java - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2023-0132 Oracle Fusion Middleware: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 1, 2023
- WID-SEC-2023-0217 NetApp ActiveIQ Unified Manager: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 29, 2023
- WID-SEC-2023-0131 Oracle Health Sciences Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 17, 2023
References
- https://securitylab.github.com/advisories/GHSL-2022-008_The_OWASP_Enterprise_Security_API/
- https://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-8m5h-hrqm-pxm2
- https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20230127-0014/