Description
DHIS2 is a flexible information system for data capture, management, validation, analytics and visualization. A SQL injection vulnerability was identified in the SqlView API endpoint of the DHIS2 application in the `filter` parameter used by the
`/api/sqlViews/{viewId}/data.json` endpoint. An authenticated user with access to a SqlView can inject arbitrary SQL queries inside the `filter` parameter by abusing an expression executed by PostgreSQL and its output is reflected inside the application error message. This behavior enables attackers to extract arbitrary database content using error-based SQL injection.

Affected versions include: 2.37, 2.38, 2.39, 2.40.x before 2.40.11.1/2.40.12, 2.41.x before 2.41.8.2, 2.42.x before 2.42.5.1, 2.43.0 before 2.43.0.1, 2.44 development branch before PR #24162
Patched versions include: 2.37-EOS (2026-06-09), 2.38-EOS (2026-06-09), 2.39-EOS (2026-06-09), 2.40.11.1, 2.40.12, 2.41.8.2, 2.42.5.1, 2.43.0.1, 2.44 development branch after PR #24162
Published: 2026-07-21
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

DHIS2 allows authenticated users who have access to a SqlView to inject arbitrary SQL into the filter parameter of the /api/sqlViews/{viewId}/data.json endpoint; the injected query is executed by PostgreSQL and the resulting data is reflected in an error message, enabling the attacker to read any data present in the database. This vulnerability is an instance of CWE‑89, which can lead to the disclosure of confidential information without privilege escalation.

Affected Systems

The vulnerability affects the DHIS2 Core application (dhis2:dhis2-core) across several major releases: 2.37, 2.38, 2.39, all 2.40.x versions before 2.40.11.1/2.40.12, 2.41.x before 2.41.8.2, 2.42.x before 2.42.5.1, 2.43.0 before 2.43.0.1, and the 2.44 development branch before PR #24162. Patched versions include 2.40.11.1, 2.40.12, 2.41.8.2, 2.42.5.1, 2.43.0.1, and the updated 2.44 development branch.

Risk and Exploitability

With a CVSS score of 8.8 the vulnerability is considered high severity; however, the EPSS score of less than 1% indicates a low likelihood of exploitation in the wild, and it is not listed in CISA’s KEV catalog. Exploitation requires an authenticated user who can view a SqlView and does not involve privilege escalation, so the threat is limited to users with such permissions. The attack is likely to originate from users who have legitimate access and can inject a malicious SQL payload through the filter parameter, resulting in unauthorized data disclosure.

Generated by OpenCVE AI on July 30, 2026 at 16:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a patched version of DHIS2 (2.40.11.1, 2.40.12, 2.41.8.2, 2.42.5.1, 2.43.0.1, or newer 2.44 development branch)
  • Limit user privileges so that only authorized personnel can create or access SqlViews
  • Configure PostgreSQL to suppress detailed SQL error messages to reduce information leakage
  • Monitor application logs for suspicious SQL error responses that may indicate injection attempts

Generated by OpenCVE AI on July 30, 2026 at 16:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Dhis2
Dhis2 dhis2-core
Vendors & Products Dhis2
Dhis2 dhis2-core

Tue, 21 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 21 Jul 2026 18:45:00 +0000

Type Values Removed Values Added
Description DHIS2 is a flexible information system for data capture, management, validation, analytics and visualization. A SQL injection vulnerability was identified in the SqlView API endpoint of the DHIS2 application in the `filter` parameter used by the `/api/sqlViews/{viewId}/data.json` endpoint. An authenticated user with access to a SqlView can inject arbitrary SQL queries inside the `filter` parameter by abusing an expression executed by PostgreSQL and its output is reflected inside the application error message. This behavior enables attackers to extract arbitrary database content using error-based SQL injection. Affected versions include: 2.37, 2.38, 2.39, 2.40.x before 2.40.11.1/2.40.12, 2.41.x before 2.41.8.2, 2.42.x before 2.42.5.1, 2.43.0 before 2.43.0.1, 2.44 development branch before PR #24162 Patched versions include: 2.37-EOS (2026-06-09), 2.38-EOS (2026-06-09), 2.39-EOS (2026-06-09), 2.40.11.1, 2.40.12, 2.41.8.2, 2.42.5.1, 2.43.0.1, 2.44 development branch after PR #24162
Title SQL Injection in SqlView Filter Parameter Leading to Arbitrary Database Read
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Dhis2 Dhis2-core
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-21T19:03:58.016Z

Reserved: 2026-06-16T14:41:54.577Z

Link: CVE-2026-55084

cve-icon Vulnrichment

Updated: 2026-07-21T19:03:53.935Z

cve-icon NVD

Status : Deferred

Published: 2026-07-21T19:17:11.223

Modified: 2026-07-21T20:17:02.277

Link: CVE-2026-55084

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T17:00:07Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')