Oct 10, 2026·6 min read·17 visits
An SQL MAX aggregation flaw in Vikunja v2.6.0 project permission handling causes inherited parent privileges to override explicit child project restrictions, permitting read-only users to perform full administrative operations.
Vikunja v2.6.0 contains a permission inheritance regression in pkg/models/project_access.go where explicit down-restrictions on sub-projects are overridden by higher parent project permissions due to MAX aggregation across project tree nodes.
Vikunja is an open-source, self-hosted task management platform. In version v2.6.0, an access control regression was introduced into the project permission engine (code.vikunja.io/api). The component responsible for determining user access is implemented within pkg/models/project_access.go in the function getProjectAccessForUser.
The permission evaluation engine calculates a user's effective permission across nested project trees. Projects can form hierarchical parent-child relationships, where a parent project contains sub-projects. In standard access control models, explicit permission grants on a child node take precedence over inherited parent grants, allowing administrators to restrict access to specific sensitive sub-projects.
In Vikunja v2.6.0, the calculation engine computes the user's effective permission level by evaluating the mathematical maximum (MAX) across all accessible parent and child nodes in the project subtree. Consequently, if a user holds ADMIN permissions on a parent project and an explicit READ restriction on a sub-project, the access control engine resolves the permissions as MAX(ADMIN, READ), granting the user full administrative control over the restricted sub-project.
The root cause of GHSA-PJR3-86V4-5P7W is an architectural design regression in the SQL query structure within getProjectAccessForUser. In version v2.5.0, Vikunja evaluated tree permissions using window functions (ROW_NUMBER() OVER (...)) ordered by node proximity. This nearest-ancestor-wins approach ensured that direct explicit grants on a child project superseded inherited grants from parent nodes.
In version v2.6.0, the query was refactored to use a Common Table Expression (CTE) combining direct user grants, team grants, and recursive subtree propagation. The recursive CTE gathers all permission records associated with any ancestor or descendant project node in the hierarchy.
The outer query concludes with SELECT id, MAX(permission) AS permission FROM tree GROUP BY id. Because permissions are represented numerically (READ = 0, WRITE = 1, ADMIN = 2), applying MAX() aggregates all permission levels associated with the project identifier id across both direct grants and parent inheritance rows. Any higher inherited grant continuously overrides explicit lower direct grants, invalidating down-restrictions.
The permission resolution query executed in pkg/models/project_access.go uses recursive CTE syntax compatible with PostgreSQL, SQLite, and MySQL. The direct grants CTE aggregates project ownership, user-specific grants, and team-based grants.
WITH RECURSIVE grants (project_id, permission) AS (
SELECT project_id, MAX(permission) FROM (
SELECT id AS project_id, 2 AS permission FROM projects WHERE owner_id = ?
UNION ALL SELECT project_id, permission FROM users_projects WHERE user_id = ?
UNION ALL SELECT tp.project_id, tp.permission FROM team_projects tp
INNER JOIN team_members tm ON tm.team_id = tp.team_id WHERE tm.user_id = ?
) direct_grants GROUP BY project_id
),
tree (id, permission) AS (
SELECT p.id, g.permission FROM projects p INNER JOIN grants g ON g.project_id = p.id
UNION
SELECT p.id, t.permission FROM projects p INNER JOIN tree t ON p.parent_project_id = t.id
)
SELECT id, MAX(permission) AS permission FROM tree GROUP BY idThe vulnerability exists in the final statement SELECT id, MAX(permission) AS permission FROM tree GROUP BY id. The recursive tree union matches parent projects to child projects via p.parent_project_id = t.id and assigns t.permission (the parent's permission) to the child project entry.
When tree is grouped by project id, the child project entry contains two rows: one row generated from the direct explicit grant (C, 0) and one row generated from parent propagation (C, 2). The MAX() operation selects value 2, causing complete failure of the down-restriction mechanism.
Exploitation requires low-privileged authenticated access to a Vikunja instance where project nesting is enabled. An attacker who has been assigned ADMIN permissions on a high-level project and subsequently placed in a restricted READ role on a sub-project can execute administrative requests against that sub-project.
In a standard scenario, an instance administrator creates a parent project (FinanceRoot, ID 18) and assigns user alice administrative access (permission: 2). The administrator then creates a sensitive child project (Q4-Payroll-CONFIDENTIAL, ID 19) under project 18 and explicitly adds alice with read-only access (permission: 0).
PUT /api/v1/projects/19/users HTTP/1.1
Host: target-instance.local
Authorization: Bearer <alice-token>
Content-Type: application/json
{"username":"bob","permission":2}Although alice is explicitly restricted to read-only access on sub-project 19, the server responds with HTTP/1.1 201 Created. The engine resolves alice's effective permission as 2 (ADMIN) due to MAX(0, 2) aggregation. Consequently, alice successfully grants administrative access on project 19 to arbitrary users, deletes sub-project resources, or alters baseline project settings.
When alice attempts the exact same operation on an isolated standalone control project (ID 20) where she also holds explicit READ permission, the backend correctly returns HTTP/1.1 403 Forbidden. This differential response confirms that the privilege escalation occurs strictly due to subtree inheritance overriding.
The impact of GHSA-PJR3-86V4-5P7W affects confidentiality and integrity within multi-user task management environments. Project owners relying on sub-project permission down-restrictions to isolate sensitive information will have those restrictions bypassed.
An unauthorized user with inherited administrative rights can modify tasks, exfiltrate sensitive project attachments, delete project hierarchies, and grant access permissions to external accounts. Because the action executes under valid API endpoints with standard user tokens, standard log audit mechanisms will record the requests as legitimate user activity.
The vulnerability has a CVSS v3.1 base score of 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N). Authentication is required, but low-privileged credentials suffice to conduct exploitation if parent project access exists.
Remediation requires refactoring the permission resolution logic in pkg/models/project_access.go. The engine must prioritize explicit direct child grants over parent inheritance instead of evaluating the scalar maximum permission value across all tree paths.
Where database engines support window functions, the query should calculate path depth and assign priority based on proximity to the target node. Direct grants on the node itself must receive the highest precedence, followed by immediate parent nodes.
For instances running Vikunja v2.6.0 where source code modification is not immediately possible, administrators must implement operational mitigations. Avoid configuring lower permissions on sub-projects for users who possess higher permissions on ancestor projects. Sensitive sub-projects requiring restricted access must be detached from shared parent trees and placed in standalone project root hierarchies.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Vikunja API Vikunja | = 2.6.0 | None specified |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-269 / CWE-284 |
| Attack Vector | Network |
| Attack Complexity | Low |
| Privileges Required | Low (Authenticated User) |
| CVSS v3.1 Score | 5.4 (Medium) |
| Exploit Status | Proof of Concept Documented |
| CISA KEV Status | Not Listed |
The software does not properly manage privileges, allowing users to perform actions with higher permissions than intended.
CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.
CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.
CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.
CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.
CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.
CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.