CVE Professor
/
All CVEs
CVE-2026-137181

CVE-2026-137181 — Openfga Helm Charts (all Versions) — CWE-863

MEDIUM CVSS 7.1 ⚡ EPSS 0.5% NVD

In OpenFGA, the Check or BatchCheck APIs, as well as ListObjects or StreamedListObjects with `--listObjects-pipeline-enabled=false`, could return incorrect results. ### Preconditions This applies if all of the following are true: 1. An application uses Check, BatchCheck, or ListObjects/StreamedListObjects with `--listObjects-pipeline-enabled=false` to enforce access, and 2. The authorization model contains a relation that (directly or through other relations) uses `and`, `or` or `but not`, and 3. One of the following occurs: - A request reaches its server-side deadline (`--request-timeout`, or `--listObjects-deadline` for ListObjects) before evaluation finishes. That request could return an incorrect result. - Check query caching is enabled (`--check-query-cache-enabled`) and a Check is cancelled before it finishes due to a client cancellation, a deadline, or OpenFGA cancelling a branch once another branch has settled the result. The check could cache an incorrect result that later requests reuse. ### Fix Upgrade to OpenFGA v1.23.0 or greater. ### Acknowledgements OpenFGA would like to thank @andrewloux for the discovery, responsible disclosure, and remediation.

In OpenFGA, the Check or BatchCheck APIs, as well as ListObjects or StreamedListObjects with `--listObjects-pipeline-enabled=false`, could return incorrect results. ### Preconditions This applies if all of the following are true: 1. An application uses Check, BatchCheck, or ListObjects/StreamedListObjects with `--listObjects-pipeline-enabled=false` to enforce access, and 2. The authorization model contains a relation that (directly or through other relations) uses `and`, `or` or `but not`, and 3. One of the following occurs: - A request reaches its server-side deadline (`--request-timeout`, or `--listObjects-deadline` for ListObjects) before evaluation finishes. That request could return an incorrect result. - Check query caching is enabled (`--check-query-cache-enabled`) and a Check is cancelled before it finishes due to a client cancellation, a deadline, or OpenFGA cancelling a branch once another branch has settled the result. The check could cache an incorrect result that later requests reuse. ### Fix Upgrade to OpenFGA v1.23.0 or greater. ### Acknowledgements OpenFGA would like to thank @andrewloux for the discovery, responsible disclosure, and remediation.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack Vector Network AV:N
Attack Complexity High AC:H
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity High I:H
Availability None A:N
EPSS — Exploit Prediction Scoring System
0.5%
30-day probability
In the 47. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CWE‑863 – Incorrect Authorization
OpenFGA is a policy‑driven authorization engine that evaluates authorization models (collections of relations) to decide whether a subject may perform an action on an object. In versions 1.10.3 through 1.23.0 the engine contains a logic flaw that can return incorrect “allow” or “deny” results under two specific circumstances:

1. Deadline‑premature cancellation
The server is configured with a server‑side deadline* (the maximum time the engine may spend evaluating a request).
* When a model contains relations that use logical operators (and, or, but not and), the evaluation can become complex and may exceed the deadline.
If the deadline expires before the evaluation finishes, the engine may return an intermediate result* that is not the final, correct decision.
* Because the request is still considered “successful” from the client’s perspective, the client receives an incorrect authorization verdict.

2. Cache poisoning via early cancellation
* When the flag --check-query-cache-enabled is turned on, the engine caches the result of a Check or BatchCheck request.
If the client cancels the request, the deadline expires, or another branch of the evaluation settles early, the unfinished* (and thus incorrect) result can be cached.
* Subsequent requests that hit the same cache key will receive the stale, incorrect verdict, effectively “poisoning” the cache.

