A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-41961

CVE-2024-41961: Elektra OpenStack Dashboard RCE Flaw

CVE-2024-41961 is a remote code execution vulnerability in Elektra OpenStack Dashboard affecting the live search functionality. Authenticated users can inject Ruby code into search terms. This article covers technical details, impact, and mitigations.

Published: May 26, 2026

CVE-2024-41961 Overview

CVE-2024-41961 is a code injection vulnerability in Elektra, an OpenStack dashboard built on Ruby on Rails for operators and consumers of OpenStack services. The flaw resides in the live search functionality, where user-supplied search terms flow into a Ruby eval sink without proper sanitization. An authenticated attacker can craft a search term containing arbitrary Ruby code that the application executes server-side. The issue is tracked under CWE-94: Improper Control of Generation of Code and was fixed in commit 8bce00be93b95a6512ff68fe86bf9554e486bc02.

Critical Impact

Authenticated users can achieve arbitrary Ruby code execution on the Elektra application server through the live search feature, compromising the dashboard and the OpenStack operations it manages.

Affected Products

  • Elektra OpenStack Dashboard (sapcc/elektra)
  • Versions prior to commit 8bce00be93b95a6512ff68fe86bf9554e486bc02
  • Ruby on Rails-based deployments exposing the live search API

Discovery Timeline

  • 2024-08-01 - CVE-2024-41961 published to the National Vulnerability Database (NVD)
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2024-41961

Vulnerability Analysis

Elektra exposes a live search endpoint backed by an API lookup helper in app/controllers/concerns/api_lookup.rb. The helper iterates over a list of search methods, substituting the placeholder :term with the user-supplied query before invoking the corresponding service method. The pre-patch implementation used Marshal.load(Marshal.dump(...)) to clone method parameters, and the search term subsequently reached an eval sink that interpreted the value as Ruby code rather than as a string. An attacker authenticated to Elektra can submit a search term containing Ruby expressions and trigger their execution in the context of the web application.

Root Cause

The root cause is unsafe handling of user input that ultimately reaches a Ruby eval call inside the live search code path. Trusting deserialized parameter structures and passing the raw term string through to a dynamic evaluation context allows arbitrary Ruby expressions to be parsed and run. This is a classic CWE-94 code injection pattern where input intended as data is interpreted as code.

Attack Vector

Exploitation requires network access to the Elektra dashboard and a valid authenticated session, but no user interaction beyond the attacker's own request. The attacker issues a live search request with a crafted term parameter containing Ruby syntax. The injected payload is executed in the Rails process, granting the attacker the privileges of the Elektra application, including access to OpenStack credentials and APIs the dashboard uses.

ruby
# Security patch in app/controllers/concerns/api_lookup.rb
# fix(live-search): don't use Marshal Load due to security issues
     term = URI.encode_www_form_component(term)
 
     methods.each do |m|
-      params = Marshal.load(Marshal.dump(m[:params]))
-      params.each do |inner_param|
-        if inner_param.is_a?(Hash)
-          inner_param.transform_values! { |value| value == ":term" ? term : value }
-        elsif inner_param.is_a?(String) && inner_param == ":term"
-          inner_param.replace(term)
+      # replace :term in values 
+      transformed_params = m[:params].map do |param|
+        if param.is_a?(Hash)
+          param.transform_values { |value| value == ":term" ? term : value }
+        elsif param.is_a?(String) && param == ":term"
+          term.dup
+        else
+          param
         end
       end
 
-      found_items = service.public_send(m[:method_name], *params)
+      found_items = service.public_send(m[:method_name], *transformed_params)

Source: sapcc/elektra commit 8bce00b. The patch replaces the Marshal.load(Marshal.dump(...)) deep clone with a non-mutating map/transform_values and URI-encodes the term before substitution, preventing the search input from being interpreted as Ruby code.

Detection Methods for CVE-2024-41961

Indicators of Compromise

  • Live search requests to Elektra endpoints containing Ruby syntax tokens such as backticks, system(, IO.popen, eval(, %x{, or Kernel.
  • Unexpected child processes spawned by the Elektra Rails application user
  • Outbound network connections from the Elektra host to unfamiliar destinations following a search request
  • Rails application log entries showing eval-related errors or stack traces tied to search controllers

Detection Strategies

  • Inspect web server and Rails logs for search term parameters containing non-alphanumeric Ruby operators or method calls
  • Alert on process executions whose parent is the Elektra Ruby/Puma process and whose command line is uncommon for normal operation
  • Compare deployed Elektra commits against the fixed commit 8bce00be93b95a6512ff68fe86bf9554e486bc02 to identify vulnerable instances
  • Review authentication logs for accounts issuing high volumes of live search queries with anomalous payload lengths

Monitoring Recommendations

  • Forward Elektra application, web server, and host process telemetry to a centralized analytics platform for correlation
  • Baseline normal search query patterns and flag deviations in character distribution and length
  • Monitor OpenStack API audit logs for actions originating from the Elektra service account outside expected workflows

How to Mitigate CVE-2024-41961

Immediate Actions Required

  • Upgrade Elektra to a build that includes commit 8bce00be93b95a6512ff68fe86bf9554e486bc02 or later
  • Rotate any OpenStack credentials, API tokens, and secrets accessible to the Elektra application after patching
  • Audit recent live search traffic and Rails logs for evidence of exploitation attempts
  • Restrict Elektra dashboard access to trusted networks and enforce strong authentication for all users

Patch Information

The vulnerability is fixed in sapcc/elektra commit 8bce00be93b95a6512ff68fe86bf9554e486bc02, with related changes in commit 49aea3b365082681558bf3bf7bf4a51766cfc44d. Details are published in GitHub Security Advisory GHSA-6j2h-486h-487q.

Workarounds

  • Disable or remove the live search endpoint in deployments that cannot apply the patch immediately
  • Place a web application firewall (WAF) rule in front of Elektra to block search term values containing Ruby metacharacters
  • Limit Elektra accounts to the minimum set of operators required, reducing the population that can reach the authenticated endpoint
bash
# Verify the deployed Elektra commit includes the fix
cd /path/to/elektra
git log --oneline | grep 8bce00be93b95a6512ff68fe86bf9554e486bc02 \
  && echo "Patched" \
  || echo "Vulnerable - upgrade required"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechElektra

  • SeverityCRITICAL

  • CVSS Score9.6

  • EPSS Probability0.21%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2024-8261: Prolizyazilim OBS Auth Bypass Vulnerability

  • CVE-2024-13068: LimonDesk Auth Bypass Vulnerability

  • CVE-2025-53679: Fortinet FortiSandbox RCE Vulnerability

  • CVE-2026-9446: Simple POS Inventory System SQLi Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English