Critical, CVSS 9.8MavenPublished
GeoTools Remote Code Execution (RCE) vulnerability in evaluating XPath expressions
CVE-2024-36404 · GHSA-w3pj-wh35-fq8w
- Affected
- Maven org.geotools:gt-complex >= 30.0, < 30.4; >= 31.0, < 31.2; >= 29.0, < 29.6; < 28.6
- Fixed in
- 28.630.431.229.6· Vendor fix available
- Issue
- Remote Code Execution (RCE) is possible if an application uses certain GeoTools functionality to evaluate XPath expressions supplied by user input. Details The following methods pass XPath expressions to the commons-jxpath library which can execute arbitrary code and would be a security issue if the XPath expressions are provided by user input. org.geotools.appschema.util.XmlXpathUtilites.getXPathValues(NamespaceSupport, String, Document) org.geotools.appschema.util.XmlXpathUtilites.countXPathNodes(NamespaceSupport, String, Document) org.geotools.appschema.util.XmlXpathUtilites.getSingleXPathValue(NamespaceSupport, String, Document) org.geotools.data.complex.expression.FeaturePropertyAccessorFactory.FeaturePropertyAccessor.get(Object, String, Class<T) org.geotools.data.complex.expression.FeaturePropertyAccessorFactory.FeaturePropertyAccessor.set(Object, String, Object, Class) org.geotools.data.complex.expression.MapPropertyAccessorFactory.new PropertyAccessor()…
Recommended action: Upgrade to 31.2, 30.4, 29.6 or 28.6 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.