CVE-2026-82491 in openIMIS
Summary
by MITRE • 11/25/2026
openIMIS before 2026-10 contains an information disclosure vulnerability in the core export mixin (openimis-be-core_py, core/gql/export_mixin.py) that allows authenticated users with a single ordinary read right to traverse arbitrary foreign key relations by supplying caller-controlled dotted field paths that are rewritten into Django ORM syntax without an allow-list. Attackers can exploit this to export another user's JWT signing key via a path such as user_created.i_user.private_key, enabling them to forge valid authenticated sessions for other accounts, including administrators, without detection through failed-login events or invalidation by password reset.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified in openIMIS versions prior to 2026-10 represents a critical information disclosure flaw rooted in the improper handling of input within the core export mixin functionality located at core/gql/export_mixin.py. This component is responsible for processing GraphQL queries that request data exports, specifically allowing users to specify which fields should be included in the exported dataset. The fundamental technical error lies in the system's failure to implement an allow-list or strict validation mechanism when parsing dotted field paths provided by the caller. Instead of restricting access to predefined safe attributes, the application rewrites these user-supplied paths directly into Django ORM syntax for database querying. This architectural oversight effectively bypasses standard object-level permission checks that would normally restrict a user with only ordinary read rights from accessing sensitive data associated with other entities or users within the system.
From an operational perspective, this flaw allows authenticated attackers to perform arbitrary foreign key traversal across the application's relational database structure. By supplying carefully crafted dotted field paths, such as user_created.i_user.private_key, an attacker can navigate through related objects beyond their authorized scope. The most severe consequence of this capability is the ability to extract cryptographic material, specifically the JWT signing keys associated with other users or system administrators. Since these private keys are typically stored in database fields that should be protected from standard read operations, their exposure via this vector constitutes a catastrophic failure of data confidentiality controls. The attacker does not need elevated privileges; access granted through a single ordinary read right is sufficient to exploit the vulnerability and retrieve sensitive cryptographic secrets.
The impact of compromising JWT signing keys extends far beyond simple information disclosure. Once an attacker obtains the private key used for signing JSON Web Tokens, they can forge valid authentication tokens for any account within the system without triggering standard security alerts. This includes high-privilege accounts such as administrators, thereby granting the attacker full control over critical system functions and sensitive health insurance data managed by openIMIS. Furthermore, because forged tokens are cryptographically valid, they bypass detection mechanisms that rely on failed login attempts or token expiration checks based on invalid signatures. The persistence of these forged sessions also means that password resets do not invalidate them unless the signing key itself is rotated, making this a persistent and difficult-to-detect threat vector if left unpatched.
This vulnerability aligns with CWE-209, which describes the generation of error messages containing sensitive information, although in this case it manifests as unauthorized data access rather than mere exposure through logs or UI errors. It also maps to CWE-749, where a system exposes dangerous operations to an actor without adequate control. In terms of offensive security frameworks, this exploit technique corresponds to ATT&CK T1083, which covers File and Directory Discovery, as the attacker is enumerating database relationships to find valuable data stores. Additionally, it relates to ATT&CK T1528, Steal Application Access Token, due to the direct theft of credentials used for authentication.
Mitigation strategies must focus on implementing strict input validation within the export mixin logic. Developers should enforce a whitelist approach where only explicitly defined and safe field paths are permitted for GraphQL queries involving exports. This ensures that foreign key traversals are limited to relationships intended for public or user-specific access, preventing navigation into sensitive internal structures like cryptographic key storage fields. Additionally, implementing row-level security policies within the database layer can provide an additional defense-in-depth measure by restricting direct SQL-level access to private keys regardless of application-layer permissions. Regular rotation of JWT signing keys and monitoring for anomalous token usage patterns are also recommended as compensating controls while patches are applied.