{
    "document": {
        "category": "csaf_base",
        "csaf_version": "2.0",
        "distribution": {
            "tlp": {
                "label": "WHITE"
            }
        },
        "lang": "en",
        "notes": [
            {
                "category": "legal_disclaimer",
                "text": "The Netherlands Cyber Security Center (henceforth: NCSC-NL) maintains this portal to enhance access to its information and vulnerabilities. The use of this information is subject to the following terms and conditions:\n\nThe vulnerabilities disclosed in this portal are gathered by NCSC-NL from a variety of open sources, which the user can retrieve from other platforms. NCSC-NL makes every reasonable effort to ensure that the content of this portal is kept up to date, and that it is accurate and complete. Nevertheless, NCSC-NL cannot entirely rule out the possibility of errors, and therefore cannot give any warranty in respect of its completeness, accuracy or real-time keeping up-to-date. NCSC-NL does not control nor guarantee the accuracy, relevance, timeliness or completeness of information obtained from these external sources. The vulnerabilities disclosed in this portal are intended solely for the convenience of professional parties to take appropriate measures to manage the risks posed to the cybersecurity. No rights can be derived from the information provided therein.\n\nNCSC-NL and the Kingdom of the Netherlands assume no legal liability or responsibility for any damage resulting from either the use or inability of use of the vulnerabilities disclosed in this portal. This includes damage resulting from the inaccuracy of incompleteness of the information contained in it.\nThe information on this page is subject to Dutch law. All disputes related to or arising from the use of this portal regarding the disclosure of vulnerabilities will be submitted to the competent court in The Hague. This choice of means also applies to the court in summary proceedings."
            }
        ],
        "publisher": {
            "category": "coordinator",
            "contact_details": "cert@ncsc.nl",
            "name": "National Cyber Security Centre",
            "namespace": "https://www.ncsc.nl/"
        },
        "title": "CVE-2026-34222",
        "tracking": {
            "current_release_date": "2026-04-03T06:40:40.660021Z",
            "generator": {
                "date": "2026-02-17T15:00:00Z",
                "engine": {
                    "name": "V.E.L.M.A",
                    "version": "1.7"
                }
            },
            "id": "CVE-2026-34222",
            "initial_release_date": "2026-04-01T17:39:13.726575Z",
            "revision_history": [
                {
                    "date": "2026-04-01T17:39:13.726575Z",
                    "number": "1",
                    "summary": "CVE created.| Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products created (1).| References created (2).| CWES updated (1)."
                },
                {
                    "date": "2026-04-01T17:39:16.845879Z",
                    "number": "2",
                    "summary": "NCSC Score created."
                },
                {
                    "date": "2026-04-01T21:24:50.728344Z",
                    "number": "3",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (4).| CWES updated (1)."
                },
                {
                    "date": "2026-04-01T21:24:54.352333Z",
                    "number": "4",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-04-01T23:05:08.800910Z",
                    "number": "5",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (2).| CWES updated (1)."
                },
                {
                    "date": "2026-04-01T23:05:10.797902Z",
                    "number": "6",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-04-02T14:59:35.779855Z",
                    "number": "7",
                    "summary": "Source connected.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-04-02T14:59:45.648590Z",
                    "number": "8",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-04-03T06:25:16.492633Z",
                    "number": "9",
                    "summary": "References created (1)."
                },
                {
                    "date": "2026-04-03T06:38:38.919639Z",
                    "number": "10",
                    "summary": "References created (1)."
                }
            ],
            "status": "interim",
            "version": "10"
        }
    },
    "product_tree": {
        "branches": [
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<0.8.11",
                                "product": {
                                    "name": "vers:unknown/<0.8.11",
                                    "product_id": "CSAFPID-5980799"
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "open-webui"
                    }
                ],
                "category": "vendor",
                "name": "open-webui"
            }
        ]
    },
    "vulnerabilities": [
        {
            "cve": "CVE-2026-34222",
            "notes": [
                {
                    "category": "description",
                    "text": "Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to version 0.8.11, there is a broken access control vulnerability in tool values. This issue has been patched in version 0.8.11.",
                    "title": "cveprojectv5 - https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/34xxx/CVE-2026-34222.json"
                },
                {
                    "category": "description",
                    "text": "# Summary\n\n## Broken Access Control in Tool Valves\n\nOpen WebUI supports function calling through \"Tools\". Function calling allows an LLM to reliably connect to external tools and interact with external APIs. Exemplary use-cases include connecting to an internal knowledge base, retrieving emails from an exchange server, or retrieving order data from a shop backend.\n\nThese interactions often require the LLM to authenticate against backend services using API keys specifically created for a technical (Open WebUI) user.\n\nTo simplify configuration and secret handling, Open WebUI implements \"Valves\" and \"UserValves\" that allow users and administrators to input dynamic details like API keys or configuration options.\n\nValves have the following distinction:\n\n- **Valves:** Configurable by admins only.\n- **UserValves:** Configurable by any user.\n\nThe Tool Valves endpoint does not properly restrict read access to the valve. This allows a low privileged user to access all data contained within the valve. In the worst case, this gives a low privileged \"Member\" user access to sensitive Tool data, such as API keys for third-party systems.\n\n---\n\n# Details\n\n## 1) Broken Access Control in Tool Valves\n\nThe following steps can be performed to reproduce the vulnerability.\n\n**1.** An administrator creates an Open WebUI Tool with a configured Valve.\n\n<img width=\"1038\" height=\"597\" alt=\"image\" src=\"https://github.com/user-attachments/assets/f79bdde9-18fa-49e4-a6c3-5077731f0815\" />\n\n**2.** The administrator configures the API key within the Tool Valve.\n\n<img width=\"1039\" height=\"446\" alt=\"image\" src=\"https://github.com/user-attachments/assets/d88d06b9-fc21-45e5-8142-d9f874601f87\" />\n\n**3.** A user with at least \"Member\" privileges logs into Open WebUI.\n\nThe following screenshot shows the user overview of the test instance:\n\n<img width=\"908\" height=\"354\" alt=\"image\" src=\"https://github.com/user-attachments/assets/40025151-418d-4912-8400-1e1a6e5cd4e4\" />\n\nThe following screenshot illustrates that the \"lowpriv\" user doesn't have access to the tool:\n\n<img width=\"815\" height=\"433\" alt=\"image\" src=\"https://github.com/user-attachments/assets/ec06b07f-9735-4728-9dce-d97d721051b8\" />\n\n**4.** The \"lowpriv\" user uses their Authorization token to retrieve the API key from the Tool Valve.\n\nIn order to do so, the attacker needs to know the Tool ID. However, as this ID is always the same for imported tools, and the tool IDs are concatenated from the tool name, guessing tool IDs is trivial.\n\n<img width=\"754\" height=\"208\" alt=\"image\" src=\"https://github.com/user-attachments/assets/61c80cac-25c8-4730-8156-90869801389f\" />\n\nAs seen in the following code snippet, the vulnerability is present because the Tool Valves route does not check if the requesting user has administrative permissions (Line 515).\n\n[Source: `backend/open_webui/routers/tools.py` L513–L531](https://github.com/open-webui/open-webui/blob/2b26355002064228e9b671339f8f3fb9d1fafa73/backend/open_webui/routers/tools.py#L513-L531)\n\n---\n\n# PoC\n\nYou can find the detailed PoC steps in the [Details](#details) section.\n\nTo execute the exploit:\n\n1. Login as a verified user and copy the authorization token.\n2. Access the configured valve of any existing tool with the following request (please mind the placeholders):\n\n```http\nGET /api/v1/tools/id/<tool_id>/valves HTTP/1.1\nHost: <your_test_host>\nAuthorization: Bearer <authorization_token_from_step_1>\n```\n\n---\n\n# Impact\n\nThis information disclosure vulnerability allows low privileged users to access sensitive values stored in Tool Valves. Anyone using Open WebUI Tools with a configured Valve is affected. In the worst case, exploitation allows an attacker to access third-party systems within the context of the configured Open WebUI technical user.\n\n---\n\n# Additional Remarks\n\nAdditional remarks regarding the CVSS Vector String:\n\n| Component | Value | Rationale |\n|-----------|-------|-----------|\n| AC | L | Due to the requirement of a \"Member\" account |\n| C | H | Sensitive data, such as API Keys for backend systems, is disclosed |\n| S | C | Exploitation of this vulnerability grants access to third-party systems |\n\n---\n\n> **AI report transparency:** AI was used for refinement of this advisory text.",
                    "title": "github - https://api.github.com/advisories/GHSA-7429-hxcv-268m"
                },
                {
                    "category": "description",
                    "text": "Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to version 0.8.11, there is a broken access control vulnerability in tool values. This issue has been patched in version 0.8.11.",
                    "title": "nvd - https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-34222"
                },
                {
                    "category": "other",
                    "text": "0.0001",
                    "title": "EPSS"
                },
                {
                    "category": "other",
                    "text": "4.0",
                    "title": "NCSC Score"
                },
                {
                    "category": "other",
                    "text": "There is cwe data available from source Nvd, Is related to (a version of) an uncommon product",
                    "title": "NCSC Score top decreasing factors"
                }
            ],
            "product_status": {
                "known_affected": [
                    "CSAFPID-5980799"
                ]
            },
            "references": [
                {
                    "category": "external",
                    "summary": "Source - cveprojectv5",
                    "url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/34xxx/CVE-2026-34222.json"
                },
                {
                    "category": "external",
                    "summary": "Source - github",
                    "url": "https://api.github.com/advisories/GHSA-7429-hxcv-268m"
                },
                {
                    "category": "external",
                    "summary": "Source - nvd",
                    "url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-34222"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; nvd",
                    "url": "https://github.com/open-webui/open-webui/security/advisories/GHSA-7429-hxcv-268m"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; nvd",
                    "url": "https://github.com/open-webui/open-webui/releases/tag/v0.8.11"
                },
                {
                    "category": "external",
                    "summary": "Reference - github",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-34222"
                },
                {
                    "category": "external",
                    "summary": "Reference - github",
                    "url": "https://github.com/advisories/GHSA-7429-hxcv-268m"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; nvd",
                    "url": "http://seclists.org/fulldisclosure/2026/Apr/4"
                }
            ],
            "scores": [
                {
                    "cvss_v3": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N",
                        "baseScore": 7.7,
                        "baseSeverity": "HIGH"
                    },
                    "products": [
                        "CSAFPID-5980799"
                    ]
                }
            ],
            "title": "CVE-2026-34222"
        }
    ]
}