Page MenuHomePhabricator

Address "Log4shell" vulnerability in Elasticsearch 7.10.2
Closed, ResolvedPublic

Description

Elasticsearch 7.10.x didn't receive the iteration that addressed recent JNDI related Log4j vulnerability (https://nvd.nist.gov/vuln/detail/CVE-2021-44228) as 6.8.x did. Since this probably won't happen, we need to make sure that the newly deployed version isn't affected.

Mitigations:

  • Update log4j version beyond 2.15
  • disable message format lookups (-Dlog4j2.formatMsgNoLookups=true)

AC:

  • Production cluster isn't susceptible to log4j JNDI attacks

Event Timeline

Based on https://xeraa.net/blog/2021_mitigate-log4j2-log4shell-elasticsearch/#what-does-that-mean-for-elasticsearch , RCE type vulnerability doesn't apply to Elasticsearch thanks to use of SecurityManager, but since our instances are using JRE8, there are some vulnerabilities still, that can be fixed by using mentioned system property.