Summary
openIMIS before release 2026-10 contains a critical code injection vulnerability (CWE-94) 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 and execute arbitrary operating-system commands as root.
The same endpoint's key parameter also allows unauthenticated arbitrary file read. The result is full host compromise, including exposure of database credentials and JWT signing keys.
CVSS 9.8 (AV:N/AC:L/PR:N/UI:N): exploitable over the network, low complexity, no authentication and no user interaction required, with high impact on confidentiality, integrity and availability. The vulnerability is not currently listed in CISA KEV. EPSS is about 1.1% (65th percentile).
Who is affected
Organizations running openIMIS (health insurance management systems) versions earlier than 2026-10, especially where the backend API is reachable from the network or internet.
What to do
- Upgrade openIMIS to release 2026-10 or later per the official release notes (Release 2026-10 on the openIMIS wiki).
- Until upgraded, restrict network access to /api/report/reportbro/preview and the backend API to trusted networks only (e.g. reverse proxy or firewall rules).
- Check exposure: identify the openIMIS and openimis-be-report_py versions, whether the API is internet-facing, and review access logs for requests to reportbro/preview.
- If the system was exposed, assume compromise: rotate database credentials and JWT signing keys and inspect the host for signs of unauthorized access.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
- openimis.atlassian.net/wiki/spaces/OP/pages/5166989313/Release+2026-10 patch
- www.vulncheck.com/advisories/openimis-2026-10-report-module-unauthenticated-rce-via-report
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.