CVE-2011-5331

CRITICAL

Distributed Ruby <1.8 - Code Injection

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2011-5331. PoCs published by Metasploit, tomquinn8.

AI-analyzed exploit summary This exploit targets a remote code execution vulnerability in Distributed Ruby (dRuby) by leveraging instance_eval and syscall methods to execute arbitrary commands. It attempts multiple techniques, including direct command injection and syscall-based file creation/execution, to achieve RCE on both 32-bit and 64-bit systems.

Description

Distributed Ruby (aka DRuby) 1.8 mishandles instance_eval.

Exploits (2)

exploitdb WORKING POC VERIFIED
by Metasploit · rubyremotelinux
https://www.exploit-db.com/exploits/17058

This exploit targets a remote code execution vulnerability in Distributed Ruby (dRuby) by leveraging instance_eval and syscall methods to execute arbitrary commands. It attempts multiple techniques, including direct command injection and syscall-based file creation/execution, to achieve RCE on both 32-bit and 64-bit systems.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Distributed Ruby (dRuby)
No auth needed
Prerequisites: Network access to a vulnerable dRuby service · dRuby URI of the target host
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by tomquinn8 · poc
https://github.com/tomquinn8/CVE-2011-5331

This exploit leverages Ruby's DRb (Distributed Ruby) to achieve remote code execution by bypassing instance_eval restrictions. It connects to a vulnerable DRb server and executes arbitrary commands via a shell.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Ruby DRb (Distributed Ruby) versions vulnerable to CVE-2011-5331
No auth needed
Prerequisites: Network access to a vulnerable DRb server on port 5001
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (1)

Core 1
Core References
Exploit, Third Party Advisory, VDB Entry x_refsource_misc
https://www.exploit-db.com/exploits/17058

Scores

CVSS v3 9.8
EPSS 0.0503
EPSS Percentile 90.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

Status published
Products (1)
distributed_ruby_project/distributed_ruby 1.8
Published Nov 18, 2019
Tracked Since Feb 18, 2026