Arbitrary Code Execution The advisory has been revoked - it doesn't affect any version of package commons-jxpath:commons-jxpath  (opens in a new tab)


Threat Intelligence

Exploit Maturity
Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-COMMONSJXPATH-3040861
  • published7 Oct 2022
  • disclosed6 Oct 2022
  • creditOSS Fuzz Team

Introduced: 6 Oct 2022

CVE-2022-41852  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for commons-jxpath:commons-jxpath.

Amendment

This was deemed not a vulnerability.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Execution when interpreting untrusted XPath expressions. All JXPathContext class functions processing an XPath string are vulnerable except the compile() and compilePath() functions. The XPath expression can be used by an attacker to load any Java class from the classpath, resulting in code execution.

NOTE: This issue has been acknowledged as invalid as the library is NOT expected to handle untrusted input.