CVE-2024-47883
published 2024-10-24CVE-2024-47883: The OpenRefine fork of the MIT Simile Butterfly server is a modular web application framework. The Butterfly framework uses the `java.net.URL` class to refer…
PriorityP258critical9.1CVSS 3.1
AVNACLPRNUINSUCHIHAN
EPSS
1.60%
72.8th percentile
The OpenRefine fork of the MIT Simile Butterfly server is a modular web application framework. The Butterfly framework uses the `java.net.URL` class to refer to (what are expected to be) local resource files, like images or templates. This works: "opening a connection" to these URLs opens the local file. However, prior to version 1.2.6, if a `file:/` URL is directly given where a relative path (resource name) is expected, this is also accepted in some code paths; the app then fetches the file, from a remote machine if indicated, and uses it as if it was a trusted part of the app's codebase. This leads to multiple weaknesses and potential weaknesses. An attacker that has network access to the application could use it to gain access to files, either on the the server's filesystem (path traversal) or shared by nearby machines (server-side request forgery with e.g. SMB). An attacker that can lead or redirect a user to a crafted URL belonging to the app could cause arbitrary attacker-controlled JavaScript to be loaded in the victim's browser (cross-site scripting). If an app is written in such a way that an attacker can influence the resource name used for a template, that attacker could cause the app to fetch and execute an attacker-controlled template (remote code execution). Version 1.2.6 contains a patch.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | openrefine-butterfly | < openrefine-butterfly 1.2.6-1 (forky) | openrefine-butterfly 1.2.6-1 (forky) |
| openrefine | butterfly | <= 1.2.6 | — |
| openrefine | simile-butterfly | < 1.2.6 | 1.2.6 |
Detection & IOCsextracted from sources · hover to see the quote
- →Detect requests where a `file:/` URL is supplied in place of a relative resource path/name parameter in the Butterfly framework ↗
- →Monitor for SSRF attempts leveraging SMB shares via crafted file:/ URLs submitted to the OpenRefine/Butterfly application ↗
- →Detect crafted app URLs that load attacker-controlled JavaScript in the victim's browser (XSS vector via resource name injection) ↗
- →Alert on template resource names containing `file:/` prefixes, which could indicate an attempt to fetch and execute attacker-controlled templates (RCE vector) ↗
- ·Vulnerability only affects Butterfly versions prior to 1.2.6; the fix is present in 1.2.6-1 (forky, sid, trixie) but Debian bookworm remains unpatched/open as of source date ↗
- ·The vulnerable code paths are those that accept `file:/` URLs in contexts expecting only relative resource names — not all code paths are affected equally ↗
CVSS provenance
nvdv3.19.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
osv9.1CRITICAL
vendor_debian9.1CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Butterfly has path/URL confusion in resource handling leading to multiple weaknesses
osv·2024-10-24
CVE-2024-47883 [CRITICAL] Butterfly has path/URL confusion in resource handling leading to multiple weaknesses
Butterfly has path/URL confusion in resource handling leading to multiple weaknesses
### Summary
The Butterfly framework uses the `java.net.URL` class to refer to (what are expected to be) local resource files, like images or templates. This works: "opening a connection" to these URLs opens the local file. However, if a `file:/` URL is directly given where a relative path (resource name) is expected, this is also accepted in some code paths; the app then fetches the file, from a remote machine if indicated, and uses it as if it was a trusted part of the app's codebase.
This leads to multiple weaknesses and potential weaknesses:
* An attacker that has network access to the application could use it to gain access to files, either on the the server's filesystem (path traversal) or shared
OSV
CVE-2024-47883: The OpenRefine fork of the MIT Simile Butterfly server is a modular web application framework
osv·2024-10-24·CVSS 9.1
CVE-2024-47883 [CRITICAL] CVE-2024-47883: The OpenRefine fork of the MIT Simile Butterfly server is a modular web application framework
The OpenRefine fork of the MIT Simile Butterfly server is a modular web application framework. The Butterfly framework uses the `java.net.URL` class to refer to (what are expected to be) local resource files, like images or templates. This works: "opening a connection" to these URLs opens the local file. However, prior to version 1.2.6, if a `file:/` URL is directly given where a relative path (resource name) is expected, this is also accepted in some code paths; the app then fetches the file, from a remote machine if indicated, and uses it as if it was a trusted part of the app's codebase. This leads to multiple weaknesses and potential weaknesses. An attacker that has network access to the application could use it to gain access to files, either on the the server's filesystem (path trave
GHSA
Butterfly has path/URL confusion in resource handling leading to multiple weaknesses
ghsa·2024-10-24
CVE-2024-47883 [CRITICAL] CWE-22 Butterfly has path/URL confusion in resource handling leading to multiple weaknesses
Butterfly has path/URL confusion in resource handling leading to multiple weaknesses
### Summary
The Butterfly framework uses the `java.net.URL` class to refer to (what are expected to be) local resource files, like images or templates. This works: "opening a connection" to these URLs opens the local file. However, if a `file:/` URL is directly given where a relative path (resource name) is expected, this is also accepted in some code paths; the app then fetches the file, from a remote machine if indicated, and uses it as if it was a trusted part of the app's codebase.
This leads to multiple weaknesses and potential weaknesses:
* An attacker that has network access to the application could use it to gain access to files, either on the the server's filesystem (path traversal) or shared
Debian
CVE-2024-47883: openrefine-butterfly - The OpenRefine fork of the MIT Simile Butterfly server is a modular web applicat...
vendor_debian·2024·CVSS 9.1
CVE-2024-47883 [CRITICAL] CVE-2024-47883: openrefine-butterfly - The OpenRefine fork of the MIT Simile Butterfly server is a modular web applicat...
The OpenRefine fork of the MIT Simile Butterfly server is a modular web application framework. The Butterfly framework uses the `java.net.URL` class to refer to (what are expected to be) local resource files, like images or templates. This works: "opening a connection" to these URLs opens the local file. However, prior to version 1.2.6, if a `file:/` URL is directly given where a relative path (resource name) is expected, this is also accepted in some code paths; the app then fetches the file, from a remote machine if indicated, and uses it as if it was a trusted part of the app's codebase. This leads to multiple weaknesses and potential weaknesses. An attacker that has network access to the application could use it to gain access to files, either on the the server's filesystem (path trave
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-10-24
Published