Skip to main content

WeGIA CVE-2026-69187

| EUVDEUVD-2026-128079 HIGH
Incorrect Privilege Assignment (CWE-266)
2026-11-17 security-advisories@github.com
8.8
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege employee
  2. Delivery
    Obtain valid CSRF token from own session
  3. Exploit
    POST FuncionarioControle::adicionarPermissao to control.php
  4. Execution
    Middleware checks only resource row, not id_acao
  5. Persist
    Self-grant action-7 permission on sensitive resource
  6. Impact
    Access admin functions, read/modify protected data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Privilege assignment review
Exploitation Conditions

Exploitation requires an authenticated WeGIA employee session whose role holds at least one permission row for resource 11 or 91 - even a read-only id_acao=1 entry suffices - plus a valid CSRF token obtained from that same authenticated session. The flaw is reachable only through web/controle/control.php dispatching to FuncionarioControle, in versions prior to 3.9.1; the root cause is that MiddlewareDAO::verificarPermissao() checks only for the existence of a resource row and never compares the stored id_acao or authorizes the requested method. Limiting factors: the attacker must already be an authenticated insider with some permission on resources 11/91, cannot exploit this unauthenticated or from the outside, and cannot automate it against arbitrary targets (SSVC Automatable:no). No special non-default configuration is otherwise needed.

Impact

This is a genuine, well-corroborated authorization flaw but not an emergency-tier threat. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N) and the 8.8 score are consistent with the GHSA advisory and source evidence: a network-reachable, low-complexity operation requiring only a low-privileged authenticated session (PR:L) and no user interaction, yielding total impact (C:H/I:H/A:H) because an attacker can self-grant administrative action levels. The signals point one consistent direction but at moderate urgency: SSVC reports Exploitation:none and Automatable:no (the attacker must already hold an authenticated employee session with a resource-11 or -91 permission row, which cannot be scripted against arbitrary targets at scale), the vuln.today decision label is this_week rather than act_now/emergency, and there is no CISA KEV listing and no EPSS score in the input. A detailed proof-of-concept request is published in the GHSA advisory, which raises practical exploitability for anyone who already has a foothold, but SSVC Automatable:no and the absence of KEV/EPSS indicate this is an insider/post-authentication escalation path rather than mass-exploited internet attack surface. Net: real priority for any WeGIA operator because the technical impact is total and a patch exists, but the authentication precondition and non-automatable nature keep it below drop-everything urgency.

Exploit ScenarioDerived

A low-privileged WeGIA employee - holding only a read-only (id_acao=1) permission entry for resource 11 or 91 - sends a POST to control.php invoking FuncionarioControle::adicionarPermissao with a valid CSRF token from their own session, granting their own role a high action level (acao=7) over a sensitive resource. They then access administrative functionality to read or modify employee, patient, configuration, and administrative data, or use alterarPermissao/excluirPermissao to disrupt other roles' access. A step-by-step PoC request is published in the GHSA advisory, so the exact exploitation path is documented.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Authenticated privilege escalation in WeGIA prior to 3.9.1 allows an employee whose role holds any permission row for resource 11 or 91 - even a read-only id_acao=1 entry - to add, alter, or remove permission rows for arbitrary roles through FuncionarioControle::adicionarPermissao, alterarPermissao and excluirPermissao. The advisory provides a full proof-of-concept request sequence, so a public PoC reference exists; it is not verified as working exploit code, and CISA SSVC records no active exploitation and rates the issue non-automatable. Requires a valid CSRF token from the attacker's own session; CVSS 3.1 8.8 (AV:N/AC:L/PR:L/UI:N/C:H/I:H/A:H) reflects an insider-with-a-session threat rather than an unauthenticated attack, making this a genuine, well-corroborated authorization flaw but not an emergency-tier threat.

RemediationAI

