{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-16772",
        "assignerOrgId": "37e5125f-f79b-445b-8fad-9564f167944b",
        "state": "PUBLISHED",
        "assignerShortName": "certcc",
        "dateReserved": "2026-07-23T16:56:04.052Z",
        "datePublished": "2026-08-14T15:18:13.993Z",
        "dateUpdated": "2026-08-14T15:18:13.993Z"
    },
    "containers": {
        "cna": {
            "title": "CVE-2026-16772",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "discovery": "UNKNOWN"
            },
            "affected": [
                {
                    "vendor": "Akaunting",
                    "product": "Akaunting",
                    "versions": [
                        {
                            "status": "affected",
                            "version": "0",
                            "lessThanOrEqual": "3.1.21",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "CWE-862 Missing Authorization"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "CWE-269 Improper Privilege Management"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://vokecyber.com/research/cve-2026-16772-akaunting-privilege-escalation"
                }
            ],
            "x_generator": {
                "engine": "VINCE 3.0.44",
                "env": "prod",
                "origin": "https://cveawg.mitre.org/api/cve/CVE-2026-16772"
            },
            "providerMetadata": {
                "orgId": "37e5125f-f79b-445b-8fad-9564f167944b",
                "shortName": "certcc",
                "dateUpdated": "2026-08-14T15:18:13.993Z"
            }
        }
    }
}