Remote Code Execution Affecting com.hubspot.jinjava:jinjava package, versions [,2.4.6)


0.0
medium

Snyk CVSS

    Attack Complexity High
Expand this section
NVD
5.3 medium

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 ID SNYK-JAVA-COMHUBSPOTJINJAVA-72881
  • published 6 Jan 2019
  • disclosed 3 Jan 2019
  • credit Unknown

How to fix?

Upgrade com.hubspot.jinjava:jinjava to version 2.4.6 or higher.

Overview

com.hubspot.jinjava:jinjava is a Java-based template engine based on django template syntax, adapted to render jinja templates (at least the subset of jinja in use in HubSpot content).

Affected versions of this package are vulnerable to Remote Code Execution via the com/hubspot/jinjava/el/ext/JinjavaBeanELResolver.java path. It was possible to call the getClass() method on any object.