{"id":"CVE-2026-77240","state":"PUBLISHED","title":"WACRM: Database-layer authorization bypasses","description":"WACRM is a self-hostable CRM template for WhatsApp. In version 0.7.0 and earlier, the profiles_update row-level security policy in supabase/migrations/017_account_sharing.sql permits authenticated users to modify their own account_role and account_id, allowing a viewer to self-promote or move into another tenant and then access or modify tenant resources. Separately, match_ai_knowledge_fts and match_ai_knowledge_semantic in supabase/migrations/030_ai_knowledge.sql run as SECURITY DEFINER, accept a caller-controlled p_account_id, and omit an is_account_member check, allowing an authenticated non-member to read another tenant's knowledge-base chunks. This vulnerability is fixed with commit e01f7ed37184f972ace8fb2da5c3e37e56a6050f.","publishedAt":"2026-09-18T16:43:42.155Z","updatedAt":"2026-09-23T19:04:56.356Z","severity":{"score":9.9,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["ArnasDon wacrm"],"affected":[{"vendor":"ArnasDon","product":"wacrm","versions":[{"version":"<= 0.7.0","status":"affected"}]}],"references":["https://github.com/ArnasDon/wacrm/security/advisories/GHSA-fg5p-2qc3-jmxr","https://github.com/ArnasDon/wacrm/pull/350","https://github.com/ArnasDon/wacrm/commit/e01f7ed37184f972ace8fb2da5c3e37e56a6050f"],"weaknesses":["CWE-639"],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/77xxx/CVE-2026-77240.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-77240","state":"PUBLISHED","datePublished":"2026-09-18T16:43:42.155Z","dateUpdated":"2026-09-23T19:04:56.356Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-08-20T19:02:23.415Z"},"containers":{"cna":{"title":"WACRM: Database-layer authorization bypasses","descriptions":[{"lang":"en","value":"WACRM is a self-hostable CRM template for WhatsApp. In version 0.7.0 and earlier, the profiles_update row-level security policy in supabase/migrations/017_account_sharing.sql permits authenticated users to modify their own account_role and account_id, allowing a viewer to self-promote or move into another tenant and then access or modify tenant resources. Separately, match_ai_knowledge_fts and match_ai_knowledge_semantic in supabase/migrations/030_ai_knowledge.sql run as SECURITY DEFINER, accept a caller-controlled p_account_id, and omit an is_account_member check, allowing an authenticated non-member to read another tenant's knowledge-base chunks. This vulnerability is fixed with commit e01f7ed37184f972ace8fb2da5c3e37e56a6050f."}],"affected":[{"vendor":"ArnasDon","product":"wacrm","versions":[{"version":"<= 0.7.0","status":"affected"}]}],"references":[{"url":"https://github.com/ArnasDon/wacrm/security/advisories/GHSA-fg5p-2qc3-jmxr","name":"https://github.com/ArnasDon/wacrm/security/advisories/GHSA-fg5p-2qc3-jmxr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ArnasDon/wacrm/pull/350","name":"https://github.com/ArnasDon/wacrm/pull/350","tags":["x_refsource_MISC"]},{"url":"https://github.com/ArnasDon/wacrm/commit/e01f7ed37184f972ace8fb2da5c3e37e56a6050f","name":"https://github.com/ArnasDon/wacrm/commit/e01f7ed37184f972ace8fb2da5c3e37e56a6050f","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-639","lang":"en","description":"CWE-639: Authorization Bypass Through User-Controlled Key","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-18T16:43:42.155Z"},"source":{"advisory":"GHSA-fg5p-2qc3-jmxr","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/ArnasDon/wacrm/security/advisories/GHSA-fg5p-2qc3-jmxr","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-23T19:04:50.534844Z","id":"CVE-2026-77240","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-23T19:04:56.356Z"}}]}}}