GHSA-c3gj-q88f-7hqj
HIGHGHSA-c3gj-q88f-7hqj is a high-severity (CVSS 8.8) vulnerability in studio-42/elfinder. O3 Security confirms whether GHSA-c3gj-q88f-7hqj is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.
elFinder MySQL has a SQL Injection in its Volume Driver (elFinderVolumeMySQL)
Real-World Exposure
studio-42/elfinderReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Summary
An authenticated SQL injection vulnerability in the elFinder MySQL volume driver (elFinderVolumeMySQL) allows any logged-in user, including users with read-only access to the affected volume, to inject SQL through a crafted target file hash. Successful exploitation can lead to unauthorized data disclosure and denial of service.
This vulnerability only affects installations configured to use the MySQL volume driver. Installations using the default LocalFileSystem driver are not affected.
Description
A vulnerability in elFinder's MySQL volume driver (elFinderVolumeMySQL) allows authenticated SQL injection through a crafted file hash passed via the target parameter.
The issue is caused by two behaviors working together:
- File hashes are decoded without validating that the decoded value is a valid MySQL object identifier.
- The decoded value is then used in MySQL driver queries, including
cacheDir(),_joinPath(),_stat(), and_fopen().
Because the MySQL storage schema uses numeric id and parent_id values, an authenticated user can supply a crafted hash that alters the intended SQL query logic. Successful exploitation can lead to unauthorized data disclosure and denial of service. The extent of impact depends on the privileges granted to the configured MySQL account.
This vulnerability only affects installations configured to use the MySQL volume driver. Installations using the default LocalFileSystem driver are not affected.
Impact
An authenticated user, including a user with read-only access to the affected volume, can exploit this issue to:
- disclose data accessible to the configured MySQL account, including file contents stored by the driver and database metadata
- trigger denial of service through expensive or unexpectedly broad query results that can lead to excessive memory consumption
The severity of data exposure depends on the privileges granted to the configured MySQL account.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | studio-42/elfinder | all versions | 2.1.68 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for studio-42/elfinder. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update studio-42/elfinder to 2.1.68 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-c3gj-q88f-7hqj is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-c3gj-q88f-7hqj is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-c3gj-q88f-7hqj. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-c3gj-q88f-7hqj in your dependencies?
O3 detects GHSA-c3gj-q88f-7hqj across Packagist dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.