{"id":"UBUNTU-CVE-2022-23457","details":"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.","modified":"2026-04-17T09:42:44.506922Z","published":"2022-04-25T20:15:00Z","related":["USN-8181-1"],"upstream":["CVE-2022-23457"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-23457"},{"type":"REPORT","url":"https://securitylab.github.com/advisories/GHSL-2022-008_The_OWASP_Enterprise_Security_API/"},{"type":"REPORT","url":"https://github.com/ESAPI/esapi-java-legacy/security/advisories/GHSA-8m5h-hrqm-pxm2"},{"type":"REPORT","url":"https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/esapi4java-core-2.3.0.0-release-notes.txt"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-23457"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8181-1"}],"affected":[{"package":{"name":"libowasp-esapi-java","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/libowasp-esapi-java@2.1.0-2ubuntu0.1~esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-2ubuntu0.1~esm1"}]}],"versions":["2.1.0-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"libowasp-esapi-java","binary_version":"2.1.0-2ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23457.json"}},{"package":{"name":"libowasp-esapi-java","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/libowasp-esapi-java@2.1.0-3ubuntu0.18.04.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.18.04.1~esm1"}]}],"versions":["2.1.0-3"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"2.1.0-3ubuntu0.18.04.1~esm1","binary_name":"libowasp-esapi-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23457.json"}},{"package":{"name":"libowasp-esapi-java","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/libowasp-esapi-java@2.1.0-3ubuntu0.20.04.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.0-3ubuntu0.20.04.1~esm1"}]}],"versions":["2.1.0-3"],"ecosystem_specific":{"binaries":[{"binary_name":"libowasp-esapi-java","binary_version":"2.1.0-3ubuntu0.20.04.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23457.json"}},{"package":{"name":"libowasp-esapi-java","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/libowasp-esapi-java@2.2.3.1-1ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.3.1-1ubuntu0.1~esm1"}]}],"versions":["2.1.0-3.1","2.2.3.1-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"libowasp-esapi-java","binary_version":"2.2.3.1-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23457.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"low"}]}