high CVSS 7.6

CVE-2024-47879·Python vulnerability

OpenRefine is a free, open source tool for working with messy data. Prior to version 3.8.3, lack of cross-site request forgery protection on the `preview-expression` command means that visiting a malicious website could cause an attacker-controlled expression to be executed. The expression can contain arbitrary Clojure or Python code. The attacker must know a valid project ID of a project that contains at least one row, and the attacker must convince the victim to open a malicious webpage. Version 3.8.3 fixes the issue.

Severity
high
Software
Python
Fixed in
3.8.3
Published
2024-10-24

Affected versions

Until: 3.8.3

Fixed in: 3.8.3

How to fix this CVE

OpenRefine versions prior to 3.8.3 contain a CSRF vulnerability in the preview-expression endpoint that allows remote code execution through arbitrary Clojure or Python expressions. Immediately upgrade OpenRefine to version 3.8.3 or later to apply CSRF token validation and prevent unauthorized expression execution. This requires updating the OpenRefine application itself, not the Python package, as the vulnerability exists in the OpenRefine tool rather than the Python runtime.

Download and install OpenRefine 3.8.3 or later from https://github.com/OpenRefine/OpenRefine/releases. If using EPEL repository: sudo dnf install openrefine

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST /command/core/preview-expression with Content-Type: application/x-www-form-urlencoded containing 'expression=' parameter with Clojure/Python code patterns such as 'clojure.java.shell/sh' or 'import os; os.system'

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Block POST requests to /command/core/preview-expression endpoints that lack valid CSRF tokens. Implement token validation on the preview-expression endpoint by checking for the 'X-CSRF-Token' header. Rate-limit expression evaluation requests from individual IPs to prevent batch exploitation attempts.

How to check if you are affected

  1. Step 1: Check installed OpenRefine version by navigating to the About menu in the OpenRefine web interface or running: grep -r '"version"' /path/to/openrefine/server/index.html
  2. Step 2: Verify if OpenRefine is running and accessible on the network by checking open ports: netstat -tlnp | grep -i java or ss -tlnp | grep -i java
  3. Step 3: Search application logs for suspicious preview-expression requests: grep -i 'preview-expression' /var/log/openrefine/*.log /path/to/openrefine/logs/*.log
  4. Step 4: Confirm the patched version is running by checking the OpenRefine release notes match version 3.8.3 or later: curl -s http://localhost:3333/about.html | grep -i version

FAQ

What is CVE-2024-47879?

CVE-2024-47879 is a cross-site request forgery (CSRF) vulnerability in OpenRefine's preview-expression endpoint that allows attackers to inject and execute arbitrary Clojure or Python code on vulnerable servers. An attacker can craft a malicious webpage that, when visited by an OpenRefine user, silently executes attacker-controlled expressions within the context of the victim's project.

Is CVE-2024-47879 being actively exploited?

No, CVE-2024-47879 is not currently listed in the CISA Known Exploited Vulnerabilities catalog, and no public exploit code has been released. However, the attack requires minimal technical complexity and should be patched immediately given the high severity.

What versions of OpenRefine are affected by CVE-2024-47879?

All OpenRefine versions prior to 3.8.3 are vulnerable. The exact earliest affected version is unknown, but the issue has been present in versions going back several releases. Version 3.8.3 and all subsequent releases contain the fix.

How do I check if my server is vulnerable to CVE-2024-47879?

Run: curl -s http://localhost:3333/ | grep -o 'OpenRefine [0-9.]*' or check the About page in the OpenRefine UI. If the version is below 3.8.3, the server is vulnerable.

Does Defensia detect CVE-2024-47879?

Yes — Defensia's CVE advisory scanner monitors OpenRefine deployments and compares installed versions against known vulnerabilities including CVE-2024-47879. If an affected version is detected, the vulnerability will appear in your dashboard with step-by-step remediation guidance.

Related Python CVEs

CVE-2026-28505CVSS 10Tautulli is a Python based monitoring and tracking tool for Plex Media Server. Prior to version 2.17.0, the str_eval() function in notification_handler.py implements a sandboxed eval() for notification text templates. The sandbox attempts to restrict callable names by inspecting code.co_names of the compiled code object. However, co_names only contains names from the outer code object. When a lambda expression is used, it creates a nested code object whose attribute accesses are stored in code.co_consts, NOT in code.co_names. The sandbox never inspects nested code objects. This issue has been patched in version 2.17.0.
CVE-2026-25632CVSS 10EPyT-Flow is a Python package designed for the easy generation of hydraulic and water quality scenario data of water distribution networks. Prior to 0.16.1, EPyT-Flow’s REST API parses attacker-controlled JSON request bodies using a custom deserializer (my_load_from_json) that supports a type field. When type is present, the deserializer dynamically imports an attacker-specified module/class and instantiates it with attacker-supplied arguments. This allows invoking dangerous classes such as subprocess.Popen, which can lead to OS command execution during JSON parsing. This also affects the loading of JSON files. This vulnerability is fixed in 0.16.1.
CVE-2026-34938CVSS 10PraisonAI is a multi-agent teams system. Prior to version 1.5.90, execute_code() in praisonai-agents runs attacker-controlled Python inside a three-layer sandbox that can be fully bypassed by passing a str subclass with an overridden startswith() method to the _safe_getattr wrapper, achieving arbitrary OS command execution on the host. This issue has been patched in version 1.5.90.
CVE-2026-33054CVSS 10Mesop is a Python-based UI framework that allows users to build web applications. Versions 1.2.2 and below contain a Path Traversal vulnerability that allows any user supplying an untrusted state_token through the UI stream payload to arbitrarily target files on the disk under the standard file-based runtime backend. This can result in application denial of service (via crash loops when reading non-msgpack target files as configurations), or arbitrary file manipulation. This vulnerability heavily exposes systems hosted utilizing FileStateSessionBackend. Unauthorized malicious actors could interact with arbitrary payloads overwriting or explicitly removing underlying service resources natively outside the application bounds. This issue has been fixed in version 1.2.3.
CVE-2026-25115CVSS 9.9n8n is an open source workflow automation platform. Prior to version 2.4.8, a vulnerability in the Python Code node allows authenticated users to break out of the Python sandbox environment and execute code outside the intended security boundary. This issue has been patched in version 2.4.8.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-47879. Free for 1 server.

Get started free