CVE-2022-23457 Path Traversal in ESAPI

High 7.5 Published Updated

Attackers can bypass directory path validation checks in the OWASP ESAPI library, potentially accessing unauthorized files or directories.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-23457?

CVE-2022-23457 is a high-severity path traversal vulnerability in Netapp Active Iq Unified Manager, published on 25 Apr 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2022-23457?

2 open source packages ship an affected version, including org.owasp.esapi:esapi. It affects 4 products.

PackageAffectedFixed in
org.owasp.esapi:esapi MavenAll versions2.3.0.0
org.owasp.esapi:esapi MavenAll versions2.3.0.0

Products include Netapp Active Iq Unified Manager, Netapp Oncommand Workflow Automation, Oracle Weblogic Server, Owasp Enterprise Security Api.

How do I fix CVE-2022-23457?

Upgrade org.owasp.esapi:esapi to 2.3.0.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-23457 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-23457 exists.

Public exploit code: 1 proofs of concept on GitHub.

All Netapp Active Iq Unified Manager vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-23457, GHSA-8m5h-hrqm-pxm2, UBUNTU-CVE-2022-23457.

Is CVE-2022-23457 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free