CVE-2026-16772

CVE-2026-16772

Published Aug 14, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
In Akaunting versions <= 3.1.21, low‑privileged authenticated users can modify their own account to assign themselves the admin role ID, granting full administrator privileges. This vulnerability is caused by a flaw in the `UpdateUser` job, which processes user-supplied role assignments via an unconditional `roles()->sync()` call without verifying whether the caller is authorized to manage roles. Users only require the default `update-auth-profile` permission to access the self-update path and assign themselves as admins. The API endpoints are properly permission‑gated and are not affected by this issue. This vulnerability has been remediated in v3.2.0, commit 80ef6d3b154a.

Analysis

AI-generated

Technical impact

Akaunting versions up to 3.1.21 let any low‑privileged authenticated user modify their own account to assign themselves the admin role ID when using the UpdateUser job. The job calls roles()->sync() unconditionally without verifying the caller’s authorization, allowing privilege escalation. The flaw, identified as CWE-269 and CWE-862, results in an access‑control weakness, involving both an improper authorization check and a data‑level privilege elevation. With the newly granted administrator rights, the attacker can perform all actions available to an administrator, including modifying data, configuration, and other users’ permissions. Note that the API endpoints are properly permission‑gated and are not affected by this issue. The vulnerability is remedied in v3.2.0, commit 80ef6d3b154a.

Affected Systems

The vulnerability affects Akaunting, version 3.1.21 and earlier. Users of these releases that have the update‑auth‑profile permission are at risk.

Risk and Exploitability

The flaw is not listed in CISA’s KEV catalog and the EPSS score, which indicates a very low but nonzero exploitation probability, is < 1%. The CVSS score of 8.1 categorizes this as high severity. However, because it requires only low‑privileged authentication, the attack surface is significant for any compromised internal account. Exploitation is straightforward: a user simply edits their own profile to set the administrator role ID. Attacker reach is limited to users who can log into the system, so the risk is high within the affected tenant but does not enable remote code execution on the hosting environment. The vulnerability has been remediated in v3.2.0.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest official Akaunting release that rectifies the role assignment check (e.g., v3.2.0 or later).
  • Restrict the update‑auth‑profile permission to trusted administrators by removing it from normal user groups.
  • Review and harden role‑management code to validate the caller’s authority before executing sync, and enable audit logging for role changes.

Generated by OpenCVE AI on September 21, 2026 at 07:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description In Akaunting versions <= 3.1.21, low‑privileged authenticated users can modify their own account to assign themselves the admin role ID, granting full administrator privileges. This vulnerability is caused by a flaw in the `UpdateUser` job, which processes user-supplied role assignments via an unconditional `roles()->sync()` call without verifying whether the caller is authorized to manage roles. Users only require the default `update-auth-profile` permission to access the self-update path and assign themselves as admins. The API endpoints are properly permission‑gated and are not affected by this issue. In Akaunting versions <= 3.1.21, low‑privileged authenticated users can modify their own account to assign themselves the admin role ID, granting full administrator privileges. This vulnerability is caused by a flaw in the `UpdateUser` job, which processes user-supplied role assignments via an unconditional `roles()->sync()` call without verifying whether the caller is authorized to manage roles. Users only require the default `update-auth-profile` permission to access the self-update path and assign themselves as admins. The API endpoints are properly permission‑gated and are not affected by this issue. This vulnerability has been remediated in v3.2.0, commit 80ef6d3b154a.
Type Values Removed Values Added
Weaknesses CWE-284
Type Values Removed Values Added
Weaknesses CWE-269
CWE-862
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Akaunting
Akaunting akaunting
Weaknesses CWE-284
Vendors & Products Akaunting
Akaunting akaunting
Type Values Removed Values Added
Description In Akaunting versions <= 3.1.21, low‑privileged authenticated users can modify their own account to assign themselves the admin role ID, granting full administrator privileges. This vulnerability is caused by a flaw in the `UpdateUser` job, which processes user-supplied role assignments via an unconditional `roles()->sync()` call without verifying whether the caller is authorized to manage roles. Users only require the default `update-auth-profile` permission to access the self-update path and assign themselves as admins. The API endpoints are properly permission‑gated and are not affected by this issue.
Title CVE-2026-16772
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
certcc
Published
Updated
Sep 14, 2026, 9:22 PM
Reserved
Jul 23, 2026, 4:56 PM
Status
Deferred
Published
Aug 14, 2026, 4:16 PM
Modified
Sep 14, 2026, 10:16 PM