Upgrade WeGIA to 3.9.1, which is the vendor-released patch; the fix commit adds permissao($_SESSION['id_pessoa'], 91, 7) checks ahead of adicionarPermissao, alterarPermissao and excluirPermissao so that the requested action level is actually authorized (see https://github.com/LabRedesCefetRJ/WeGIA/security/advisories/GHSA-27h8-4v64-8v85 and https://github.com/LabRedesCefetRJ/WeGIA/commit/9fb18f330ea31b240713812010690418cb3d0eed). No separate workaround is documented by the vendor. Because the advisory states the precondition is any existing permission row for resource 11 or 91, an interim compensating measure is to audit permissao rows for id_recurso 11 and 91 and remove the ones held by non-administrative roles; the trade-off is that those roles immediately lose whatever legitimate access those rows provided, and this is an inference from the described mechanism rather than a vendor-supported configuration. Detection can focus on POSTs to /controle/control.php with nomeClasse=FuncionarioControle and metodo set to adicionarPermissao, alterarPermissao or excluirPermissao originating from roles that legitimately hold only read-level (id_acao=1) permissions, since such calls are the documented exploitation pattern.

Affected VersionsENISA

WeGIA < 3.9.1

Affected Packages

euvd wegia fix: 3.9.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

WeGIA is a PHP web application that dispatches controller methods through web/controle/control.php, mapping 'FuncionarioControle' to resources [11, 91] and invoking the attacker-supplied method name dynamically via $objeto->$metodo() after MiddlewareDAO::verificarPermissao() returns true. That middleware runs a SELECT over the permissao table filtered only by id_cargo and id_recurso and accepts the request on rowCount() > 0; the stored id_acao value is never read or compared against the action level the requested method requires, and the method itself is not authorized. This is CWE-266 (incorrect privilege assignment) with a CWE-863 (incorrect authorization) component: a role granted read-only access ends up able to write permission records. The permission-management methods do validate the caller's CSRF token but perform no additional administrative or action-level check, and then pass attacker-controlled role, resource and action identifiers into PermissaoDAO to insert, update or delete rows in the permissao table. The upstream fix (commit 9fb18f330ea31b240713812010690418cb3d0eed) inserts permissao($_SESSION['id_pessoa'], 91, 7) checks before the affected methods, adding the missing action-level authorization. The dispatcher path is the confirmed attack surface; the advisory does not describe any other route to these methods.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-reachable dispatcher, low complexity, requires a low-privileged authenticated employee with any resource-11/91 permission (PR:L); self-escalation to admin yields total confidentiality, integrity, and availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 17, 2026 - 23:34 EUVD
CVE Published
Nov 17, 2026 - 22:19 cve.org
HIGH 8.8

DescriptionCVE.org

WeGIA is a web manager for charitable institutions. Prior to 3.9.1, web/controle/control.php authorizes FuncionarioControle requests only by checking whether an authenticated employee has a permission row for resource 11 or 91, while MiddlewareDAO::verificarPermissao() does not compare the stored id_acao value or authorize the requested method. An employee with any such permission and a valid CSRF token from the employee's own session can invoke FuncionarioControle::adicionarPermissao, FuncionarioControle::alterarPermissao, or FuncionarioControle::excluirPermissao to add, change, or remove permissions for arbitrary roles. This can grant higher action levels over sensitive resources, expose or modify protected employee, patient, configuration, and administrative data, or disrupt legitimate access by changing other roles. This issue is fixed in version 3.9.1.

Technical POC Analysis

CWE-266 (Incorrect Privilege Assignment), corroborated as CWE-863 (Incorrect Authorization).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

WeGIA, an open-source HR management system, has a high-severity privilege escalation flaw (CVE-2026-69187) that allows any authenticated employee with even read-only permissions on specific resources to arbitrarily modify permission assignments for all roles. This enables an insider to escalate their own privileges or grant unauthorized access to others, undermining the integrity of access controls and potentially exposing sensitive HR data. Leadership should prioritize remediation because the flaw is easy to exploit with a valid session and could lead to data breaches or compliance violations.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 52% exploitable
Prevalence
Low
niche open-source manager for charitable institutions, limited deployment footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy