{"id":"CVE-2026-108746","summary":"Vearch 3.5.2 through 3.5.9 Incorrect Authorization via Role.HasPermissionForResources","details":"Vearch 3.5.2 through 3.5.9 contains an incorrect authorization vulnerability in Role.HasPermissionForResources that ignores stored ReadOnly or None privilege levels for resources listed in a role. Authenticated non-root users can upsert and delete documents with read-only access, or call PUT /roles to grant their role WriteRead privileges, escalating toward cluster administrator access.","modified":"2026-10-12T02:32:24.964081913Z","published":"2026-10-11T12:19:48.014Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108746.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-863"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108746.json"},{"type":"PACKAGE","url":"https://github.com/vearch/vearch"},{"type":"ARTICLE","url":"https://github.com/vearch/vearch/blob/bae78b189ff0ab1d8ac659c6acaeeb5f630db33f/internal/entity/user.go#L300-L313"},{"type":"ARTICLE","url":"https://github.com/vearch/vearch/blob/bae78b189ff0ab1d8ac659c6acaeeb5f630db33f/internal/master/services/role_service.go#L180-L229"},{"type":"ADVISORY","url":"https://hackmd.io/@haind/vearch-rbac-privilege-level-ignored-authz-bypass"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-108746"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/vearch-3.5.2-through-3.5.9-incorrect-authorization-via-role-haspermissionforresources"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/vearch/vearch","events":[{"introduced":"f549c9e7a4799c612a74fa8932611f29f72410bf"},{"last_affected":"2de82d191fe3d775ab5b14855905de6c1d21cbfc"}],"database_specific":{"extracted_events":[{"introduced":"3.5.2"},{"last_affected":"3.5.9"}],"source":"AFFECTED_FIELD"}}],"versions":["v3.5.9","v3.5.8","v3.5.7","v3.5.6","v3.5.5","v3.5.4","v3.5.3","v3.5.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-108746.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}