SecurityContext

CVE-2021-41187: DHIS 2 - SQL Injection

  • Cve: CVE-2021-41187
  • Name: DHIS 2 - SQL Injection
  • Description: DHIS 2 is an information system for data capture, management, validation, analytics and visualization. A SQL injection security vulnerability has been found in specific versions of DHIS2. This vulnerability affects the API endpoints for /api/trackedEntityInstances and api/events in DHIS2. The system is vulnerable to attack only from users that are logged in to DHIS2, and there is no known way of exploiting the vulnerability without first being logged in as a DHIS2 user. A successful exploit of this vulnerability could allow the malicious user to read, edit and delete data in the DHIS2 instance. There are no known exploits of the security vulnerabilities addressed by these patch releases. However, we strongly recommend that all DHIS2 implementations using versions 2.32, 2.33, 2.34, 2.35 and 2.36 install these patches as soon as possible. There is no straightforward known workaround for DHIS2 instances using the Tracker functionality other than upgrading the affected DHIS2 server to one of the patches in which this vulnerability has been fixed. For implementations which do NOT use Tracker functionality, it may be possible to block all network access to POST to the /api/trackedEntityInstance and /api/events endpoints as a temporary workaround while waiting to upgrade.
  • Impact: Authenticated users can manipulate data, potentially leading to data theft, modification, or deletion within the DHIS2 system.
  • Remediation: Install the latest patches for versions 2.32, 2.33, 2.34, 2.35, or 2.36 to fix the vulnerability.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: logged_in
  • Requirements: Attacker must be logged in as a DHIS2 user
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00854
  • Epss percentile: 0.5908
  • Assignee: [email protected]
  • Published at: 2021-11-01T22:15:07Z
  • Age in days: 1849
  • Modified at: 2026-06-17T04:08:03Z
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-41187
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

References

UrlSourceTags
https://github.com/dhis2/dhis2-core/security/advisories/GHSA-fvm5-gp3j-c7c6nvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
dhis2:dhis_2>= 2.36.0, <= 2.36.3; >= 2.35.0, <= 2.35.7; >= 2.34.0, <= 2.34.6; >= 2.33.0, <= 2.33.9; >= 2.32.0, <= 2.32.7nonvd/v1/products/dhis2/dhis_2

Projects

RepositoryLink kindsIndexedUrl
dhis2/dhis2-coresecurity_advisoryyes/v1/repositories/dhis2/dhis2-core

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts