Advisory · CVE-2026-82489
Unauthenticated RCE in openIMIS report module runs commands as root
openIMIS before 2026-10 evaluates report printIf expressions server-side with an insufficient blocklist, letting an unauthenticated attacker reach the operating system and run commands as root, and read arbitrary files through the same endpoint. VulnCheck rates it Critical at CVSS 9.8 (v3.1; 9.3 on v4.0).
- Vendor
- openIMIS
- Product
- openIMIS
- Identifier / CWE
- CVE-2026-82489
CWE-94 - Action timing
- Immediate
Explain it like I’m five
openIMIS lets anyone preview a report, and the preview runs a small piece of the report as code. The safety list meant to block dangerous words misses a back door, so an attacker can smuggle in a command that the server runs as root.
- 01Attacker calls the preview endpoint
An unauthenticated attacker sends a request to /api/report/reportbro/preview in the openIMIS report module.
- 02Crafted printIf expression
The request carries a printIf expression that the server evaluates with simpleeval.
- 03Blocklist bypass
The expression reaches sys.modules['os'] through datetime.sys, slipping past the insufficient name-prefix blocklist.
- 04Commands run as root
Arbitrary operating-system commands execute as root, and the endpoint's key parameter also allows unauthenticated arbitrary file read, exposing database credentials and JWT signing keys.
What happened
VulnCheck disclosed CVE-2026-82489: openIMIS before 2026-10 contains an unauthenticated remote code execution vulnerability in the report module (openimis-be-report_py). The /api/report/reportbro/preview endpoint evaluates printIf expressions server-side using simpleeval with an insufficient name-prefix blocklist. An attacker can craft an expression that reaches sys.modules['os'] via datetime.sys to execute arbitrary operating-system commands as root. The same endpoint’s key parameter also allows unauthenticated arbitrary file read, enabling full host compromise including exposure of database credentials and JWT signing keys. VulnCheck rates it CVSS 9.8 (critical, v3.1; 9.3 on v4.0, CWE-94).
The flaw is fixed in openIMIS Release 2026-10, which reached general availability on 2026-11-02 according to the vendor release notes.
What to do
- Inventory openIMIS deployments and confirm whether they run a release before 2026-10.
- Upgrade affected instances to Release 2026-10 or later using the vendor release guidance.
- Restrict network access to the openIMIS report endpoints while remediation is underway.
- Review application and web server logs for requests to
/api/report/reportbro/previewcarrying unusual printIf expressions, and investigate any that cannot be explained. - Rotate database credentials and JWT signing keys if unauthorized access to the host cannot be ruled out.
- Verify the deployed release after the upgrade and confirm the preview endpoint no longer evaluates attacker-controlled expressions.
Management note
This is an unauthenticated path to root on systems that hold health insurance and beneficiary data for national schemes. The fix is a released upgrade, so patching and credential rotation should be treated as one task, not two.