LiveActive security incident?Get immediate response
CVE Record

CVE-2022-23457: 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.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2022-23457 affects OWASP ESAPI, a Java security library. In vulnerable versions before 2.3.0.0, a directory path validation check can misjudge whether a supplied path is inside an allowed parent directory. If exposed through application logic, this can undermine file-path safety checks and risk unauthorized file access or modification.

Executive priority

Treat as a high-priority dependency and product exposure check, especially for Java systems handling uploaded files, generated reports, document storage, or user-selected paths. No source here proves active exploitation, so urgency should focus on finding real usage and applying available patched versions or vendor updates.

Technical view

The flaw is CWE-22 path traversal in ESAPI's default Validator.getValidDirectoryPath(String, String, File, boolean). When an attacker can control the full input path, the method may incorrectly treat it as a child of the configured parent directory, bypassing intended validation. ESAPI 2.3.0.0 patches the issue.

Likely exposure

Most exposure is in Java applications or vendor products that include org.owasp.esapi:esapi before 2.3.0.0 and use the affected directory validation method on attacker-influenced full paths. Oracle, NetApp, and Debian references indicate downstream ecosystem impact, but each environment needs product-specific confirmation.

Exploitation context

The CVSS vector shows network reachability, low privileges, no user interaction, and high impact, but high attack complexity. The provided sources do not show CISA KEV listing or confirmed active exploitation. Practical exploitability depends on whether application code passes attacker-controlled complete path strings into the affected ESAPI validator.

Researcher notes

The key research question is not only version presence, but reachable use of the affected validator with attacker-controlled complete path strings. The source bundle identifies the patched ESAPI release and downstream advisories, but does not provide enough evidence to claim universal exploitability across all ESAPI consumers.

Mitigation direction

  • Upgrade OWASP ESAPI to version 2.3.0.0 or later.
  • Apply vendor updates for affected Oracle, NetApp, or Debian-distributed products.
  • Avoid relying on the custom Validator workaround unless vendor guidance requires it.
  • Reduce attacker control over full filesystem path inputs where possible.
  • Check vendor advisories before changing packaged or embedded ESAPI dependencies.

Validation and detection

  • Inventory Java dependencies for org.owasp.esapi:esapi versions before 2.3.0.0.
  • Search application code for Validator.getValidDirectoryPath usage.
  • Confirm whether external input can control the full path argument.
  • Verify deployed artifacts include the patched ESAPI version.
  • Review Oracle, NetApp, and Debian advisories for affected packaged products.
Prepared
Confidence
high
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-22: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-23457 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
7Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H1.65.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2022-23457Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
OWASP ESAPIorg.owasp.esapi:esapi2.3.0.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.