Improper Encoding or Escaping of Output Affecting org.apache.zeppelin:zeppelin-interpreter package, versions [0.8.2,0.11.1)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.05% (18th 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 IDSNYK-JAVA-ORGAPACHEZEPPELIN-7116659
  • published26 May 2024
  • disclosed9 Apr 2024
  • creditEsa Hiltunen

Introduced: 9 Apr 2024

CVE-2024-31866  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade org.apache.zeppelin:zeppelin-interpreter to version 0.11.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output due to improper escaping in the configuration process. An attacker can execute shell scripts or malicious code by overriding configuration like ZEPPELIN_INTP_CLASSPATH_OVERRIDES.

PoC

$ printf %q ';whoami > /tmp/imp.log; date >>/tmp/imp.log;'
\;whoami\ \>\ /tmp/imp.log\;\ date\ \>\>/tmp/imp.log\;%

CVSS Scores

version 3.1