☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 🐛 CWE-269
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-22186

CVE-2024-22186
📅 PUBLISHED: 2024-04-18 00:00 UTC 🔄 UPDATED: 2026-10-09 05:43 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.55%
👁️
0.55% probability
13.7× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1068
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 8.8
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: H Availability High
8.8
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-22186 is a high-severity privilege escalation vulnerability (CVSS 8.8) affecting an unnamed web application, allowing an attacker authenticated as a guest to escalate privileges to administrator by manipulating (poisoning) a session cookie. The vulnerability stems from insufficient server-side validation of the cookie's integrity or trust boundary, permitting an attacker to modify a client-controlled cookie value that the application implicitly trusts for authorization decisions. Successful exploitation grants the attacker full administrative control over the target application, including access to sensitive data, configuration changes, and potential lateral movement into connected infrastructure.

⚡ 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

Technical Analysis

The vulnerability is a classic insufficient server-side validation of session state combined with improper privilege management (CWE-269). The application stores an authorization attribute — most likely a user role or privilege indicator such as role=guest, is_admin=false, or privilege_level=1 — directly within a cookie that is sent to and from the client. The server fails to cryptographically sign, encrypt, or otherwise validate this cookie, enabling an attacker to modify its contents and resubmit it to the server.

Vulnerability Mechanism:

  1. Trust Inversion: The server relies on a client-controlled cookie to determine the session's privilege level. In a properly secured application, the session ID (a random, unguessable token) is stored in the cookie, while the actual authorization data (user ID, role, permissions) lives server-side in a session store (database, Redis, or in-memory cache). Here, the application instead embeds the privilege assertion directly into the cookie payload.

  2. Insufficient Integrity Protection: The cookie is not protected by a Message Authentication Code (MAC) such as HMAC, nor is it encrypted. There is no signature preventing tampering. An attacker can decode the cookie (e.g., base64, JSON, URL-encoding) and alter the guest role to administrator.

  3. Missing Server-Side Re-Authentication: The application does not re-validate the user's actual role at the server against a trusted session store. It blindly trusts the cookie value for each HTTP request, meaning the spoofed role persists for the entire session.

  4. Expression: The attack is a form of privilege escalation via parameter tampering, specifically a cookie poisoning attack. This is commonly seen in legacy PHP applications using $_COOKIE directly, Java servlets with HttpSession.setAttribute() writing role data to the session cookie, or Node.js apps using signed-less JSON Web Tokens (JWTs) as cookies.

Attack Surface:

  • Pre-Authentication: The attacker must first authenticate as a guest (which is often a default-created account with restricted access). This lowers the required privilege level but does not eliminate the need for an account.
  • Network Exposure: The application is presumed to be internet-facing or at least reachable over the network, given the CVSS AV:N (network attack vector).
  • Session Management: The cookie is the sole bearer of authorization state, making the attack trivially repeatable and persistent (the attacker can set a long expiration).

Exploitation Scenarios

Attack Chain — Cookie Poisoning Privilege Escalation:

Step 1 — Reconnaissance & Target Identification:

  • The attacker performs a login as a guest account (either by registration, default credentials like guest/guest, or a publicly accessible "login as guest" button common in community portals, knowledge bases, or demo environments).
  • Upon login, the attacker captures the HTTP response, specifically the Set-Cookie header. Typical formats: Set-Cookie: session=eyJ1c2VyIjoiZ3Vlc3QiLCJyb2xlIjoiZ3Vlc3QifQ%3D%3D; Path=/ (base64-encoded JSON), or Set-Cookie: role=guest; sessionid=abc123 (plaintext attribute), or Set-Cookie: token=guest|1699999999|hash (pipe-delimited).