Because the flaw is purely an authorization logic error (no authentication bypass or code execution), the impact is limited to confidentiality, integrity, and privilege escalation. The CVSS vector reflects this:

  • AV:N (network‑only) – the attack can be performed over the network.

  • AC:L (low) – minimal effort.

  • AT:P (physical) – not required.

  • PR:L (low) – the attacker only needs a low‑privilege account or even no account if the endpoint is public.

  • UI:N (no user interaction) – automated.

  • VI:H, SC:H, SI:H – high impact on integrity, confidentiality, and privilege escalation.

  • VA:N, SA:N – no availability or session‑related impact.

  • ⚡ Attack Chain

    NOTE: The exact URI paths (/v1/check, /v1/batchCheck, etc.) are not specified in the CVE text. The following example uses the most common OpenFGA endpoints as an illustrative representation of the attack class.

    1. Discovery & Reconnaissance

    StepTechniqueWhat you learn
    1.1Network scanning (e.g., nmap -p 8080,9090 <target>)Identify OpenFGA service listening on a known port.
    1.2Banner grabbing (curl -I http://<target>:8080/health)Verify the presence of OpenFGA and obtain the version from the X-OpenFGA-Version header or /health JSON.
    1.3API enumeration (curl http://<target>:8080/v1/health)Confirm that the service exposes the /v1/check endpoint and that the version is ≤ 1.23.0.
    If the service is behind a reverse proxy, you may need to discover the upstream path by inspecting the proxy configuration or by trial‑and‑error.

    2. Exploitation

    2.1 Crafting a malicious Check request

    The attacker sends a Check request that references a model containing a complex relation (e.g., viewer AND (editor OR admin)). The request is deliberately timed to exceed the server‑side deadline.

    # Illustrative endpoint: /v1/check
    curl -X POST http://<target>:8080/v1/check \
         -H "Content-Type: application/json" \
         -H "X-OpenFGA-Deadline: 10ms" \   # <‑‑ very short deadline
         -d '{
               "model_id": "complex_policy",
               "user": "alice",
               "relation": "viewer",
               "object": "document:123"
             }'

    What happens?

  • The engine starts evaluating viewer AND (editor OR admin).

  • The deadline (10 ms) expires before the evaluation completes.

  • The engine returns the intermediate result (often “allow” if the first branch succeeded) instead of the correct “deny” (or vice‑versa).

  • The client receives a 200 OK with an incorrect allowed: true/false.
  • 2.2 Poisoning the cache

    If the server is running with --check-query-cache-enabled, the attacker can force the cache to store the incorrect result:

    # Same request, but with a cache‑enabled flag (if exposed via header)
    curl -X POST http://<target>:8080/v1/check \
         -H "Content-Type: application/json" \
         -H "X-OpenFGA-Deadline: 10ms" \
         -H "X-OpenFGA-Cache-Enabled: true" \
         -d '{
               "model_id": "complex_policy",
               "user": "alice",
               "relation": "viewer",
               "object": "document:123"
             }'

    After the deadline expires, the engine caches the incorrect verdict.
    Subsequent legitimate requests for the same (model_id, user, relation, object) tuple will hit the cache and receive the poisoned result, granting unauthorized access.

    2.3 Exploiting ListObjects / StreamedListObjects

    When --listObjects-pipeline-enabled=false, the same deadline‑premature logic applies to ListObjects and StreamedListObjects. An attacker can request a list of objects that the user should not see; the engine may return a truncated or incorrect list, potentially leaking sensitive object identifiers.

    curl -X POST http://<target>:8080/v1/listObjects \
         -H "Content-Type: application/json" \
         -H "X-OpenFGA-Deadline: 5ms" \
         -d '{
               "model_id": "complex_policy",
               "user": "alice",
               "relation": "viewer",
               "object_type": "document"
             }'

    3. Post‑Exploitation

    Once the attacker obtains an incorrect “allow” verdict:

    1. Privilege Escalation – The attacker can perform actions reserved for higher‑privileged roles (e.g., edit or delete documents, access admin dashboards).
    2. Data Exfiltration – By repeatedly listing objects or checking permissions, the attacker can enumerate a large set of resources that should be hidden.
    3. Persistence – The attacker may create new policies or modify existing ones (if the API permits) to maintain unauthorized access.

    Because the flaw is purely an authorization logic bug, there is no direct code execution. However, the ability to bypass authorization can be leveraged to compromise the entire application’s data integrity and confidentiality.


    🌍 Real World Impact

    ImpactCVSS ComponentExplanation
    ConfidentialityVI:HUnauthorized users can read data they should not see.
    IntegritySC:HAttackers can modify or delete data, or create policies that grant themselves elevated privileges.
    Privilege EscalationSI:HUsers can gain higher‑level permissions than intended.
    AvailabilityVA:NNo direct impact.
    SessionSA:NNo impact.

    Practical consequences:

  • Data leakage: Sensitive documents, user profiles, or configuration files become accessible to low‑privilege accounts or even unauthenticated users if the endpoint is public.
  • Policy tampering: Attackers can create or modify policies that grant themselves or other malicious actors broad access.
  • Audit trail corruption: Incorrect authorization decisions may lead to misleading audit logs, making forensic analysis difficult.

  • 🛡️ Remediation & Mitigation

    1. Patch

    Affected VersionsFixed In
    1.10.3 – 1.23.0 (inclusive)1.23.0+

    Action: Upgrade OpenFGA to ≥ 1.23.0. The patch removes the premature deadline handling and ensures that cache entries are only written after a complete evaluation.

    2. Workarounds (if upgrade is not immediately possible)

    SettingEffectHow to Apply
    --check-query-cache-enabled=falseDisables caching of Check results, preventing cache poisoning.Edit the OpenFGA configuration file or command‑line flags.
    --listObjects-pipeline-enabled=trueRe‑enables the pipeline that correctly handles complex relations.Set the flag to true in the config.
    Increase server‑side deadlineGives the engine more time to finish evaluation, reducing premature returns.Adjust the deadline parameter (e.g., X-OpenFGA-Deadline: 500ms).
    Disable public Check endpointsPrevents unauthenticated users from triggering the flaw.Configure the reverse proxy or OpenFGA to require authentication for /v1/check and related endpoints.

    3. Detection

    Log PatternIndicator of Compromise (IoC)
    Check request for model_id=complex_policy, user=alice, relation=viewer, object=document:123Normal request
    Check request timed out after 10msPotential premature deadline
    Cache miss for key=... followed by Cache hit with incorrect resultCache poisoning
    ListObjects returned 0 objects for user=alice when the user should see manyIncorrect list result

    WAF / ModSecurity rule (illustrative)

    SecRule REQUEST_HEADERS:X-OpenFGA-Deadline "@rx ^\d+ms$" \
        "id:1001,phase:2,deny,status:400,msg:'OpenFGA deadline too short'"

    This rule blocks requests that set an unrealistically short deadline (e.g., < 50 ms), which is a common trigger for the vulnerability.

    4. Monitoring

  • Audit logs: Look for repeated Check or ListObjects requests with deadline headers and allowed: true that later fail when the action is attempted.
  • Cache metrics: Monitor cache hit/miss ratios; a sudden spike in hits with low latency may indicate poisoned entries.

  • ⚠️ Urgency

  • CVSS Score: 7.1 (High) – indicates significant risk.
  • CISA KEV: No – not yet a known exploit in the wild, but the logic flaw is exploitable with minimal effort.
  • Exploit Complexity: Low – no special skills beyond crafting a JSON request.
  • Patch Availability: 1.23.0 is already released; no delay in applying the fix.
