Skip to main content
Vulnerability Database/CVE-2026-108605

CVE-2026-108605: JeecgBoot Auth Bypass Vulnerability

CVE-2026-108605 is an authorization bypass flaw in JeecgBoot that lets authenticated users modify global OCR templates and corrupt results. This post explains its impact, affected versions, and mitigation steps.

Published:

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-108605 Overview

CVE-2026-108605 is a missing authorization vulnerability [CWE-862] in JeecgBoot through version 3.9.5. The flaw resides in the AiOcrController.updateById handler, which exposes the /airag/ocr/edit endpoint without a privilege check. Any authenticated user, regardless of role, can issue a PUT request to modify global Optical Character Recognition (OCR) templates. Successful exploitation lets a low-privileged attacker overwrite Large Language Model (LLM) prompts stored in the shared airag:ocr Redis key. The tampered prompts corrupt OCR results for every tenant that consumes the shared template, undermining data integrity across the application.

Critical Impact

Low-privileged attackers can poison shared LLM OCR prompts in Redis, corrupting document recognition output for all users of the JeecgBoot airag OCR module.

Affected Products

  • JeecgBoot versions up to and including 3.9.5
  • jeecg-boot-module-airag OCR module
  • Deployments exposing the /airag/ocr/edit endpoint to authenticated users

Discovery Timeline

  • 2026-10-10 - CVE-2026-108605 published to NVD
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-108605

Vulnerability Analysis

The AiOcrController in the jeecg-boot-module-airag module exposes an updateById method bound to PUT /airag/ocr/edit. The handler accepts an OCR record identifier and a JSON body containing the template definition, including the LLM prompt used during inference. The method persists the submitted data and refreshes the shared airag:ocr Redis key without validating whether the caller holds administrative privileges over the targeted record.

Because the templates are global, the modification affects every tenant and user that invokes OCR through the airag pipeline. Attackers can replace legitimate prompts with instructions that cause the LLM to return misleading, truncated, or attacker-chosen output. This creates a persistent integrity issue that survives until an administrator detects and restores the templates.

Root Cause

The root cause is a missing authorization check in the updateById handler. The controller relies on Spring request mappings but omits a role-based or ownership check before writing to the database and the shared Redis cache. Any authenticated session token is sufficient to invoke the endpoint, which conflicts with the sensitivity of global OCR configuration.

Attack Vector

Exploitation requires network access to the JeecgBoot HTTP interface and valid credentials for any low-privileged account. The attacker sends a crafted PUT request to /airag/ocr/edit containing an existing template id and a modified prompt field. The server updates the record, writes the poisoned prompt into the airag:ocr Redis key, and subsequent OCR requests from other users apply the attacker-controlled instructions. A public proof-of-concept script (poc_airag_ocr_record_edit.py) demonstrates the request flow.

See the VulnCheck Security Advisory, the GitHub JeecgBoot Controller Code, and the GitHub PoC Script for technical details.

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 Attacks

Detection Methods for CVE-2026-108605

Indicators of Compromise

  • PUT requests to /airag/ocr/edit originating from non-administrative user sessions.
  • Unexpected modifications to records persisted under the Redis key airag:ocr.
  • OCR responses containing text patterns inconsistent with source documents, indicating prompt tampering.

Detection Strategies

  • Review application access logs for authenticated calls to /airag/ocr/edit and cross-reference the caller's role with expected administrators.
  • Enable auditing on OCR template records and alert when the prompt field changes outside of maintenance windows.
  • Monitor Redis SET operations against the airag:ocr key for frequency anomalies or unexpected clients.

Monitoring Recommendations

  • Forward JeecgBoot HTTP access logs and Redis command logs to a centralized analytics pipeline for correlation.
  • Baseline normal OCR template update patterns and alert on deviations by user, source IP, or time of day.
  • Track OCR output quality metrics so downstream consumers surface anomalies caused by prompt poisoning.

How to Mitigate CVE-2026-108605

Immediate Actions Required

  • Restrict network exposure of the /airag/ocr/edit endpoint to administrative networks until a patch is applied.
  • Revoke or reduce privileges for accounts that do not require OCR template management.
  • Audit current OCR template records in the database and the airag:ocr Redis key against a known-good baseline and restore any tampered prompts.

Patch Information

At the time of publication, no fixed JeecgBoot release has been identified in the referenced advisory. Monitor the VulnCheck Security Advisory and the upstream project for an official fix that adds authorization enforcement to AiOcrController.updateById.

Workarounds

  • Add a reverse proxy or Web Application Firewall (WAF) rule that blocks PUT /airag/ocr/edit requests from users outside of an administrator allowlist.
  • Introduce a server-side authorization filter that validates the caller's role before dispatching to updateById handlers in the airag module.
  • Disable the jeecg-boot-module-airag OCR module if it is not required by the deployment.
bash
# Example Nginx rule restricting the vulnerable endpoint to an admin allowlist
location = /airag/ocr/edit {
    if ($request_method = PUT) {
        set $block 1;
    }
    if ($remote_addr ~ ^(10\.0\.0\.10|10\.0\.0\.11)$) {
        set $block 0;
    }
    if ($block = 1) {
        return 403;
    }
    proxy_pass http://jeecgboot_backend;
}

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.