Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108640 Overview
CVE-2026-108640 is a missing authorization vulnerability [CWE-862] affecting JeecgBoot through version 3.9.5. The flaw resides in the SysDepartRoleController.queryById handler, which lacks Apache Shiro permission annotations. Low-privileged authenticated attackers can issue GET /sys/sysDepartRole/queryById requests with arbitrary id values to read department role records they should not access. Exposed data includes department role names, codes, descriptions, and audit fields. The issue was published to the National Vulnerability Database (NVD) on October 10, 2026.
Critical Impact
Authenticated users with minimal privileges can enumerate department role metadata across tenants or organizational boundaries by iterating id values against an unprotected endpoint.
Affected Products
- JeecgBoot versions up to and including 3.9.5
- jeecg-module-system component (SysDepartRoleController)
- Deployments exposing the /sys/sysDepartRole/queryById endpoint to authenticated users
Discovery Timeline
- 2026-10-10 - CVE-2026-108640 published to NVD
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-108640
Vulnerability Analysis
JeecgBoot is a Java-based low-code platform that uses Apache Shiro for authentication and authorization. Controller methods normally enforce fine-grained permissions through Shiro annotations such as @RequiresPermissions. The queryById handler in SysDepartRoleController was shipped without these annotations. Any authenticated session can therefore invoke the endpoint. The handler accepts an id parameter and returns the corresponding SysDepartRole record directly from the database without verifying the caller's tenant, department, or role scope. This produces a horizontal access control failure that discloses metadata about role bindings across departments.
Root Cause
The root cause is a missing authorization check [CWE-862] on a sensitive read endpoint. The controller method defined around lines 170 to 175 of SysDepartRoleController.java relies solely on authentication, not on scope-aware authorization. No tenant filter or ownership check is applied to the queried id, so lookups succeed for any valid primary key.
Attack Vector
Exploitation requires network access to the application and a valid low-privileged account. The attacker iterates department role identifiers and issues GET /sys/sysDepartRole/queryById?id=<value> requests. Each successful response returns the role name, role code, description, and audit metadata including creator and timestamps. The disclosed data supports reconnaissance of organizational structure and can feed follow-on privilege escalation attempts against related endpoints.
A public proof of concept, poc_org_scope_reads.py, is referenced in the GitHub PoC Repository and demonstrates the enumeration pattern. The vulnerable handler is visible in the GitHub Code Reference.
// Example exploitation code (sanitized)
// No verified exploit code is reproduced here.
// Refer to the public PoC in the GitHub repository linked above
// for the full enumeration pattern against /sys/sysDepartRole/queryById.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-108640
Indicators of Compromise
- Repeated authenticated GET requests to /sys/sysDepartRole/queryById from a single session or source IP
- Sequential or incrementing id parameter values targeting the same endpoint within a short time window
- Low-privileged accounts generating responses containing department role names and codes outside their assigned scope
Detection Strategies
- Review application access logs for high-rate access to /sys/sysDepartRole/queryById by non-administrator roles
- Correlate request volume per session against baseline usage of department management endpoints
- Flag any user agent patterns matching known PoC scripts, including those referenced in the VulnCheck Security Advisory
Monitoring Recommendations
- Instrument the Shiro filter chain to log authorization decisions on SysDepartRoleController methods
- Forward JeecgBoot application logs to a centralized SIEM for cross-session enumeration detection
- Alert when a single authenticated principal retrieves more than N distinct department role records in a defined interval
How to Mitigate CVE-2026-108640
Immediate Actions Required
- Restrict network exposure of the JeecgBoot management interface to trusted administrative networks
- Audit accounts with any level of authenticated access and remove dormant or over-provisioned users
- Deploy a web application firewall (WAF) rule to rate-limit or block unauthenticated and low-privileged access to /sys/sysDepartRole/queryById
Patch Information
At the time of publication, no fixed version is identified in the referenced advisory for releases through 3.9.5. Monitor the JeecgBoot repository and the VulnCheck Security Advisory for an updated release. Apply the fix as soon as the maintainers add Shiro permission annotations and scope-aware authorization checks to SysDepartRoleController.queryById.
Workarounds
- Add a @RequiresPermissions annotation to the queryById method and rebuild the jeecg-module-system artifact if operating a self-managed deployment
- Configure a reverse proxy or API gateway rule to deny requests to /sys/sysDepartRole/queryById from non-administrator roles
- Implement tenant or department scoping in a custom Shiro realm so that lookups return results only for records owned by the caller
# Configuration example
# Example nginx snippet blocking unauthorized access patterns
location = /sys/sysDepartRole/queryById {
# Only allow requests from administrative subnet
allow 10.0.10.0/24;
deny all;
proxy_pass http://jeecgboot_upstream;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