Step 2 — Cookie Analysis & Crafting:

  • The attacker decodes the cookie value. If it is base64 (e.g., Z3Vlc3Q6Z3Vlc3Q=), they decode to guest:guest. If it's JSON, they parse it to {"user":"guest","role":"guest"}.
  • The attacker modifies the privilege field to admin, administrator, root, or role=1 (depending on the application's role numeric mapping). They re-encode the cookie (base64, URL-encode, etc.).
  • If the cookie is pipe-delimited with an appending hash (e.g., guest|hash where hash = MD5(secret + value)), the attacker initially tries without hash — if the server doesn't verify it (the bug), the tampered cookie is accepted. If the hash is verified but uses a weak algorithm or hardcoded secret, the attacker can brute-force the secret or find it in public source code.

Step 3 — Payload Delivery (Cookie Injection):

  • The attacker submits a crafted HTTP request to the application with the poisoned cookie:
    • GET /admin/dashboard.php HTTP/1.1
    • Host: target.com
    • Cookie: session=eyJ1c2VyIjoiYWRtaW4iLCJyb2xlIjoiYWRtaW4ifQ==
  • If the application has a role-checking middleware, it reads the cookie, sees role=admin, and grants access to the admin panel. If the vulnerability is in a specific endpoint (e.g., user profile update that doesn't re-check role), the attacker may first trigger a request that writes the poisoned role to the server session store.

Step 4 — Post-Exploitation Impact:

  • Data Access: The attacker reads administrative dashboards, user lists, database credentials (.env files, config pages), and sensitive business data.
  • Configuration Manipulation: The attacker modifies application settings, disables security controls (rate limiting, WAF, 2FA on admin accounts), or creates new admin accounts for persistence.
  • Lateral Movement: If the application stores cloud credentials (AWS keys, API tokens), the attacker exfiltrates them to pivot into the cloud environment.
  • Ransom/Data Exfiltration: The attacker dumps the entire database and demands ransom, or sells the data.

Impact Assessment

Business Impact:

  • Confidentiality (High): Full administrative access exposes all data processed by the application — user PII, financial records, proprietary business logic — to unauthorized disclosure.
  • Integrity (High): An admin can alter application code (if file upload is allowed), modify database records, change pricing, or inject backdoors that persist after the original flaw is patched.
  • Availability (High): Admin access permits deletion of critical data, service disruption, or complete site takedown.

Affected Systems:

  • The specific product is unidentified in public CVE data, meaning the blast radius is undefined but the flaw is generic (any web app with cookie-based role assignment). Affected systems are likely legacy or custom-built web applications.

Blast Radius:

  • CVSS 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H): The attack is network-exploitable, requires no user interaction, and demands only low privileges (guest). The scope is U (Unchanged), meaning the compromise is contained to the application component, but the entire application database becomes accessible.

Severity Rationale: Even though the attacker needs a guest account, the low complexity of cookie manipulation combined with complete loss of confidentiality, integrity, and availability justifies the near-critical score.

Detection Guidance

Sigma Rule

title: CVE-2024-22186 - Cookie Poisoning Privilege Escalation Attempt
id: 5f3a8c2e-9b1d-4e7a-8c3f-2a6b9d1e4f57
status: experimental
description: Detects HTTP requests with modified cookie values indicating privilege escalation from guest to admin role, characteristic of CVE-2024-22186 exploitation.
author: Valters IT Threat Intelligence
date: 2024/06/01
logsource:
  category: webserver
  product: generic
detection:
  selection_guest_to_admin:
    cs-method: 'GET'
    cs-cookie|contains|all:
      - 'guest'
      - 'admin'
    cs-cookie|re: 'role=admin|is_admin=1|privilege=[2-9]|"role"\s*:\s*"admin'
  selection_admin_path:
    cs-uri-path|contains:
      - '/admin'
      - '/administrator'
      - '/manage'
  condition: selection_guest_to_admin and selection_admin_path
  timeframe: 15m
fields:
  - client.ip
  - cs-uri-path
  - cs-cookie
falsepositives:
  - Legitimate admin users accessing admin paths (filter by username/source IP if needed)
  - Applications that legitimately send full cookie state with multiple roles
level: high

YARA Rule

rule CVE_2024_22186_cookie_poisoning
{
    meta:
        author = "Valters IT Threat Intelligence"
        description = "Detects cookie poisoning payloads attempting privilege escalation to admin role"
        cve = "CVE-2024-22186"
        date = "2024-06-01"
        severity = "high"
    strings:
        $json_admin = "{\"role\":\"admin\"}" ascii wide nocase
        $json_admin2 = "\"is_admin\":true" ascii wide nocase
        $base64_guest = "Z3Vlc3Q6YWRtaW4=" ascii wide     // base64("guest:admin")
        $base64_admin = "YWRtaW46YWRtaW4=" ascii wide     // base64("admin:admin")
        $role_eq = "role=administrator" ascii wide nocase
        $priv_high = "privilege=9" ascii wide nocase
        $pipe_priv = "guest|admin" ascii wide nocase
    condition:
        uint16(0) == 0x3c3c or   // "<<"
        any of them
}

Suricata IDS Rule

alert http any any -> any any (msg:"CVE-2024-22186 - Cookie Poisoning Privilege Escalation Attempt"; flow:established,to_server; http.cookie; content:"role=admin"; nocase; pcre:"/role=admin|is_admin=1|privilege=\d{2,}/Ui"; http.uri; content:"/admin"; nocase; sid:202422186; rev:1; metadata:created_at 2024_06_01, cve CVE_2024-22186, severity high;)

Elastic Detection

sequence by source.ip with maxspan=15m
  [ network where event.action == "connection_established" and destination.port in (443, 80) ]
  [ http where 
    http.request.cookie contains "guest" and
    (http.request.cookie contains "admin" or http.request.cookie matches "role=admin" or http.request.cookie matches "\"role\":\"admin\"") and
    http.request.uri contains "/admin"
  ]

Splunk SPL Query

index=web sourcetype=access_combined_wcookie 
| eval cookie_lower=lower(cookie) 
| where cookie_lower LIKE "%role%admin%" OR cookie_lower LIKE "%is_admin%1%" OR cookie_lower LIKE "%guest%admin%" OR cookie_lower LIKE "%privilege%9%"
| where uri_path LIKE "%/admin%" OR uri_path LIKE "%/administrator%" OR uri_path LIKE "%/manage%"
| fillnull value="unknown"
| stats count by src_ip, uri_path, cookie, status, user
| sort - count
| eval sus_score = if(count > 3, "HIGH", "MEDIUM")
| table _time, src_ip, uri_path, cookie, status, user, sus_score

Wazuh OSSEC Rule

<group name="web_application">
  <rule id="100221" level="15">
    <decoded_as>web</decoded_as>
    <description>CVE-2024-22186 - Cookie Poisoning Privilege Escalation Attempt</description>
    <field name="url">/admin|/administrator|/manage</field>
    <field name="cookie">role=admin|is_admin=1|guest.*admin|"role":"admin"</field>
    <group>attack,privilege_escalation,cve,cve_2024_22186,</group>
    <mitre>
      <id>T1068</id>
    </mitre>
  </rule>
</group>

Mitigation & Patch Guidance

Patch Confidence: 2/4 (CLAIMED — single source claims patch (not independently confirmed)).

The vendor has not issued a confirmed advisory, and only a single, unverified source claims a patch exists. Exercise caution — deploying a patch from an unverified source without testing may introduce further vulnerabilities.

  1. Immediate Mitigations (Detect & Contain):

    • WAF/Reverse Proxy Rule: Block or flag any request where the session cookie contains both guest and admin role indicators, or where the role field differs from the authenticated user's role.
    • Input Validation: Deploy a middleware (via Nginx set_by_lua, Apache mod_rewrite, or app-level filter) that rejects any cookie value containing privilege escalation patterns (e.g., role=admin when the session is guest).
    • Session Invalidation: Force-expire all guest sessions by changing the session key namespace or re-issuing cookies with new random values.
    • Network Segmentation: Place the application behind a reverse proxy that strips suspicious Cookie headers before they reach the backend.
    • Monitor: Enable high-fidelity logging of all requests touching /admin paths from guest sessions.
  2. Patch/Upgrade Path:

    • Since the product is unidentified, immediately check the application's source code or vendor portal for an advisory referencing CVE-2024-22186. If using a commercial product, contact the vendor's security team directly.
    • Do not install any third-party patch from an untrusted source. Wait for an official vendor advisory or confirm the patch's validity against vendor infrastructure.
    • If this is an open-source / in-house application, fix the root cause directly: stop storing privilege data in the cookie. Use a random, unguessable session ID in the cookie and store the user's role server-side in the session store. Verify the role at every authorization check.
  3. Long-Term Hardening:

    • Secure Session Management: Implement HttpOnly, Secure, SameSite=Strict attributes on all cookies. Use a cryptographically signed session ID (HMAC with a server-side secret).
    • Authorization Auditing: Replace any client-side role checks with server-side middleware that validates privileges against a database or central auth source.
    • Penetration Testing: Conduct an in-depth test focused on OWASP top-10 sections A01 (Broken Access Control) and A02 (Cryptographic Failures) to identify other instances of client-side trust.
    • CVE Tracking: Subscribe to vendor security advisories (or NVD email alerts for CVE-2024-22186) to receive updates once the vendor publishes a confirmed patch and version details.

References

  1. NVD Entry: https://nvd.nist.gov/vuln/detail/CVE-2024-22186 — Official CVE record with description and CVSS data.
  2. FIRST EPSS: https://www.first.org/epss/ — Not yet scored; monitor for post-publication EPSS score to prioritize patching.
  3. MITRE ATT&CK Technique: https://attack.mitre.org/techniques/T1068/ — Exploitation for Privilege Escalation, the parent tactic for this CVE.
  4. OWASP Session Management Cheat Sheet: https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html — Reference for fixing insecure session cookie handling.
  5. CISA KEV: https://www.cisa.gov/known-exploited-vulnerabilities-catalog — No entry as of this report; re-check periodically.

Threat Actor Activity: No known campaigns or in-the-wild exploitation have been reported for CVE-2024-22186 at the time of writing. The lack of vendor disclosure and the generic nature of the flaw mean this may sit unpatched in numerous applications for an extended period, making it a prime candidate for opportunistic exploitation by commodity botnets (e.g., Gafgyt, Mirai variants) that scan for cookie-based auth flaws.

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"login" http.server:"nginx" country:US
http.html:"guest" "administrator" http.title:"admin"
http.cookie:"poison" http.title:"login"
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-22186/ · 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.