CVE-2018-18893 Jinjava calls getClass

Medium 5.3 Published Updated

Attackers can execute arbitrary code via the getClass method in the Jinjava template engine due to insufficient input validation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-18893?

CVE-2018-18893 is a medium-severity code injection vulnerability in n/a, published on 3 Jan 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Jinjava before 2.4.6 does not block the getClass method, related to com/hubspot/jinjava/el/ext/JinjavaBeanELResolver.java.

Which versions are affected by CVE-2018-18893?

2 open source packages ship an affected version, including com.hubspot.jinjava:jinjava. It affects 1 product.

PackageAffectedFixed in
com.hubspot.jinjava:jinjava MavenAll versions2.4.6
com.hubspot.jinjava:jinjava MavenAll versions2.4.6

Products include Hubspot Jinjava.

How do I fix CVE-2018-18893?

Upgrade com.hubspot.jinjava:jinjava to 2.4.6 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2018-18893 being exploited?

There is no known exploitation of CVE-2018-18893 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-45r8-3495-x6rm.

Is CVE-2018-18893 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free