Skip to content
Fencer Vulns
high 7.5

CVE-2022-23457 json

Path Traversal in ESAPI

published 2022-04-25 4 y ago modified 2026-06-17 4 mo ago also GHSA-8m5h-hrqm-pxm2 , EUVD-2022-1678

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.8%
EPSS 2.8% chance of exploitation in 30 days, percentile 86%
public exploits
0
none known

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.

Patch / fix

  • maven org.owasp.esapi:esapi 2.3.0.0
  • owasp enterprise_security_api 2.3.0.0
  • libowasp-esapi-java Debian 13, Debian 12 2.4.0.0-1

debian advisories DEBIAN-CVE-2022-23457

  • libowasp-esapi-java Ubuntu Pro 16.04 LTS 2.1.0-2ubuntu0.1~esm1
  • libowasp-esapi-java Ubuntu Pro 18.04 LTS 2.1.0-3ubuntu0.18.04.1~esm1
  • libowasp-esapi-java Ubuntu Pro 20.04 LTS 2.1.0-3ubuntu0.20.04.1~esm1
  • libowasp-esapi-java Ubuntu Pro 22.04 LTS 2.2.3.1-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2022-23457

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
18 mo ago

Exploit prediction

2.85% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • securitylab.github.com https://securitylab.github.com/advisories/GHSL-2022-008_The_OWASP_Enterprise_Security_API/ referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
maven org.owasp.esapi:esapi
<2.3.0.0
2.3.0.0

Affected products

  • OWASP ESAPI org.owasp.esapi:esapi

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.