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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (37th percentile)

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 Remote Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-COMHUBSPOTJINJAVA-72881
  • published6 Jan 2019
  • disclosed3 Jan 2019
  • creditUnknown

Introduced: 3 Jan 2019

CVE-2018-18893  (opens in a new tab)
CWE-94  (opens in a new tab)

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.

CVSS Scores

version 3.1