Critical
Security advisory
The package studio-42/elfinder before 2.1.58 are vulnerable to Remote Code Execution (RCE) via execution of PHP code in a .phar file. NOTE: This only applies if the server parses .phar files as PHP.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-23394
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:40 UTC · Revision 1
Source evidence
The package studio-42/elfinder before 2.1.58 are vulnerable to Remote Code Execution (RCE) via execution of PHP code in a .phar file. NOTE: This only applies if the server parses .phar files as PHP.
osv:CVE-2021-23394
Complete source record
{
"id": "3d4801c2e982537f58fee1d36350de3a413a6bef9f8117994ec3dcc907e61242",
"url": "https://osv.dev/vulnerability/CVE-2021-23394",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-23394",
"summary": "The package studio-42/elfinder before 2.1.58 are vulnerable to Remote Code Execution (RCE) via execution of PHP code in a .phar file. NOTE: This only applies if the server parses .phar files as PHP.",
"evidence": "osv:CVE-2021-23394",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-23394",
"aliases": [
"CVE-2021-23394",
"GHSA-qm58-cvvm-c5qr",
"SNYK-PHP-STUDIO42ELFINDER-1290554"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/studio-42/elfinder",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "3802892cf32e999f08143107c5686e84ce837164"
},
{
"fixed": "75ea92decc16a5daf7f618f85dc621d1b534b5e1"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:std42:elfinder:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.1.58"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "75ea92decc16a5daf7f618f85dc621d1b534b5e1"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"2.1.57",
"2.1.56",
"2.1.55",
"2.1.54",
"2.1.53",
"2.1.52",
"2.1.51",
"2.1.50",
"2.1.49",
"2.1.48",
"2.1.47",
"2.1.46",
"2.1.45",
"2.1.44",
"2.1.43",
"2.1.42",
"2.1.41",
"2.1.40",
"2.1.39",
"2.1.38",
"2.1.37",
"2.1.36",
"2.1.35",
"2.1.34",
"2.1.33",
"2.1.32",
"2.1.31",
"2.1.30",
"2.1.29",
"2.1.28",
"2.1.27",
"2.1.26",
"2.1.25",
"2.1.24",
"2.1.23",
"2.1.22",
"2.1.21",
"2.1.20",
"2.1.19",
"2.1.18",
"2.1.17",
"2.1.16",
"2.1.15",
"2.1.14",
"2.1.13",
"2.1.12",
"2.1.11",
"2.1.10",
"2.1.9",
"2.1.8",
"2.1.7",
"2.1.6",
"2.1.5",
"2.1.4",
"2.1.3",
"2.1.2",
"2.1.1",
"2.1.0",
"2.0-beta",
"1.0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23394.json"
}
}
],
"modified": "2026-10-20T10:54:32.048672443Z",
"provider": "osv",
"references": [
"https://github.com/Studio-42/elFinder",
"https://snyk.io/vuln/SNYK-PHP-STUDIO42ELFINDER-1290554",
"https://github.com/Studio-42/elFinder/commit/75ea92decc16a5daf7f618f85dc621d1b534b5e1",
"https://github.com/Studio-42/elFinder/issues/3295",
"https://blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-23394",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385498,
"published_at": "2021-06-13T11:15:14.29+00:00"
}