CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-PJR3-86V4-5P7W

GHSA-PJR3-86V4-5P7W: Broken Access Control via MAX Aggregation in Vikunja Subtree Permissions

Alon Barad
Alon Barad
Software Engineer

Oct 10, 2026·6 min read·14 visits

Executive Summary (TL;DR)

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.

Vulnerability Overview

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.

Root Cause Analysis

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.

Code & Query Analysis

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 id

The 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 & Proof of Concept

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.

Impact Assessment

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 Guidance

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.

Technical Appendix

CVSS Score
5.4/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Affected Systems

Vikunja v2.6.0 (code.vikunja.io/api)

Affected Versions Detail

Product
Affected Versions
Fixed Version
Vikunja API
Vikunja
= 2.6.0None specified
AttributeDetail
CWE IDCWE-269 / CWE-284
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow (Authenticated User)
CVSS v3.1 Score5.4 (Medium)
Exploit StatusProof of Concept Documented
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1548Abuse Elevation Control Mechanism
Privilege Escalation
CWE-269
Improper Privilege Management

The software does not properly manage privileges, allowing users to perform actions with higher permissions than intended.

Vulnerability Timeline

GitHub Security Advisory GHSA-PJR3-86V4-5P7W Published
2026-10-09

References & Sources

  • [1]GitHub Security Advisory GHSA-PJR3-86V4-5P7W
  • [2]Vikunja Security Advisory
  • [3]Vikunja Repository
  • [4]Reporter Profile - Viv3kGupt4

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•3 minutes ago•GHSA-PJFF-C2WC-F6JM
9.9

CVE-2026-48769: Arbitrary File Write and Remote Code Execution via Trusted Image Hash in Canonical LXD and Linux Containers Incus

A critical path traversal vulnerability caused by improper input validation (CWE-20) exists in the direct image download handler of Canonical LXD and Linux Containers Incus. When an authenticated user requests an image import using the URL source type, the daemon reads the image fingerprint from an untrusted HTTP response header (`Incus-Image-Hash` or `LXD-Image-Hash`) without validating that it conforms to a SHA-256 format. This unvalidated string is concatenated directly into a filesystem path via `filepath.Join` prior to file creation and cryptographic verification, allowing directory traversal sequences to write arbitrary files on the host filesystem as root.

Alon Barad
Alon Barad
0 views•10 min read
•about 4 hours ago•CVE-2026-9639
6.5

CVE-2026-9639: Authenticated Denial of Service via Nil-Pointer Dereference in Canonical LXD Custom Volume Backup Import

CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 5 hours ago•CVE-2026-33050
8.8

CVE-2026-33050: OS Command Injection in GeoNode Vector Upload Handler

An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.

Alon Barad
Alon Barad
5 views•9 min read
•about 6 hours ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 7 hours ago•CVE-2026-55649
6.3

CVE-2026-55649: Stored Cross-Site Scripting in GeoNode Document Metadata Abstract Field

CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.

Amit Schendel
Amit Schendel
7 views•9 min read
•about 8 hours ago•GHSA-QX75-2P3R-PWM5
7.7

CVE-2026-55622: Cross-Project Instance Copy Authorization Bypass in Canonical LXD and LXC Incus

CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.

Amit Schendel
Amit Schendel
6 views•11 min read