Recommendation: High priority. Apply the patch or the recommended workarounds as soon as possible. If the service is exposed to the internet, consider temporarily blocking the /v1/check and /v1/listObjects endpoints until the upgrade is complete.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="openfga helm_charts"
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-137181
Technical reference / advisory repository for CVE-2026-137181
Technical reference / advisory repository for CVE-2026-137181
CVSS Score
7.1 / 10 · CVSS MEDIUM
Weakness Types (CWE)
Affected Products (2)
openfga:helm_charts (all versions) openfga:openfga (all versions)
References & Advisories (3)
Related CVEs
10.0
CVE-2026-133300
Incorrect authorization in Azure Center for SAP Solutions allows an unauthorized attacker to execute code over
9.8
CVE-2026-139934
Microsoft Azure API Management contains an incorrect authorization vulnerability that allows an unauthenticate
9.4
CVE-2026-115523
Improper authorization in the legacy push-publishing endpoint and environment management actions, combined wit
9.4
CVE-2026-68548
## Summary Algernon's URL-prefix authorization gate matches its protected prefixes (`/admin`, `/repo`, `/data`
8.8
CVE-2026-145077
OpenClaw 2026.9.2 before 2026.10.33 and 2026.11.1 before 2026.11.4 contains an authorization bypass in delegat
8.7
CVE-2026-144607
Tencent WeKnora 0.3.2 through 0.9.1 contains an incorrect authorization vulnerability that allows any self-reg
8.7
CVE-2026-115992
Improper authorization in user role management (the UserAjax.updateUserRoles DWR method used by the Users tool